Python Dictionaries Reivew

Python Dictionaries Reivew

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

Unit 9

Unit 9

9th - 12th Grade

10 Qs

Python Lists and Dictionaries

Python Lists and Dictionaries

11th - 12th Grade

7 Qs

CS Python Fundamentals Test 12 PRACTICE

CS Python Fundamentals Test 12 PRACTICE

9th - 12th Grade

10 Qs

Project Stem Python

Project Stem Python

9th - 12th Grade

10 Qs

Revision Quiz  Game- 1

Revision Quiz Game- 1

12th Grade

10 Qs

Python Math

Python Math

1st - 12th Grade

10 Qs

Python Data Structures

Python Data Structures

8th - 12th Grade

10 Qs

MIL Review Challenge 2

MIL Review Challenge 2

12th Grade

10 Qs

Python Dictionaries Reivew

Python Dictionaries Reivew

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Cedra Wilson

Used 94+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following program stores the extra credit points for Mr. Villa’s students in extra_credit. Which line of code will print the name of the student who has the lowest point value?

extra_credit = {150:'Nathaniel', 50:'Sandie', 95:'Robert', 90:'Travis', 200:'LaKeisha'}

print(extra_credit(50))

print(extra_credit[95])

print(extra_credit[50])

print(extra_credit[Nathaniel])

print(extra_credit[Sandie])

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following program stores the extra credit points for Mr. Villa’s students in extra_credit. Which line of code will print the name of the student who has the highest point value?

extra_credit = {150:'Nathaniel', 50:'Sandie', 95:'Robert', 90:'Travis', 100:'LaKeisha'}

print(extra_credit(50))

print(extra_credit[150])

print(extra_credit[50])

print(extra_credit[Nathaniel])

print(extra_credit[Sandie])

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print onto the screen with the following program runs?

extra_credit = {'Sandie': 50, 'Travis': 90, 'LaKeisha': 150}

print(extra_credit['LaKeisha'])

LaKeisha

90

150

Travis

50

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print onto the screen with the following program runs?

extra_credit = {'Sandie': 50, 'Travis': 90, 'LaKeisha': 150}

print(extra_credit['Travis'])

LaKeisha

90

150

Travis

50

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following dictionary, which stores the names and ages of people:

my_dictionary = { "Bo": 32, "Fiona": 28, "Carlos": 45 }

Which line correctly prints Bo’s age?

print(my_dictionary[0])

print(my_dictionary[0][1])

print(my_dictionary["Bo"])

print(my_dictionary["Bo"][1])

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following dictionary, which stores the names and ages of people:

my_dictionary = { "Bo": 32, "Fiona": 28, "Carlos": 45 }

Which line correctly prints Fiona’s age?

print(my_dictionary[1])

print(my_dictionary[0][1])

print(my_dictionary["Bo"])

print(my_dictionary["Fiona"])