iGET

Python Programming - MCQ Practice Questions

Core Python MCQs — syntax, data types, OOP, libraries for placements & IT exams.

188 questions | 100% Free

Q.21Hard

What will be the output?
my_list = [1, 2, 3]
my_list_copy = my_list
my_list[0] = 99
print(my_list_copy[0])

Q.22Hard

What is the correct way to create a true copy of a list?

Q.23Hard

What will be the output?
my_list = [1, 2, 3, 4, 5]
print(my_list[-2])

Q.24Hard

What will be the result of executing this code?
my_list = [1, 2, 3]
my_list.insert(1, 99)
print(my_list)

Q.25Hard

What will be printed?
my_list = [1, 2, 3, 4, 5]
print(my_list[::-1])