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

Author Question: What is wrong, logically, with the following code? (Read 23 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 :)


bdobbins

  • Member
  • Posts: 326
Reply 3 on: Yesterday
Excellent

 

Did you know?

Dogs have been used in studies to detect various cancers in human subjects. They have been trained to sniff breath samples from humans that were collected by having them breathe into special tubes. These people included 55 lung cancer patients, 31 breast cancer patients, and 83 cancer-free patients. The dogs detected 54 of the 55 lung cancer patients as having cancer, detected 28 of the 31 breast cancer patients, and gave only three false-positive results (detecting cancer in people who didn't have it).

Did you know?

About one in five American adults and teenagers have had a genital herpes infection—and most of them don't know it. People with genital herpes have at least twice the risk of becoming infected with HIV if exposed to it than those people who do not have genital herpes.

Did you know?

Illness; diuretics; laxative abuse; hot weather; exercise; sweating; caffeine; alcoholic beverages; starvation diets; inadequate carbohydrate consumption; and diets high in protein, salt, or fiber can cause people to become dehydrated.

Did you know?

For pediatric patients, intravenous fluids are the most commonly cited products involved in medication errors that are reported to the USP.

Did you know?

Always store hazardous household chemicals in their original containers out of reach of children. These include bleach, paint, strippers and products containing turpentine, garden chemicals, oven cleaners, fondue fuels, nail polish, and nail polish remover.

For a complete list of videos, visit our video library