Python Programming - Unit I Quiz

Python Programming - Unit I Quiz

25 Qs

quiz-placeholder

Similar activities

Unit 7 Reading Assessment

Unit 7 Reading Assessment

3rd Grade - University

26 Qs

11_2 情報セキュリティ管理

11_2 情報セキュリティ管理

KG - University

27 Qs

Saber vs. Conocer

Saber vs. Conocer

KG - University

20 Qs

4.8 Virginia's Natural Resources SOL Review

4.8 Virginia's Natural Resources SOL Review

5th Grade

20 Qs

PAT (PJOK VIII AB)

PAT (PJOK VIII AB)

KG - University

22 Qs

Tomás Carlos Heras García_Curso

Tomás Carlos Heras García_Curso

KG

23 Qs

24-25.SocialStudies.USHistory1.Benchmark3

24-25.SocialStudies.USHistory1.Benchmark3

6th - 8th Grade

25 Qs

PERR MP03 UF2 Cosmètics color

PERR MP03 UF2 Cosmètics color

KG - University

25 Qs

Python Programming - Unit I Quiz

Python Programming - Unit I Quiz

Assessment

Quiz

others

Practice Problem

Medium

Created by

Sakthi Kumaresh

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comments in Python can be written using //.

True
False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to count the number of times a value appears in a tuple?

a) count()
b) index()
c) sum()
d) len()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code return? t = (1, 2, 3) t[0] = 10

a) (10, 2, 3)
b) (1, 2, 3)
c) Error
d) None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an empty tuple?

a) ()
b) []
c) {}
d) None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can convert a list to a tuple using the function _______().

tuple
list
set
Dictionary

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? a = {1, 2, 3} b = {3, 4, 5} print(a & b)

a) {1, 2}
b) {3}
c) {1, 2, 3, 4, 5}
d) {}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? a = {1, 2, 3, 4} b = {3, 4, 5, 6} print(a - b)

a) {3, 4}
b) {1, 2}
c) {5, 6}
d) {1, 2, 5, 6}

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?