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
Similar Resources on Wayground
13 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
20 questions
e-Learning "A" Day November 25th

Flashcard
•
9th - 12th Grade
19 questions
Intro to CS Midterm Exam

Flashcard
•
12th Grade
26 questions
Python Functions Review Flashcard

Flashcard
•
9th - 12th Grade
22 questions
Definite Midterm YWLA AP CSP

Flashcard
•
9th - 12th Grade
19 questions
Unit 3: Intro to App Design (APCSP 22-23, Code.org)

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

Flashcard
•
9th - 12th Grade
18 questions
Python Functions

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade