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