CPModule 3 Making Decisions

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Marcia Bernas
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 tell what will happen when an if-statement is false
To end an IF statement
To handle string values
To Input a variable
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Consider the following code:
word = "kangaroo"
if (word == "KANGAROO"):
print ("TRUE")
else:
print ("FALSE")
What is output?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT true about all algorithms?
All algorithms can only do number calculations
All algorithms have clear instructions
All algorithms stop in a finite amount of time
All algorithms have an order
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code could be rewritten using:
if (x > 12):
if (x < 34):
not
or
and
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
Both conditions must be true
and
!=
or
==
not
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Javascript Basics Test

Quiz
•
7th - 12th Grade
22 questions
Fundamentals of Programming (GCSE Computer Science AQA)

Quiz
•
9th - 11th Grade
20 questions
Javascript

Quiz
•
11th Grade
20 questions
CS Python Fundamentals Unit 3 Review

Quiz
•
9th - 12th Grade
25 questions
Intro to CS Unit 3 Review

Quiz
•
9th - 12th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
26 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Quiz
•
9th - 12th Grade
20 questions
Edhesive - Intro to CS Unit 3

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade