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 12000?

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


Answer: A

Computer Science & Information Technology

You might also like to view...

The Freeze Panes button is located in the ________ group

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________ bar is a horizontal gradient or solid fill indicating the cell's relative value compared to other selected cells

Fill in the blank(s) with correct word

Computer Science & Information Technology

If you calculate payments that are high for your budget, you might consider:

A) borrowing more money. B) increasing the interest rate. C) extending the time period to repay the loan. D) decreasing the time period to repay the loan.

Computer Science & Information Technology

The current release of SMB is CIFS, also called SMB2.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology