Exam 11: Input/Output and Exception Handling

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The ____ method of the Character class will indicate if a character contains white space.

(Multiple Choice)
4.7/5
(36)

Consider the following code snippet. Consider the following code snippet.   Which of the following statements about this code is correct? Which of the following statements about this code is correct?

(Multiple Choice)
4.7/5
(38)

Consider the following code snippet, assuming that description is a String and totalPrice is a double: System.out.printf("%-12s%8.2f",description,totalPrice); Which of the following statements is correct?

(Multiple Choice)
4.9/5
(30)

Consider the following code snippet. PrintWriter outputFile = new PrintWriter("payrollReport.txt"); Which of the following statements about the PrintWriter object is correct?

(Multiple Choice)
5.0/5
(48)

Insert the missing code in the following code fragment.This fragment is intended to read all words from a text file named dataIn.txt. Insert the missing code in the following code fragment.This fragment is intended to read all words from a text file named dataIn.txt.

(Multiple Choice)
4.7/5
(36)

Which of the following statements about checked and unchecked exceptions is true?

(Multiple Choice)
4.8/5
(38)

Which of the following statements about exception handling is recommended?

(Multiple Choice)
4.8/5
(33)

Consider the following code snippet, assuming in is an instantiated Scanner: Consider the following code snippet, assuming in is an instantiated Scanner:   Which of the following statements about this code is correct? Which of the following statements about this code is correct?

(Multiple Choice)
4.9/5
(34)
Showing 101 - 108 of 108
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)