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

1. If the expression on the left side of the following is true, the expression on the right side will not be checked.
(a > = b) || (c == d)

2. If the expression on the left side of the following is false, the expression on the right side will not be checked.
(a > = b) && (c == d)

3. The default section is required in a switch statement.
4. An expression that has any value other than 0 is considered true by an if statement.
5. Both of the following if statements perform the same operation.
1. if (sales > 10000)
commissionRate = 0.15;
2. if (sales > 10000) commissionRate = 0.15;

1. T
2. T
3. F
4. T
5. T

Computer Science & Information Technology

You might also like to view...

When a keyboard is not available, a ________ can be used

A) mouse B) touchpad C) touch-screen keyboard D) finger

Computer Science & Information Technology

In a mail merge, the document that contains the text or formatting that remains constant

a. main document b. data source c. merged document

Computer Science & Information Technology