Python Programming - Unit I Quiz

Python Programming - Unit I Quiz

25 Qs

quiz-placeholder

Similar activities

Teks deskripsi

Teks deskripsi

7th Grade

20 Qs

Metric & Graphing Quiz

Metric & Graphing Quiz

9th - 12th Grade

21 Qs

Temperamento e Cabalo idóneo de marcha

Temperamento e Cabalo idóneo de marcha

Professional Development

20 Qs

Film Terminology Check 1

Film Terminology Check 1

KG - University

20 Qs

Görög est '23 Szilágyi

Görög est '23 Szilágyi

11th Grade

20 Qs

Counterfeit Money Assessment:

Counterfeit Money Assessment:

9th - 12th Grade

20 Qs

REPASO CONTROL T.1 LOS NÚMEROS

REPASO CONTROL T.1 LOS NÚMEROS

KG - University

21 Qs

FIRST QUIZ

FIRST QUIZ

7th Grade

21 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?