CMP128 Java Ch. 04 Loops Pt. 1

CMP128 Java Ch. 04 Loops Pt. 1

Assessment

Flashcard

Computers

University

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is true about For Loops? Options: They are counter-controlled, They iterate a finite number of times, They contain an initialization of a counter variable, a condition test, and a counter accumulation or decrementation.

Back

All of the above

2.

FLASHCARD QUESTION

Front

Which of the following is NOT true about While Loops? Options: They are post-test loops., They contain a priming statement., They contain an updating statement., They are used when you cannot quantify the number of iterations, but some indeterminate qualifier will terminate it.

Back

They are post-test loops.

3.

FLASHCARD QUESTION

Front

Which construct is best used for event-driven qualifiable pre-test loops? Options: While Loop, For Loop, Do While Loop, For Next Loop

Back

While Loop

4.

FLASHCARD QUESTION

Front

Which construct is best for event-driven qualifiable post-test loops? Options: While Loop, For Loop, Do While Loop, For Next Loop

Back

Do While Loop

5.

FLASHCARD QUESTION

Front

Which construct is best used for counter-controlled finite (quantifiable) loops? Options: While Loop, For Loop, Do While Loop, None of these

Back

For Loop

6.

FLASHCARD QUESTION

Front

Which type of looping structure is guaranteed to execute at least one time? Options: While Loop, Do While Loop, For Loop, None of these

Back

Do While Loop

7.

FLASHCARD QUESTION

Front

Which term describes a normal terminator for a looping structure? Options: A continue clause, A break clause, A sentinel value, A stop clause

Back

A sentinel value

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?