
CS Python Fundamentals Quiz 3 Practice
Authored by Scott Chamberlain
Computers
9th - 12th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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:
Not equal to
>=
Greater or equal to
%
Remainder without quotient
!=
Quotient without remainder
==
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
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
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
11 questions
Chapter 6 Part 2 - 4
Quiz
•
11th - 12th Grade
10 questions
Interactive Media
Quiz
•
10th - 11th Grade
12 questions
STRUKTUR KAWALAN ULANGAN
Quiz
•
1st - 12th Grade
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade