Python Arrays

Python Arrays

12th Grade

10 Qs

quiz-placeholder

Similar activities

Cars

Cars

7th - 12th Grade

10 Qs

Logo quiz (Easy)

Logo quiz (Easy)

KG - Professional Development

11 Qs

Cars

Cars

1st Grade - Professional Development

12 Qs

Marki aut

Marki aut

8th - 12th Grade

10 Qs

Balance of Trade and Balance of Payments

Balance of Trade and Balance of Payments

11th - 12th Grade

14 Qs

Autod

Autod

4th Grade - University

10 Qs

C@RS

C@RS

3rd Grade - Professional Development

10 Qs

Car Quiz

Car Quiz

9th - 12th Grade

7 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?