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
You might also like to view...
The number of winning lottery tickets satisfies which distribution?
a. Gaussian b. negative exponential c. normal d. Poisson e. uniform
What is wrong with the code above?
``` class Radio { private: int presets = 15; bool FM = true; double cost = 35.95; public: Radio( ); }; ``` A. Nothing is wrong with the code. B. Cannot assign values in class declaration. C. The constructor does not initialize variables. D. B and C.