CPModule 3 Making Decisions
Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Marcia Bernas
Used 15+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
21 questions
حاسب 1 نظري
Quiz
•
10th Grade
20 questions
Latihan Jaringan Dasar PSAS
Quiz
•
10th Grade
20 questions
CSS Box Model
Quiz
•
10th Grade
20 questions
Computación 1ro y 2do básico
Quiz
•
1st Grade - University
20 questions
Latihan soal flash
Quiz
•
11th Grade
20 questions
EVALUACION 1P GRADO DECIMO 2024
Quiz
•
10th Grade
20 questions
TIN 12_BÀI 11
Quiz
•
12th Grade
20 questions
การเขียนโปรแกรม
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
