
Intro to Programming Chapter 7 Python

Quiz
•
Computers
•
University
•
Easy
Lolu Oyebola
Used 1+ times
FREE Resource
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the data items in the list called?
data
elements
items
values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which list will be referenced by the variable number after the execution of the following code?
number = range(0, 9, 2)
a. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
b. [1, 3, 5, 7, 9]
c. [2, 4, 6, 8]
d. [0, 2, 4, 6, 8]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would you use if an element is to be removed from a specific index?
a. del statement
b. remove method
c. index method
d. slice method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first negative index in a list?
a. 0
b. -1
c. -0
d. Size of the string or list minus one
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method can be used to place an item in the list at a specific index?
a. append
b. index
c. insert
d. Add
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the value of the variable list after the execution of the following code?
list = [1, 2]
list = list * 3
a. [1, 2] * 3
b. [3, 6]
c. [1, 2, 1, 2, 1, 2]
d. [[1, 2], [1, 2], [1, 2]]
7.
MULTIPLE CHOICE QUESTION
30 sec • 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
a. [1, 2, 3, 10]
b. [1, 2, 10, 4]
c. [1, 10, 10, 10]
d. Invalid code
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Programming Q3 Review - Data Structures

Quiz
•
9th Grade - University
24 questions
Логикалык операторлор жана структуралар

Quiz
•
6th Grade - University
25 questions
Round 2

Quiz
•
University
30 questions
lvl. 1 Chapter 2 Relational Model (QB)

Quiz
•
University
30 questions
Python Quiz-2

Quiz
•
University
25 questions
AITECH_1

Quiz
•
University
23 questions
Search_N_Sort

Quiz
•
University
25 questions
untitled

Quiz
•
8th 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