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