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

1. The do-while loop must be terminated with a semicolon.
2. The do-while loop is ideal in situations where you always want the loop to iterate at least once.
3. When you pass the name of a file to the PrintWriter constructor and the file already exists, it will be erased and a new empty file with the same name will be created.
4. When you open a file with the PrintWriter class, the class can potentially throw an IOException.


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

Computer Science & Information Technology

You might also like to view...

Which of the following is not true about a form’s Activated event?

a. It occurs when a form is initially displayed. b. It occurs each time a form regains the focus. c. It occurs each time the user clicks a form that does not have the focus. d. It occurs before the Load event procedure is processed.

Computer Science & Information Technology

The _____ Field Size property stores positive and negative numbers to precisely 15 decimal places and uses eight bytes.?

A. ?Integer B. ?Double C. ?Single D. ?Decimal

Computer Science & Information Technology

The IPv6 version of traceroute is tracerouteipv6 n Windows. True or false?

a. True b. False

Computer Science & Information Technology

?_____ is the process of putting a new information system online and retiring the old system.

A. ?System integration B. ?Online system documentation C. ?System override D. ?System changeover

Computer Science & Information Technology