Python Arrays

Python Arrays

12th Grade

10 Qs

quiz-placeholder

Similar activities

Co to za samochód???

Co to za samochód???

KG - Professional Development

10 Qs

name that car

name that car

KG - University

15 Qs

guess the car

guess the car

KG - 12th Grade

15 Qs

car names

car names

12th Grade

12 Qs

Samochody

Samochody

12th Grade

13 Qs

Części samochodów

Części samochodów

1st - 12th Grade

9 Qs

trucks and dump trucks

trucks and dump trucks

KG - Professional Development

10 Qs

Name that car!

Name that car!

4th - 12th Grade

12 Qs

Python Arrays

Python Arrays

Assessment

Quiz

Other

12th Grade

Hard

Created by

Amy Austin

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does Python use instead of built-in support for Arrays?

Tuples

Dictionaries

Lists

Sets

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an element at the end of a list?

add()

insert()

append()

push()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you remove the first occurrence of a value in a list?

discard()

delete()

pop()

remove()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns the number of elements with the specified value in a list?

size()

length()

count()

index()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you reverse the order of a list?

sort(reverse=True)

backwards()

flip()

reverse()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create an array containing car names?

cars = 'Ford', 'Volvo', 'BMW'

cars = {'Ford', 'Volvo', 'BMW'}

cars = ['Ford', 'Volvo', 'BMW']

cars = ('Ford', 'Volvo', 'BMW')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to return the length of an array in Python?

length()

count()

len()

sizeof()

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?