Complete the code to add "Python" to the list. my_list = ["C", "Java"] my_list.__________("Python") print(my_list)
2R C-Skill Lab Test Autumn 2024-25

Quiz
•
Other
•
University
•
Hard

Shrijeet Pagrut
Used 2+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
append
insert
add
extend
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Complete the code to print the second item in the list. my_list = [10, 20, 30, 40] print(_________)
my_list[0]
my_list[1]
my_list[2]
my_list[-1]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Complete the code to create a dictionary with the key "name" and the value "John". my_dict = {"name": ________}
name
"name"
"John"
John
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Complete the code to access the substring "Python" from the string. my_string = "Learn Python Programming" print(_________)
my_string[6:12]
my_string[:6]
my_string[12:]
my_string[6:18]
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Complete the code to find the length of the tuple. my_tuple = (1, 2, 3, 4) print(_________)
len(my_tuple)
count(my_tuple)
length(my_tuple)
size(my_tuple)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Complete the code to convert the given kilometers into meters. km = 5 meters = km _________
* 1000
+ 1000
/ 1000
- 1000
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Complete the code to create an empty set in Python. my_set = ________
set
set()
{}
None
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Introduction to Python Programming Quiz 9E

Quiz
•
10th Grade - University
10 questions
UNIT1_PYTHON

Quiz
•
University
10 questions
CODE BREAKER

Quiz
•
University
15 questions
Technoquiz..3

Quiz
•
University
12 questions
Intro to Python Programming Quiz 9C

Quiz
•
10th Grade - University
15 questions
PYTHON DATA STRUCTURES

Quiz
•
University
15 questions
Python Data Structures Quiz

Quiz
•
University
14 questions
Intro to Python Programming Quiz 9B

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade