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

Author Question: What is wrong, logically, with the following code? (Read 22 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
Great answer, keep it coming :)


kalskdjl1212

  • Member
  • Posts: 353
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Coca-Cola originally used coca leaves and caffeine from the African kola nut. It was advertised as a therapeutic agent and "pickerupper." Eventually, its formulation was changed, and the coca leaves were removed because of the effects of regulation on cocaine-related products.

Did you know?

The first war in which wide-scale use of anesthetics occurred was the Civil War, and 80% of all wounds were in the extremities.

Did you know?

According to the CDC, approximately 31.7% of the U.S. population has high low-density lipoprotein (LDL) or "bad cholesterol" levels.

Did you know?

People often find it difficult to accept the idea that bacteria can be beneficial and improve health. Lactic acid bacteria are good, and when eaten, these bacteria improve health and increase longevity. These bacteria included in foods such as yogurt.

Did you know?

The familiar sounds of your heart are made by the heart's valves as they open and close.

For a complete list of videos, visit our video library