
Python Selection and Operators Quiz
Authored by Wayne Vaughan
Computers
7th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for equality comparison in Python?
=
==
!=
>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for an if statement in Python?
if condition then:
if condition;
if condition:
if (condition):
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does int(input("enter mark")) do in Python?
It prints 'enter mark' and reads a string.
It reads an integer directly from the user.
It assigns the string 'enter mark' to a variable.
It checks if the input is an integer.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly represents 'not equal to' in Python?
<>
!=
NOT
=/=
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is indentation important in Python?
It makes the code look nice.
It is used to define blocks of code.
It speeds up program execution.
It is ignored by the Python interpreter.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What error is present in if response = "bleep" :?
Missing parentheses around the condition.
Incorrect comparison operator.
Missing colon at the end.
Incorrect string literal.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what does elif stand for?
Else If
End If
Else Follow
Execute If
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
20 questions
Responsible Use of Digital Resources
Quiz
•
7th - 8th Grade
16 questions
Hour_of_Code
Quiz
•
5th - 12th Grade
17 questions
Networks Lesson 2 - Recap and Review
Quiz
•
6th - 8th Grade
18 questions
Publisher Basics
Quiz
•
7th - 10th Grade
25 questions
CPA Inkscape Quiz 01
Quiz
•
7th - 12th Grade
15 questions
Review Quiz Computer 7 HTML
Quiz
•
7th Grade
20 questions
икт 21-40
Quiz
•
1st Grade - University
16 questions
Tips for Searching the Internet
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade