This topic contains a solution. Click here to go to the answer

Author Question: What is wrong, logically, with the following code? (Read 24 times)

darbym82

  • Hero Member
  • *****
  • Posts: 570

Question 1

The idea that program instructions execute in order (linearly) unless otherwise specified through a conditional statement is known as
◦ boolean execution
◦ conditional statements
◦ try and catch
◦ sequentiality
◦ flow of control

Question 2

What is wrong, logically, with the following code?

◦ There is no logical error, but there is no need to have (x <= 10) in the second conditional or (x <= 6) in the third conditional
◦ There is no logical error, but there is no need to have (x > 6) in the second conditional or (x > 3) in the third conditional
◦ The logical error is that no matter what value x is, "Very small" is always printed out
◦ The logical error is that no matter what value x is, "Large" is always printed out
◦ There is nothing wrong with the logic at all


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by darbym82 on Aug 30, 2020

nothere

  • Sr. Member
  • ****
  • Posts: 324
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




darbym82

  • Member
  • Posts: 570
Reply 2 on: Aug 30, 2020
Gracias!


tandmlomax84

  • Member
  • Posts: 323
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

Though newer “smart” infusion pumps are increasingly becoming more sophisticated, they cannot prevent all programming and administration errors. Health care professionals that use smart infusion pumps must still practice the rights of medication administration and have other professionals double-check all high-risk infusions.

Did you know?

If you use artificial sweeteners, such as cyclamates, your eyes may be more sensitive to light. Other factors that will make your eyes more sensitive to light include use of antibiotics, oral contraceptives, hypertension medications, diuretics, and antidiabetic medications.

Did you know?

Bisphosphonates were first developed in the nineteenth century. They were first investigated for use in disorders of bone metabolism in the 1960s. They are now used clinically for the treatment of osteoporosis, Paget's disease, bone metastasis, multiple myeloma, and other conditions that feature bone fragility.

Did you know?

Approximately 500,000 babies are born each year in the United States to teenage mothers.

Did you know?

The Romans did not use numerals to indicate fractions but instead used words to indicate parts of a whole.

For a complete list of videos, visit our video library