
Understanding the Basic Control Structures
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Lisa Leung
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the three basic control structures mentioned in the text?
Sequence, Selection, Iteration
Input, Process, Output
Data, Information, Knowledge
Analysis, Design, Implementation
Answer explanation
The three basic control structures in programming are Sequence, Selection, and Iteration. Sequence refers to executing statements in order, Selection involves making decisions, and Iteration is about repeating actions.
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Which control structure is described as having lines of code follow in order one after the other?
Evaluate responses using AI:
OFF
Answer explanation
The control structure described is 'sequential execution', where lines of code are executed one after the other in the order they appear. This is the default mode of execution in most programming languages.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a flowchart, how is binary selection shown?
Using a diamond shape
Using a rectangle shape
Using a circle shape
Using a parallelogram shape
Answer explanation
In a flowchart, binary selection is represented using a diamond shape. This shape indicates a decision point where the flow can branch into two paths based on a yes/no or true/false condition.
4.
OPEN ENDED QUESTION
3 mins • 1 pt
What is the most important control structure that allows a computer to repeat actions effortlessly many times?
Evaluate responses using AI:
OFF
Answer explanation
The most important control structure for repeating actions is the loop. Loops, such as 'for' and 'while', allow a computer to execute a block of code multiple times without manual intervention, making repetitive tasks efficient.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between pre-test loops and post-test loops.
Pre-test loops check the condition before executing the loop body, while post-test loops check the condition after executing the loop body.
Pre-test loops check the condition after executing the loop body, while post-test loops check the condition before executing the loop body.
Both pre-test and post-test loops check the condition before executing the loop body.
Both pre-test and post-test loops check the condition after executing the loop body.
Answer explanation
Pre-test loops evaluate the condition before the loop body runs, ensuring the loop may not execute at all if the condition is false. In contrast, post-test loops execute the loop body first and then check the condition, guaranteeing at least one execution.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: A pre-test loop performs a test ______ starting on the loop.
condition
iteration
execution
termination
Answer explanation
A pre-test loop checks a condition before executing the loop body. This means it evaluates whether to enter the loop based on the specified condition, making 'condition' the correct choice.
7.
OPEN ENDED QUESTION
3 mins • 1 pt
What does the loop do when the test condition evaluates to False?
Evaluate responses using AI:
OFF
Answer explanation
When the test condition evaluates to False, the loop terminates and control passes to the next statement following the loop. No further iterations occur.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
35 questions
CompTIA ITF+ Test 2-2
Quiz
•
10th - 12th Grade
40 questions
WJEC ICT Unit 3 Mock Revision
Quiz
•
10th - 11th Grade
40 questions
C++ Programming
Quiz
•
9th - 12th Grade
40 questions
COMPUTER HARDWARE
Quiz
•
9th - 12th Grade
40 questions
Chapter 13 Planning and Organizing - PBM
Quiz
•
10th - 12th Grade
44 questions
AP CSP - Unit 4 Code.org Review
Quiz
•
9th - 12th Grade
45 questions
Computer Hardware and Software Review
Quiz
•
KG - University
40 questions
Atividades Pensamento Computacional
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
