Search Header Logo

Multi-Dimensional Data Structures

Authored by Christian Farley

Computers

6th - 12th Grade

Used 9+ times

Multi-Dimensional Data Structures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would this out put? print(users[3][0])

error

james

brown

16

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would this out put? print(users[1][1])

ben

james

smith

78

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#How to print "Apple"


myDict = {"A": "Apple", "B": "Banana", "C":"Carrot"}

print(myDict["A"])

print(myDict[0])

print(myDict{0})

print(myDict{"A"})

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#How to add "D": "Doughnut"

myDict = {"A": "Apple", "B": "Banana", "C":"Carrot"}

myDict["D"] = "Doughnut"

myDict[3] = "Doughnut"

myDict["D": "Doughnut"]

add myDict[3] "Doughnut"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

#What will be the output?

Error

{"abc":5}

abc

e

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Items are accessed by their position in a dictionary

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The location of an item in an array is called

position
index
value

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?