
Python Operators, Expressions and Errors Quiz
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Sandeep M
Used 4+ times
FREE Resource
Enhance your content in a minute
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following operators is used for exponentiation in Python?
^
**
*
%
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the result of the following expression? x = 10 y = 3 result = x // y
3.33
3
3.0
4
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the error in the following code: python print("Hello, world!)
SyntaxError
NameError
TypeError
IndexError
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the % operator do in Python?
Exponentiation
Modulo (remainder after division)
Floor division
Multiplication
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following expressions evaluates to a floating-point number?
10 / 2
5 * 2
3 // 2
2 ** 3
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the error in the following code: num1 = 5 num2 = "2" result = num1 + num2
TypeError: unsupported operand type(s)
SyntaxError: invalid syntax
NameError: undefined variable
ValueError: invalid literal for int() with base 10
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of the expression 7 // 2 in Python?
3.5
3
3.0
4
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
16 questions
OCR Sys Arch J277
Quiz
•
10th - 12th Grade
14 questions
ITGS - IT Systems (Hardware)
Quiz
•
10th - 12th Grade
15 questions
Internet Basics
Quiz
•
5th Grade - University
14 questions
4th quarter 2nd summative
Quiz
•
10th Grade
17 questions
Security and Ethics
Quiz
•
9th - 12th Grade
21 questions
Computer System
Quiz
•
9th - 11th Grade
20 questions
Design your website
Quiz
•
7th - 12th Grade
20 questions
Artificial Intelligence and SketchUp
Quiz
•
8th - 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
