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
20 questions
Python Basics & Syntax

Flashcard
•
10th - 12th Grade
29 questions
Math and Boolean Expressions

Flashcard
•
9th - 12th Grade
13 questions
AP CS A - Unit 4 Assessment

Flashcard
•
KG
14 questions
Javascript Control Structures Practice

Flashcard
•
9th - 12th Grade
15 questions
CodeHS Python Unit 5 Looping Flashcard

Flashcard
•
9th - 12th Grade
16 questions
Loops Flashcard

Flashcard
•
9th - 12th Grade
20 questions
Microsoft Word: Introduction

Flashcard
•
8th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd 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
30 questions
Computer Terminology Exercise #1 ( Fill Ins)

Quiz
•
9th Grade
15 questions
MLA Formatting

Quiz
•
9th Grade
20 questions
Typing Practice

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

Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz

Quiz
•
9th Grade