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