CS Python Fundamentals Quiz 3 Practice
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Scott Chamberlain
Used 7+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 2 pts
What is an if statement specifically designed to do? Select ALL that apply.
Accept user input
Initialize a variable
Make a selection among choices
Evaluate true/false conditions
Repeat sections of code
2.
MATCH QUESTION
1 min • 5 pts
Match the following:
Remainder without quotient
//
Quotient without remainder
>=
Equal to
==
Not equal to
%
Greater or equal to
!=
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which line of code tests to see if x1 and x2 are not equal?
if (x1 == x2):
if (x1 <> x2):
if (x1 =! x2):
if (x1 != x2):
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is printed by this code?
1
2
3
nothing
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which condition performs a test to see whether an integer value is negative and odd?
if (x > 0 and x // 2 == 1):
if (x < 0 and x % 2 == 1):
if (x != 0 and x % 2 == 0):
if (x <> 0 and x / 2 == 0):
6.
MULTIPLE SELECT QUESTION
1 min • 3 pts
The variable food is a string. The code should be checking to see if the food equals pizza. Select ALL of the corrections needed to the following line of code:
if food = pizza
Change if to IF
Change = to !=
Change = to ==
Add : to the end of the line
Add "" around pizza
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How does the and relational operator work?
If any part of the statement is true, the entire statement is true
If any part of the statement is true, the entire statement is false
If any part of the statement is false, the entire statement is true
If any part of the statement is false, the entire statement is false
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
10 questions
BTEC modern technologies
Quiz
•
11th Grade
10 questions
C# Database
Quiz
•
10th Grade
10 questions
A Level - Data Structures 1
Quiz
•
11th Grade
15 questions
Aplikasi Perkantoran
Quiz
•
10th Grade
10 questions
IGCSE Comp Sci - Security revision
Quiz
•
9th - 11th Grade
10 questions
Arithmetic Operators in C
Quiz
•
12th Grade
10 questions
LIST - 1 - PYTHON 11
Quiz
•
11th Grade
10 questions
Penggabungan Gambar dan Teks Berbasis Bitmap
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
