
UNIT2&3 PYTHON QUIZ

Quiz
•
Computers
•
KG - University
•
Hard
Humera I
Used 6+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
4 is 100 in binary and 11 is 1011. What is the output of the following bitwise operators?
a = 4
b = 11
print(a | b)
print(a >> 2)
15 1
14 1
13 1
15 0
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the expression print(-18 // 4)
-4
5
-5
4
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of print(2 * 3 ** 3 * 4)
512
216
864
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following assignment operator?
x=2
y = 10
x +=y+ 2
print(x)
12
13
14
15
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code
print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))
True True False True
False True False True
True True False True
False True True True
6.
MULTIPLE CHOICE QUESTION
45 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
None
10 50
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following addition (+) operator
a = [10, 20]
b = a
b += [30, 40]
print(a)
print(b)
[10, 20, 30, 40]
[10, 20, 30, 40]
[10, 20]
[10, 20, 30, 40]
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python WJEC KS4

Quiz
•
10th Grade
20 questions
Input, Output, Variables and Operators

Quiz
•
5th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
20 questions
Year 7 Lent

Quiz
•
7th Grade
20 questions
Getting Started in C Programming

Quiz
•
9th - 10th Grade
20 questions
Python :: String review

Quiz
•
University
20 questions
[Python For All] Quiz 2 - Rewind.py

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade