Year 8 - Python List (Homework Quiz 1)

Year 8 - Python List (Homework Quiz 1)

8th Grade

10 Qs

quiz-placeholder

Similar activities

9.3 L3 Python Lists

9.3 L3 Python Lists

7th - 10th Grade

10 Qs

Python List Practice

Python List Practice

8th - 9th Grade

10 Qs

List and Method in Python

List and Method in Python

8th - 9th Grade

10 Qs

Data Structures

Data Structures

8th Grade

9 Qs

نادي البرمجة ضواحي القدس م4

نادي البرمجة ضواحي القدس م4

5th - 11th Grade

13 Qs

IT105 Review - Lists

IT105 Review - Lists

4th Grade - University

15 Qs

python lists

python lists

8th Grade

10 Qs

Python lists

Python lists

7th - 8th Grade

10 Qs

Year 8 - Python List (Homework Quiz 1)

Year 8 - Python List (Homework Quiz 1)

Assessment

Quiz

Computers

8th Grade

Easy

Created by

Tiew Ling

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The list needs one more name added to the end - "Felipe". Which piece of code below would do this?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList.append(Felipe)

append(nameList,"Felipe")

nameList.append["Felipe",7]

nameList.append("Felipe")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

#What is the output?

a,b,c,d

a,b,c

a,b,d

d,a,b

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lists are used to store single item in a single variable.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lists are created using square brackets:

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index number for 'Spain'?

['England','Brazil','Spain','France']

0

1

2

3

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?