Computer Science LISTS

Computer Science LISTS

12th Grade

18 Qs

quiz-placeholder

Similar activities

Grade 7 Python Programming Quiz

Grade 7 Python Programming Quiz

7th Grade - University

20 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python while loops

Python while loops

12th Grade

20 Qs

String Manipulation (Python)

String Manipulation (Python)

9th - 12th Grade

17 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

python intro

python intro

4th - 12th Grade

17 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Python 2

Python 2

9th - 12th Grade

20 Qs

Computer Science LISTS

Computer Science LISTS

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Steve Rich

Used 56+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Correct code to define a list in Python?

scores = [15, 29, 4, 50]

scores = {15, 29, 4, 50}

Int[] scores = {15, 29, 4, 50};

scores = (15, 29, 4, 50)

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Choose all the ways in which a Python list is different from an array ...

Arrays have fixed length: Lists have dynamic length

Arrays only contain one data type; Lists can contain many data types

Arrays are indexed from 1; Lists are indexed from 0

Arrays can not be empty; Lists can be empty

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Output is ...?

mango

pear

kiwi

['apple','banana','pear']

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Choose three valid methods that may be applied to lists in Python ...

list.append(x)

list.count(x)

list.sort()

list.format()

list.isNumeric()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

colours = ['red', 'blue', 'yellow', 'green', 'purple']


Which instruction illustrates mutability?

colours[2] = 'pink'

colours.append('pink')

colours.insert(2, 'pink')

colours.remove('pink')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Output is ... ?

Index out of range

29

34

89

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Correct code to access the second 'Terry' in this list ... ?

montyPython[5]

montyPython[6]

montyPython[-1]

montyPython[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?