Exam 6: Flow of Control, Part 2: Looping

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

Why is the first read called the priming read?

(Multiple Choice)
4.9/5
(35)

Assuming the for loop header for ( i = 0; i <= 7; i++ ), what will be value of i after we exit the loop?

(Multiple Choice)
4.9/5
(39)

A while loop can be used for counting input values that have a certain property-for instance, positive values.

(True/False)
4.9/5
(40)

An InputMismatchException is generated while using Scanner. What can you conclude?

(Multiple Choice)
4.9/5
(38)

Before the loop begins, if you know the number of times the loop body should execute, you can use a:

(Multiple Choice)
4.9/5
(35)

When you write a program that expects an input value within a certain range only, you should not forget to test the __________ case.

(Short Answer)
4.8/5
(35)

When asking the user for an integer value, it is possible that the user enters a character that is not an integer; using a while loop, we can keep asking the user for an integer until the user enters one.

(True/False)
4.8/5
(27)
Showing 61 - 67 of 67
close modal

Filters

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