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