
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
SST Yr8 - NCCE - Algorithmic Thinking

Quiz
•
9th Grade
20 questions
Week 8

Quiz
•
12th Grade
22 questions
c++

Quiz
•
University
21 questions
Unit 09 - QBASIC

Quiz
•
6th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
20 questions
Program Development - Python: Output

Quiz
•
9th - 10th Grade
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
20 questions
BASIC STATMENT AND BUILT-IN FUNCTION

Quiz
•
8th Grade
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
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th Grade
10 questions
Keyboard Typing

Quiz
•
4th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade