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