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(s) that cause a statement to repeat until a condition is true
loop iteration
pretest loop
Do-until
Condition controlled loop
2. Statements that appear on the lines between the start and end clauses
body of a loop
infinite loop
post test loop
pretest loop
3. Using the counter variable a count controlled loop performs Initialization and test and _______
count controlled
step amount
Increasing
increment
4. Use a ______ loop when you always want the task to be performed at least one time regardless of whether it is true or false
Initialization action
Do-While
Accumulator
Do-Until
5. A loop type that uses a true/false condition to control the number of times it repeats
Do-Until
Condition controlled loop
a count controlled loop
infinite loop
6. While and _____ are loop(s) that cause a statement to repeat as long as a condition is true
increment
Do-While loop
pretest loop
Do-while
7. Use a ________ loop when you want to perform a task until the condition is true
Do-While
Nested loop
running total
Do-Until
8. The amount by which the counter variable is incremented in a For loop
step amount
loop iteration
while loop
Do-Until
9. Condition controlled and _______ are 2 categories of loops
Nested loop
while loop
For
count controlled
10. A loop that continues to repeat until the program is interrupted - always avoid using this
Increasing
Do-Until
infinite loop
Sentinel
11. A _______ will not run unless the condition is true
while loop
count controlled
Do-While loop
Do-Until
12. A special value that marks the end of a list of values. Useful when processing a long list of values with a loop
Sentinel
while loop
Do-until
impossible
13. Causes a statement or set of statements to execute repeatedly
Do-while
repetition structure
count controlled
inner loop
14. A _____________ loop will always perform at least one iteration even if the condition is false to begin with.
inner loop
Do-While loop
Do-while
body of a loop
15. A counter that stores the number of iterations that it has performed
Do-Until
While loop
counter variable
Accumulator
16. The ________ in a count controlled loop: Before the loop begins the counter variable is initialized to a starting value
Sentinel
Do-Until
Initialization action
infinite loop
17. The _____ statement is specifically designed to initialize and test and increment a counter variable
repetition structure
Do-While
For
body of a loop
18. The three types of condition controlled loops are: While and Do-While and ______
running total
a count controlled loop
Do-Until
Increasing
19. 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
Accumulator
Test action
Do-While
Increasing
20. The name of the running total variable - the first step in a flowchart for a running total is to set the accumulator to 0
Condition controlled loop
Accumulator
Do-While
counter variable
21. The _____ loop iterates until a condition is true (as long as the condition is false)
count controlled
Increasing
Do-Until
Test action
22. Each execution of the body of a loop
Sentinel
loop iteration
inner loop
Do-while
23. A ______ loop will not execute unless a condition is true
Do-While
While
Sentinel
Do-Until
24. A loop that is inside of another loop - e.g. A clock: Hours and minutes and seconds--3 loops in one location
Do-Until
Do-Until
Do-While
Nested loop
25. ______ the value during each iteration is the Increment action in a count controlled loop
step amount
Condition controlled loop
post test loop
Increasing
26. An ______ goes through all of its iterations for every single outer loop iteration
Test action
impossible
Sentinel
inner loop
27. Use a _____ loop where where the condition may be false to start with and you do NOT want the loop to iterate
For
Do-While
Accumulator
While loop
28. A loop that tests its condition BEFORE performing an iteration - e.g. while loop
pretest loop
Do-until
Sentinel
count controlled
29. 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
body of a loop
Increasing
While loop
increment
30. A sum of numbers that accumulates with each iteration of a loop
infinite loop
loop iteration
running total
Do-Until
31. A loop that iterates a specific number of times
Initialization action
increment
a count controlled loop
Do-While loop
32. A loop type that repeats a specific number of times
Initialization action
loop iteration
count controlled loop
Do-while
33. It is _______ to write a count controlled While or Do-While or Do-Until loop
impossible
counter variable
Accumulator
Do-Until
34. loop Anexample of a count controlled loop
Initialization action
For
While loop
Increasing
35. A Do-While loop can always be written in the form of __________ loop
post test loop
increment
count controlled
While loop
36. A loop that performs an iteration before testing its condition - e.g. Do-While and Do-Until
Condition controlled loop
post test loop
body of a loop
Do-Until