Quiz 2

Quiz 2

University

10 Qs

quiz-placeholder

Similar activities

Bài 25

Bài 25

10th Grade - University

15 Qs

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Quiz 4

Quiz 4

University

10 Qs

[Quiz] Python Function

[Quiz] Python Function

University

12 Qs

Bài 26

Bài 26

10th Grade - University

15 Qs

Увлекательный мир Python

Увлекательный мир Python

6th Grade - University

9 Qs

aula 3 - IC

aula 3 - IC

University

10 Qs

Quiz 3

Quiz 3

University

12 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Wai Li

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What is the result of this expression?

8//3

2.6
2
3
2.0

2.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which statement correctly assigns the value 10 to variable x?
10 -> x
x == 10
x := 10
x = 10

3.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What is the output of this code?

x = 3

y = 7

print(x > 2 and y < 10)

True
False
Error
None

4.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What will this expression return?

not (4 > 2)

True
False
4
2

5.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which of the following is NOT a comparison operator in Python?
>=
!=
+=
==

6.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What type of value does input() return by default?
Integer
Float
Boolean
String

7.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What does the following code do?

if True:

pass

else:

print("Wrong")

It prints "Wrong"
It causes an error
It does nothing
It prints "pass"

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?