if (amount > 1000)    result = 1;else   if (amount > 500)      result = 2;   else      if (amount > 100)          result = 3;      else          result = 4;
Using the above code segment, what is stored in result when amount is equal to 14?

A. 1
B. 2
C. 3
D. 4


Answer: D

Computer Science & Information Technology

You might also like to view...

People on the Internet who make untrue statements are NOT subject to the same laws that punish libel

Indicate whether the statement is true or false

Computer Science & Information Technology

Differentiate between a client and a service.

What will be an ideal response?

Computer Science & Information Technology

?In structured analysis, _____ are transformed into data structures and program code.

A. ?processes B. ?data stores C. ?entities D. ?keys

Computer Science & Information Technology

Describe the relationship of a workbook theme, chart styles, and chart colors.

What will be an ideal response?

Computer Science & Information Technology