
Chapter 9 - Chapter 10 Revision Question Python

Quiz
•
Information Technology (IT)
•
University
•
Easy

Chong May
Used 44+ times
FREE Resource
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a list in Python?
list = (1, 2, 3)
list = {1, 2, 3}
list = [1, 2, 3]
list = <1, 2, 3>
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the index of the first element in a list?
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What does len([1, 2, 3, 4]) return?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an item at the end of a list?
add()
insert()
append()
extend()
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of this code?
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of list(range(1, 5))?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does my_list[-1] return?
First item
Last item
Middle item
Error
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Câu hỏi về lập trình và tự động hóa

Quiz
•
University
50 questions
Kuis Pemrograman Python

Quiz
•
University
40 questions
Quiztronic

Quiz
•
University
43 questions
35-77

Quiz
•
University
40 questions
Infinity Code Nexus

Quiz
•
University
43 questions
Python Programming Quiz

Quiz
•
University
50 questions
ITCC104: Long Quiz 1

Quiz
•
University
40 questions
Python Programming Quiz

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade