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...

    Content View

    Student View

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?