Python Programming - Unit I Quiz

Python Programming - Unit I Quiz

25 Qs

quiz-placeholder

Similar activities

QUIZ ESB CORE - R3

QUIZ ESB CORE - R3

Professional Development

20 Qs

Module 4 Science Test Review

Module 4 Science Test Review

3rd Grade

20 Qs

Shipwreck at the Bottom of the World_ (1).pdf

Shipwreck at the Bottom of the World_ (1).pdf

KG - University

20 Qs

6th Grade Chapter 8&9 Test

6th Grade Chapter 8&9 Test

KG - University

20 Qs

Immigration Quiz

Immigration Quiz

8th Grade

20 Qs

Further Python

Further Python

KG - University

20 Qs

Tech Ed Assessment 3.0/4.0

Tech Ed Assessment 3.0/4.0

1st - 5th Grade

20 Qs

10 - Computação com Cloud Functions

10 - Computação com Cloud Functions

KG - University

20 Qs

Python Programming - Unit I Quiz

Python Programming - Unit I Quiz

Assessment

Quiz

others

Medium

Created by

Sakthi Kumaresh

Used 2+ 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?