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