1. In the statement, x =3;, the ' =' operator is one of Java's extended assignment operators. 2. Using the same name for two methods in the same class, where each method has different parameter input, is called overloading. 3. The nextInt method of Java's Random class returns an integer chosen at random from a range of values between 0 and n-1 where n is the parameter value passed to the method. 4. Java's while statement, and the if-else statements are examples of control statements. 5. The double equal sign (==) is the symbol used to represent Java's equal to operator. 6. Java's for loop is an example of a(n) counter-controlled loop. 7. When a while loop or a for loop is coded inside another while loop or for loop, the inner loop is called a(n) nested loop.. 8. A(n) sentinel is a special value that denotes the end of a list and is used to terminate loop processing when reading input values from a user, or a data file. 9. A(n) off-by-one error occurs when a loop is executed one too many, or one too few times due to an incorrectly coded check of the counter variable. 10. A loop that runs without stopping due to a logic error is called a(n) infinite loop 11. Using a floating-point value as a control variable in a loop, but failing to account for the effects of floating-point precision, can cause a loop to execute much differently than expected.Page 1 NAME: _____________________
LESSON 4 - INTRODUCTION TO CONTROL STATEMENTS
FILL IN THE BLANKS
Complete the following sentences by writing the word or words in the blanks provided. 1. In the statement, x +=3;, the '+=' operator is one of Java's _______________ assignment operators. 2. Using the same name for two methods in the same class, where each method has different parameter input, is called _______________.
3. The double equal sign (==) is the symbol used to represent Java's _______________ operator. 4. A(n) _______________ error occurs when a loop is executed one too many, or one too few times due to an...
Please join StudyMode to read the full document