Intro to CS Unit 3 Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground 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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
16 questions
Module 5 Test Remediation
Flashcard
•
9th Grade - University
15 questions
Slope: Mixed Review
Flashcard
•
KG - University
15 questions
Pre Alg Diagnostic Test (Term 3)
Flashcard
•
9th Grade - University
15 questions
How Can I Smell Things From a Distance - Learning Set #2 Review
Flashcard
•
KG - University
15 questions
thursday review
Flashcard
•
9th Grade - University
15 questions
Triangle Similarity & Pythagorean Theorem
Flashcard
•
9th Grade - University
15 questions
Semester Exam 2024 Flashcard 1
Flashcard
•
9th Grade - University
20 questions
Maslow's Hierarchy of Needs Flashcard
Flashcard
•
KG - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade