
Edhesive - Intro to CS Unit 3
Authored by Katie Kunz
Computers
9th - 12th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
20 questions
KTTX lần 01 Tin 11
Quiz
•
11th Grade
17 questions
ÔN TẬP CUỐI KỲ II TIN 8
Quiz
•
8th - 11th Grade
17 questions
1.8a Environmental Issues
Quiz
•
10th - 11th Grade
15 questions
J808 LO1 and LO2 planning project keywords / terms
Quiz
•
9th - 11th Grade
20 questions
Structure of a Webpage
Quiz
•
10th Grade
15 questions
حاسب 2
Quiz
•
10th Grade
20 questions
End of year quiz: Python
Quiz
•
9th Grade
15 questions
M2S5P1
Quiz
•
12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Navigating Digital Citizenship and Online Safety
Interactive video
•
6th - 10th Grade
20 questions
Computer / Internet Companies
Quiz
•
9th Grade
10 questions
Exploring the Basics of Google Sheets
Interactive video
•
9th Grade
10 questions
Exponent Rules
Quiz
•
9th - 12th Grade
20 questions
JavaScript - Karel
Quiz
•
9th - 10th Grade