SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Conditional Programming
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 36 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. The _____ loop iterates until a condition is true (as long as the condition is false)
body of a loop
impossible
inner loop
Do-Until
2. loop Anexample of a count controlled loop
Nested loop
count controlled loop
Sentinel
For
3. A counter that stores the number of iterations that it has performed
inner loop
Do-Until
Do-until
counter variable
4. In the _______ 1) A condition is tested for a true/false value and then 2) A statement or set of statements is repeated as long as the condition is true
While loop
step amount
Do-until
Do-While
5. A loop type that uses a true/false condition to control the number of times it repeats
Do-While loop
pretest loop
Do-until
Condition controlled loop
6. A sum of numbers that accumulates with each iteration of a loop
while loop
For
While loop
running total
7. A special value that marks the end of a list of values. Useful when processing a long list of values with a loop
Sentinel
Do-while
increment
Do-Until
8. The ______ in a count controlled loop is:The loop tests the counter variable by comparing it to a maximum value. If the counter variable is less than or equal to the max value the loop iterates
count controlled
Test action
count controlled loop
inner loop
9. A loop that tests its condition BEFORE performing an iteration - e.g. while loop
Do-While
For
Do-until
pretest loop
10. A loop that is inside of another loop - e.g. A clock: Hours and minutes and seconds--3 loops in one location
Do-Until
Nested loop
While loop
post test loop
11. A loop that continues to repeat until the program is interrupted - always avoid using this
count controlled
Nested loop
infinite loop
Test action
12. A ______ loop will not execute unless a condition is true
Do-while
While
Increasing
step amount
13. A _____________ loop will always perform at least one iteration even if the condition is false to begin with.
count controlled loop
Do-While loop
impossible
Accumulator
14. A loop that iterates a specific number of times
body of a loop
a count controlled loop
infinite loop
Do-While loop
15. The amount by which the counter variable is incremented in a For loop
Do-Until
step amount
While
running total
16. A Do-While loop can always be written in the form of __________ loop
Do-Until
repetition structure
While loop
count controlled loop
17. An ______ goes through all of its iterations for every single outer loop iteration
inner loop
Nested loop
post test loop
Sentinel
18. Statements that appear on the lines between the start and end clauses
Do-While loop
repetition structure
infinite loop
body of a loop
19. The name of the running total variable - the first step in a flowchart for a running total is to set the accumulator to 0
Accumulator
For
Sentinel
loop iteration
20. Condition controlled and _______ are 2 categories of loops
step amount
count controlled
infinite loop
Condition controlled loop
21. The _____ statement is specifically designed to initialize and test and increment a counter variable
Increasing
infinite loop
Do-while
For
22. A _______ will not run unless the condition is true
Do-While
inner loop
For
while loop
23. Use a ______ loop when you always want the task to be performed at least one time regardless of whether it is true or false
count controlled loop
Accumulator
Do-While
inner loop
24. While and _____ are loop(s) that cause a statement to repeat as long as a condition is true
post test loop
Do-while
increment
pretest loop
25. The ________ in a count controlled loop: Before the loop begins the counter variable is initialized to a starting value
Initialization action
a count controlled loop
Increasing
loop iteration
26. Use a ________ loop when you want to perform a task until the condition is true
Sentinel
increment
Do-while
Do-Until
27. Each execution of the body of a loop
Do-while
Accumulator
loop iteration
While loop
28. It is _______ to write a count controlled While or Do-While or Do-Until loop
impossible
Do-Until
Do-while
While loop
29. A loop that performs an iteration before testing its condition - e.g. Do-While and Do-Until
post test loop
Do-Until
loop iteration
Test action
30. Causes a statement or set of statements to execute repeatedly
repetition structure
while loop
For
Do-While
31. The three types of condition controlled loops are: While and Do-While and ______
repetition structure
count controlled
Do-Until
For
32. ______ the value during each iteration is the Increment action in a count controlled loop
infinite loop
Increasing
Do-Until
Do-while
33. Using the counter variable a count controlled loop performs Initialization and test and _______
post test loop
Condition controlled loop
Do-Until
increment
34. The loop(s) that cause a statement to repeat until a condition is true
count controlled
running total
Do-until
Initialization action
35. A loop type that repeats a specific number of times
Do-While loop
inner loop
count controlled loop
running total
36. Use a _____ loop where where the condition may be false to start with and you do NOT want the loop to iterate
increment
inner loop
Do-While
Do-until