Semester Final 2025

Semester Final 2025

10th Grade

40 Qs

quiz-placeholder

Similar activities

Tin 11- Giữa kỳ 1

Tin 11- Giữa kỳ 1

11th Grade

40 Qs

Python Lists and dictionaries revision

Python Lists and dictionaries revision

11th Grade

40 Qs

TUPLES IN PYTHON VAISHALI LAMBA

TUPLES IN PYTHON VAISHALI LAMBA

11th - 12th Grade

43 Qs

python set 3

python set 3

9th - 12th Grade

41 Qs

Class XI Revision I

Class XI Revision I

11th - 12th Grade

43 Qs

Programming Loops, Data Structures, etc..

Programming Loops, Data Structures, etc..

9th - 12th Grade

35 Qs

Multidimensional list and tuples 2025

Multidimensional list and tuples 2025

9th - 12th Grade

44 Qs

Python Quiz

Python Quiz

University

40 Qs

Semester Final 2025

Semester Final 2025

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Ashutosh Kumar

Used 4+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? python mylist = [1, 2, 3] print(mylist[1])

1

2

3

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an item at the end of a list?

insert()

add()

append()

extend()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does mylist[-1] return?

First item

Last item

Second item

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes all items from a list?

clear()

delete()

remove()

pop()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: python x = [2, 4, 6] x.append([8, 10]) print(x)

[2, 4, 6, 8, 10]

[2, 4, 6, [8, 10]]

[2, 4, 6, 8]

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between a list and a tuple?

Tuples are faster

Tuples are immutable

Lists are immutable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a tuple with one element?

(4)

[4]

(4,)

tuple(4)

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?