Intro to CS Unit 3 Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Sammi McConnell
Used 15+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When do you use an else statement?
To Input a variable
To handle string values
To tell what will happen when an if-statement is false.
To end an IF statement.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the code to test if num1 and num2 are the same.
if (num1 = num2)
if (num1 < num2)
if (num1 == num2)
if (num1 != num2)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Consider the following code:
word = "kangaroo"
if (word == KANGAROO"):
print ("TRUE")
else:
print ("FALSE")
What is output?
KANGAROO
TRUE
FALSE
CAPTAIN
Answer explanation
Capitalized words in a string are not equal to their lower case counter parts. So,
“kangaroo” does not
equal “KANGAROO” which is why the output is false
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Consider the following code:
if (90 < = x <= 100)
It should be rewritten as:
if (90 < = x <= 100):
if (90 < = x and <= 100):
if (90 < = x and x <= 100):
Nothing, the if statement is correct
Answer explanation
This correctly tests if 90 is less than or equal to x and tests if x is less than or equal to 100
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When do you use an else statement?
When you need something to happen when the if condition is false
To make a follow-up True/False decision
To allow programs to make decisions.
To get user input
Answer explanation
An else statement will run lines of code when all of the other conditions that are checked are false
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the code to test if num1 and num2 are NOT the same.
if (num1 != num2 )
if (num1 == num2 )
if (num1 = num2)
if (num1 < num2 )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does != mean?
equal
not equal
less than
both
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
AP Computer Science Midterm Review

Quiz
•
10th - 12th Grade
20 questions
Pemrograman Dasar Kelas X

Quiz
•
10th Grade
20 questions
HTML Test

Quiz
•
9th - 12th Grade
20 questions
AP CSA Unit 1 Intro

Quiz
•
12th Grade
20 questions
Java Primitive Integer Data Type

Quiz
•
11th Grade
20 questions
CSS Quiz

Quiz
•
7th - 12th Grade
20 questions
Q3-1 Quiz Review

Quiz
•
11th Grade
20 questions
Programming

Quiz
•
9th Grade
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