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

Author Question: What is wrong, logically, with the following code? (Read 30 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
Thanks for the timely response, appreciate it


Dinolord

  • Member
  • Posts: 313
Reply 3 on: Yesterday
Gracias!

 

Did you know?

The average older adult in the United States takes five prescription drugs per day. Half of these drugs contain a sedative. Alcohol should therefore be avoided by most senior citizens because of the dangerous interactions between alcohol and sedatives.

Did you know?

The most dangerous mercury compound, dimethyl mercury, is so toxic that even a few microliters spilled on the skin can cause death. Mercury has been shown to accumulate in higher amounts in the following types of fish than other types: swordfish, shark, mackerel, tilefish, crab, and tuna.

Did you know?

In 1864, the first barbiturate (barbituric acid) was synthesized.

Did you know?

The word drug comes from the Dutch word droog (meaning "dry"). For centuries, most drugs came from dried plants, hence the name.

Did you know?

Famous people who died from poisoning or drug overdose include, Adolf Hitler, Socrates, Juan Ponce de Leon, Marilyn Monroe, Judy Garland, and John Belushi.

For a complete list of videos, visit our video library