
Edhesive - Intro to CS Unit 3

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Katie Kunz
Used 18+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an if-then statement used for in a program?
Repeat sections of code
To allow programs to make decisions
To count user input
Answer explanation
IF statements check conditions in order to decide if certain lines of code should be ran or not.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code can be rewritten as:
if 75 <= y <= 100:
if (75 <= y and <= 100):
if 75 <= y and <= 100):
if (75 <= y and y <= 100):
if (75 <= y <= 100):
Answer explanation
This correctly tests if 75 is smaller than y AND if y is smaller than 100
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is true when a is 4 and b is 8?
a < b and a==b
b <= a or a > b
a > b or a == b
a < b and a != b
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code could be rewritten using:
if (num1 == 17):
if ( num2 < 20):
not
or
and
none of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To test if x is less than or equal to y:
if (x ______y):
>
<
>=
<=
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
For if statements to work in Python, you must ________ them.
indent
make decisions about
add an else to
use input commands with
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The else happens when the if condition is _________
true
false
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Cumulative Test Practice Units 1, 3, 4, 5, & 7

Quiz
•
9th - 12th Grade
25 questions
Global 3r ESO

Quiz
•
12th Grade
20 questions
Quiz Informatika Kelas X PTS I

Quiz
•
10th Grade
15 questions
Code.org Unit 5 Lesson 15 Assessment

Quiz
•
9th - 12th Grade
15 questions
Python elif and Nested if

Quiz
•
12th Grade
16 questions
Code.org CSP Unit 4 Review

Quiz
•
9th - 12th Grade
15 questions
Python Quiz

Quiz
•
9th - 12th Grade
15 questions
Diagramas de Flujo 2

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade