Day 3-4 Review

Day 3-4 Review

University

10 Qs

quiz-placeholder

Similar activities

Task 05

Task 05

University

10 Qs

Python Quiz-9

Python Quiz-9

University

10 Qs

Code Chef Python

Code Chef Python

University

15 Qs

Variable Scope in Python

Variable Scope in Python

1st Grade - Professional Development

15 Qs

Functions and Modules

Functions and Modules

University

10 Qs

PythonTest

PythonTest

6th Grade - Professional Development

11 Qs

PYTHON QUIZ3

PYTHON QUIZ3

University - Professional Development

10 Qs

H -Subprograms

H -Subprograms

12th Grade - University

12 Qs

Day 3-4 Review

Day 3-4 Review

Assessment

Quiz

Computers

University

Hard

Created by

Black Pearl

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a=3
b=10
print(a==b)

13

ab

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is 2 << 2?
(Hint: Binary of 2 is 0010)

2

8

4

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the output:
cars = ["Audi", "Honda", "Toyota", "Porsche"]
print("Honda" in cars)

True

Honda

Error

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 5

How do you check if x is greater than 7??

if x < 7

if x >= 7

if x == 7

if x > 7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the Output:
list1 = [1, 3, 4, 4, 6]
list2=[1, 3, 4, 4, 6]
list3 = list1
print(list1 is list2)

print(list1 is list3)

True
False

False
True

True
True

False
False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

while True:

print("true")

How many times will this loop will run?

100

1

Infinity

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(0, 5):

print(i)

what's the value of "i" in the first iteration?

0

3

5

1

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?