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

1. It is good program style to put spaces between words and symbols.
2. A C++ statement cannot extend over more than one line.
3. In C++ addition is always evaluated before subtraction.
4. The value of 3/7 is 0.
5. >> is used for output.

1. True
2. False
3. False
4. True
5. False

Computer Science & Information Technology

You might also like to view...

What shutdown options save the current session to disk before powering off the computer?

A. Shut down B. Standby/Sleep C. Hibernate D. Log off

Computer Science & Information Technology

What is the output of the following program?

``` public class Test { public static void main(String[] args) { int[][] values = {{3, 4, 5, 1 }, {33, 6, 1, 2}}; for (int row = 0; row < values.length; row++) { java.util.Arrays.sort(values[row]); for (int column = 0; column < values[row].length; column++) System.out.print(values[row][column] + " "); System.out.println(); } } } ``` a. The program prints two rows 3 4 5 1 followed by 33 6 1 2 b. The program prints on row 3 4 5 1 33 6 1 2 c. The program prints two rows 3 4 5 1 followed by 2 1 6 33 d. The program prints two rows 1 3 4 5 followed by 1 2 6 33 e. The program prints one row 1 3 4 5 1 2 6 33

Computer Science & Information Technology