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