Intro to CS Unit 3 Review

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
When do you use an else statement?
Back
To tell what will happen when an if-statement is false.
2.
FLASHCARD QUESTION
Front
Write the code to test if num1 and num2 are the same.
Back
if (num1 == num2)
3.
FLASHCARD QUESTION
Front
Consider the following code:
word = "kangaroo"
if (word == "KANGAROO"):
print ("TRUE")
else:
print ("FALSE")
What is output?
Back
FALSE
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.
FLASHCARD QUESTION
Front
Consider the following code: if (90 < = x <= 100). It should be rewritten as:
Back
if (90 < = x and x <= 100):
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.
FLASHCARD QUESTION
Front
When do you use an else statement?
Back
When you need something to happen when the if condition is false
Answer explanation
An else statement will run lines of code when all of the other conditions that are checked are false
6.
FLASHCARD QUESTION
Front
Write the code to test if num1 and num2 are NOT the same.
Back
if (num1 != num2 )
7.
FLASHCARD QUESTION
Front
What does != mean?
Back
not equal
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python - List and Tuples

Flashcard
•
11th - 12th Grade
16 questions
Code.org CSP Unit 4 Review

Flashcard
•
9th - 12th Grade
21 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
20 questions
CodeHS Python Unit 3 Flashcard Review

Flashcard
•
9th - 12th Grade
19 questions
AP CS A Unit 3

Flashcard
•
9th - 12th Grade
18 questions
Unit 1 Review: Python Basics

Flashcard
•
9th - 12th Grade
20 questions
Strings, Lists & Tuples

Flashcard
•
9th - 12th Grade
21 questions
Java Loops

Flashcard
•
KG
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade