
Python operators

Quiz
•
Computers
•
Professional Development
•
Hard
Aruna Rao
Used 16+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of print(2%6)
ValueError
0.33
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code
x = 100
y = 50
print(x and y)
True
100
False
50
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the expression print(-18 // 4)
-4
4
-5
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the following Python Expression
print(36 / 4)
9.0
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following assignment operator
y = 10
x = y += 2
print(x)
12
10
syntax error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(10 - 4 * 2)
2
12
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Python code
x = 10
y = 50
if (x ** 2 > 100 and y < 100):
print(x, y)
100 500
10 50
None
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
20 questions
SPARK FIDDLE

Quiz
•
Professional Development
20 questions
Basics of programming - Quiz - 01

Quiz
•
University - Professi...
20 questions
Quiz 4.1

Quiz
•
Professional Development
10 questions
Day 3

Quiz
•
Professional Development
10 questions
Python-Quiz-Basic-Datatypes

Quiz
•
12th Grade - Professi...
15 questions
Flutter Q_0

Quiz
•
Professional Development
10 questions
Abstract Class #1

Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade