
ITC106 Quiz 7 - Lists and Tuples

Quiz
•
Computers
•
University
•
Hard

Sudath Heiyanthuduwage
Used 19+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are the data items in the list called?
data
elements
items
values
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which list will be referenced by the variable number after the execution of the following code?
number = range(0, 9, 2)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[1, 3, 5, 7, 9]
[2, 4, 6, 8]
[0, 2, 4, 6, 8]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would you use if an element is to be removed from a specific index?
del statement
remove method
index method
slice method
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the first negative index in a list?
0
-1
-0
Size of the string or list minus one
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What method can be used to place an item in the list at a specific index?
append
index
insert
Add
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the value of the variable list after the execution of the following code?
list = [1, 2]
list = list * 3
[1, 2] * 3
[3, 6]
[1, 2, 1, 2, 1, 2]
[[1, 2], [1, 2], [1, 2]]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the value of the variable list after the execution of the following code?
list = [1, 2, 3, 4]
list[3] = 10
[1, 2, 3, 10]
[1, 2, 10, 4]
[1, 10, 10, 10]
invalid code
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Quiz - 2.6

Quiz
•
University
8 questions
Unit-II-Python 2024 batch-list examples

Quiz
•
University
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
10 questions
BCSC0006 - Quiz 1 - Arrays

Quiz
•
University
15 questions
PyTron

Quiz
•
University
10 questions
CSE 6R Midterm Review

Quiz
•
University
11 questions
Array

Quiz
•
University
15 questions
Exploring Python Fundamentals

Quiz
•
12th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade