Intro to Programming Chapter 7 Python

Intro to Programming Chapter 7 Python

University

27 Qs

quiz-placeholder

Similar activities

List - 3

List - 3

1st Grade - University

29 Qs

Python Programming Basics 1

Python Programming Basics 1

University

25 Qs

Python Skill Lab MCQ

Python Skill Lab MCQ

University

25 Qs

python_quiz

python_quiz

University

25 Qs

221 quiz03

221 quiz03

University

23 Qs

Python Lists

Python Lists

8th Grade - University

31 Qs

PROG3 - Chapter 4

PROG3 - Chapter 4

University

22 Qs

15 Days of Code

15 Days of Code

11th Grade - University

22 Qs

Intro to Programming Chapter 7 Python

Intro to Programming Chapter 7 Python

Assessment

Quiz

Computers

University

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?