Python Programming - Unit I Quiz

Python Programming - Unit I Quiz

25 Qs

quiz-placeholder

Similar activities

Light Task Cards

Light Task Cards

5th Grade

21 Qs

10 - Computação com Cloud Functions

10 - Computação com Cloud Functions

KG - University

20 Qs

Evaluasi Kegiatan Belajar 3 (Percabangan pada Python)

Evaluasi Kegiatan Belajar 3 (Percabangan pada Python)

KG - University

22 Qs

Python Nivel1

Python Nivel1

KG - University

20 Qs

Further Python

Further Python

KG - University

20 Qs

QUIZ 1

QUIZ 1

University

20 Qs

PAT AL-QURAN HADIST KELAS V

PAT AL-QURAN HADIST KELAS V

KG - University

20 Qs

Python Programming - Unit I Quiz

Python Programming - Unit I Quiz

Assessment

Quiz

others

Medium

Created by

Sakthi Kumaresh

Used 3+ times

FREE Resource

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}

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?