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

1. When the break statement is encountered in a loop, all the statements in the body of the loop that appear after it are ignored, and the loop prepares for the next iteration.
2. When the continue statement is encountered in a loop, all the statements in the body of the loop that appear after it are ignored, and the loop prepares for the next iteration.
3. A file must always be opened before using it and closed when the program is finished using it.
4. In a for loop, the control variable is always incremented.


1. FALSE
2. TRUE
3. TRUE
4. FALSE

Computer Science & Information Technology

You might also like to view...

A(n) ____ is another name for a contact's nickname.

A. signature B. alias C. email address D. screen name

Computer Science & Information Technology

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

1. Efficiency is lost in importing the entire package instead of importing the classes you use. 2. Every Java program automatically imports the java.util package. 3. The new line character is represented as ā€˜\nā€™. 4. The method printf is used the same way as the method println but has the added feature that allows you to add formatting instructions. 5. The printf method can be used to output multiple formatted values.

Computer Science & Information Technology

Case 12-1 A word document contains a table. Along the top of the table, from left to right, there are boxes labeled "2014," "2015," "2016," and "2017." Along the left of the table, from top to bottom, there are boxes labeled "Minneapolis," "Dallas," and "Seattle." The series of boxes 2014, 2015, 2016, and 2017 in the table is a(n) _____.

A. ?cell B. ?row C. ?column D. ?element

Computer Science & Information Technology

When entering text to be displayed in the column headings of a data table, the text must be enclosed in quotation marks

Indicate whether the statement is true or false

Computer Science & Information Technology