Python Arrays

Python Arrays

12th Grade

10 Qs

quiz-placeholder

Similar activities

Cars 2.0

Cars 2.0

1st Grade - Professional Development

10 Qs

Rozpoznaj modele samochodów

Rozpoznaj modele samochodów

1st - 12th Grade

15 Qs

Car Logo's

Car Logo's

1st - 12th Grade

14 Qs

Cars

Cars

1st Grade - Professional Development

12 Qs

CARS

CARS

3rd Grade - University

15 Qs

Marki aut

Marki aut

8th - 12th Grade

10 Qs

Samochody

Samochody

12th Grade

13 Qs

Autod

Autod

4th Grade - University

10 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?