Quiz
Chapter 5 multiple choice review
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (17)
1How many times will the following loop iterate?
For j = 1 To 5 Step 2
Display j
End For- Afive
- Btwo
- Cthree
- Dfour
2 How many times will the following loop iterate?
Set k = 1
Do
Display k
Set k = k + 1
Until k > 1- A1
- B2
- C5
- D4
3Which loop is specifically designed to initialize test and increment a counter variable?
- ADo-While
- BDo-Until
- CFor
- DWhile
4A _____ -controlled loop repeats a specific number of times.
- ABoolean
- Bcondition
- Cdecision
- Dcount
5How many times will the following loop iterate?
Set k = 1
While k < = 5
Display k
End While- A1
- B5
- CInfinite
- D3
6A ______-controlled loop uses a true/false condition to control the number of times that it repeats.
- ABoolean
- Bcondition
- Cdecision
- Dcount
7The While loop is a ____ type of loop.
- Apretest
- Bposttest
- Cprequalified
- Dpost iterative
8A(n) ____ variable keeps a running total.
- Asentinel
- Bsum
- Ctotal
- Daccumulator
9To ___________ a variable means to decrease its value.
- AIncrement
- BInitialize
- CReference
- DDecrement
- ENegate
10In a count-controlled loop the counter performs _______ action(s).
- Aone
- Btwo
- Cthree
- Dfour
- Efive
11A ____ loop always executes at least once.
- Apretest
- Bposttest
- Ccondition-controlled
- Dcount-controlled
12Which pair of loops causes a statement or set of statements to repeat as long as a condition is true?
- AWhile and Do-While
- BWhile and Do-Until
- CDo-While and Do-Until
- DD ) Do-Until and For
- EE ) Do-While and For
13Which structure causes a statement or set of statements to execute repeatedly?
- AStart Over
- BSequence
- CDecision
- DRepetition
- ENone of these
14A loop that accumulates a total as it reads each number from a series is often said to keep a what?
- AAverage
- BMaximum value
- CRunning total
- DAccumulation
- ENone of these
15Which loop repeats a statement or set of statements as long as the Boolean expression is false?
- ADo-While
- BDo-Until
- CFor
- DWhile
- ENone of these
16Each repetition of a loop is known as a(n) _____
- Acycle
- Brevolution
- Corbit
- Diteration
17Which loop statement does not contain an increment statement but automatically increments the counter at the end of each iteration?
- ADo-While
- BDo-Until
- CFor
- DWhile
- ENone of these
Information
- Description
- Computer Science Quiz on Chapter 5 multiple choice review, created by Naina Minhas on 16/10/2022.
- Author
- Naina Minhas
- Language
- English
- Views
- 3
- Tags
- Rating
- No ratings yet Rate this quiz