Search Header Logo

Python Array- quiz

Authored by Mariam Barbary

Computers

11th Grade

Used 1+ times

Python Array- quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is an array that is used to store data values in key:value pairs.

List

Tuple

Set

Dictionary

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is an array which is ordered and unchangeable & allows duplicate members.

Tuple

List

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of brackets we use to create a list

[ ]

{ }

( )

all are correct

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of brackets we use to create a Tuple

[ ]

{ }

( )

all are correct

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of brackets we use to create a Dictionary

[ ]

{ }

( )

all are correct

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

thisdict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}

What is the correct code to Change the "year" to 2018:

thisdict["year"] = 2018


change(thisdict('year'),2018)

thisdict.append(2018)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which method is used to remove an element from a list by its index.

remove()

pop()

del

clear()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?