Y9 List Introduction

Y9 List Introduction

9th Grade

18 Qs

quiz-placeholder

Similar activities

Python_Exam

Python_Exam

6th - 10th Grade

15 Qs

list 3

list 3

9th - 12th Grade

15 Qs

IF and Vlookup Function

IF and Vlookup Function

9th - 10th Grade

15 Qs

CodeHS 5.2

CodeHS 5.2

6th - 10th Grade

15 Qs

10.4 Python Lists

10.4 Python Lists

7th - 10th Grade

14 Qs

AQA GCSE Computer Science Paper 1

AQA GCSE Computer Science Paper 1

9th - 11th Grade

20 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

Y9 List Introduction

Y9 List Introduction

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Dave Gwilt

Used 16+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create an empty list called names

names = [ ]

names = { }

[ ] = names

names = "Empty"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Display 42 from the list nums = [21, 42, 84]

print(nums[1])

print(nums[2])

print(nums(1))

print(nums(2))

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Display 5 from the list odds = [ 1, 3, 5 ]. Do not put any spaces in your answer.

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Complete the line of code to create an empty list called hobbies:

hobbies =

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assign x to be the number of items in the list 'animals':

x = len(animals)

x = len[animals]

x = animals.count()

x = count(animals)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first item in a list?

0

1

It depends

-1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the last item in a list?

0

1

It depends

-1

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?