
Python Operators, Expressions and Errors Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Sandeep M
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python list, if

Quiz
•
6th - 12th Grade
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
20 questions
Module 04 - If Statements

Quiz
•
10th Grade
12 questions
Python Basic

Quiz
•
10th Grade
16 questions
Test - Python básico II

Quiz
•
9th - 12th Grade
14 questions
Understanding Python Basics

Quiz
•
8th Grade - University
20 questions
Ch.8 - Introducing Python

Quiz
•
6th Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade