
python

Quiz
•
Other
•
University
•
Hard
G.SWAMINATHAN PLT
Used 4+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands will create a list?
list1 = list()
list1 = []
list1 = list([1, 2, 3])
all of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when we execute list(“hello”)?
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘hello’]
[‘llo’]
[‘olleh’]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
5
4
None
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2445,133,12454,123], what is max(list1)?
2445
133
12454
123
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
list1 = [1, 2, 3]
list2 = list1
list2.append(4)
print(list1)
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 3, 4, 4]
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given list1 = [10, 20, 30, 40, 50], what is list1[-2]?
30
40
50
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code snippet?
list1 = [1, 2, 3]
list2 = list1
list2[0] = 100
print(list1)
[1, 2, 3]
[100, 2, 3]
[1, 2, 3, 100]
Error
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
CC103 - Final Exam

Quiz
•
University
27 questions
JavaScript Quiz

Quiz
•
University
19 questions
Gerbang Logika

Quiz
•
10th Grade - University
20 questions
PENGAJIAN AM SEM 2-( BAHAGIAN B )

Quiz
•
University
20 questions
Рецепт жазу ережелері. Медициналық калькуляция негіздері

Quiz
•
University
20 questions
NETWORK FUNDAMENTAL

Quiz
•
University
20 questions
Day 4

Quiz
•
University
20 questions
Quiz 3

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University