Which of the following is the correct way to initialize a list in Python?

Python Quiz

Quiz
•
Information Technology (IT)
•
University
•
Medium
Raymond Radebe
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list = [1, 2, 3]
list = (1, 2, 3)
list = {1, 2, 3}
list = 1, 2, 3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code:
print(type(3/2))?
<class 'int'>
<class 'float'>
<class 'str'>
<class 'complex'>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
func
function
define
def
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an item to a list in Python?
add()
insert()
append()
push()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(2 ** 3)?
6
8
9
12
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions converts an object to a string in Python?
str()
int()
chr()
repr()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(4 // 2)?
2.0
2
4.0
4
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
15 questions
Python Basics Quiz

Quiz
•
University
15 questions
Selection Programming_If condition

Quiz
•
8th Grade - University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
13 questions
Python Programming Quiz

Quiz
•
University
15 questions
แข่งขันcodingม.ต้น

Quiz
•
12th Grade - University
10 questions
Refresh Python

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade