Lists

Lists

University

10 Qs

quiz-placeholder

Similar activities

Introduction to Big Data Analytics

Introduction to Big Data Analytics

University

8 Qs

หน่วยที่2การสร้างมูลค่าเพิ่มให้ผลิตภัณฑ์หรือบริการ

หน่วยที่2การสร้างมูลค่าเพิ่มให้ผลิตภัณฑ์หรือบริการ

11th Grade - University

15 Qs

Python Quiz 1.4

Python Quiz 1.4

University

12 Qs

Tes Awal Modul 5 CC

Tes Awal Modul 5 CC

University

10 Qs

BB

BB

University

10 Qs

MPB Week 5

MPB Week 5

University

10 Qs

Lists

Lists

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Warren Toomey

Used 28+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A list is

a single variable and its value
an ordered list of values with one name
a list of values, each with a different variable name
an unordered set of values

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The lowest value in a list

is at index position 0
is at index position 1
is at index position "zero"
is at index position "one"

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

To access the second value in the fred[ ] list, you would use

fred[1]
fred[2]
fred(2)
fred:2

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

To get the number of values in the fred[ ] list, use

len(fred)
length(fred)
fred[length]
fred_length

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

To create an empty list:

MyList = [ ]
Mylist = [ empty ]
new(myList)
MyList= 0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MyList[4] = "Fred"

only if position 4 already has a value
is always possible
only if position 4 already holds a String
is impossible

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add a value to a list, do

MyList,append(5)
MyList.grow(5)
MyList = MyList + 5
MyList[ end ] = 5

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?