Year 8 - Python List (Homework Quiz 1)

Year 8 - Python List (Homework Quiz 1)

8th Grade

10 Qs

quiz-placeholder

Similar activities

Internet Basics

Internet Basics

5th Grade - University

15 Qs

Ms Excel - Grade 8

Ms Excel - Grade 8

8th Grade

10 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Fun with Paint and Storage

Fun with Paint and Storage

1st Grade - University

10 Qs

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

ทบทวนความรู้เรื่องไมโครบิท

ทบทวนความรู้เรื่องไมโครบิท

8th Grade

10 Qs

Computer System

Computer System

8th - 9th Grade

10 Qs

Introduction of Arduino

Introduction of Arduino

6th - 8th Grade

12 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

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

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

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers