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