1. An if statement takes the following basic form. Fill in the blanks on the first line.
2. Analyse the code below. Which of the following statements is true of this code?
3. The following code segment is equivalent to: varOne = 0;
4. Unlike the if statement, the else if statement has not two outcomes but __________________.
5. Examine the following code. If the expression exampleVariableOne < 10 returns a value of ______, only the statements within the curly brackets of the if statement are executed (everything else ignored).
6. The following program uses if statements. What is the purpose of the program?
7. A user enters an input of "125", what is the output?
8. Which of the following rules are true of working with if statements?
9. What is the value of varTwo after the following switch statement is executed?
10. What is printed as a result of executing exampleMethod(3,-2)?
11. The following example demonstrates a:
12. What is the output of the following code?
13. Analyse the following code segment. What are the values of x and y if n = 1?
14. Which of the following control expressions are valid for an if statement?
15. What is the output of the following code?