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