
Python Dictionaries Reivew
Authored by Cedra Wilson
Computers
9th - 12th Grade
Used 94+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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"])
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
10 questions
ôn tập học kỳ 1-lớp 5
Quiz
•
2nd Grade - University
10 questions
analisis data dan visualisasi data
Quiz
•
10th Grade
10 questions
Kuiz Senang
Quiz
•
7th - 9th Grade
10 questions
Computer Education Grade 3 Volume 4 Quiz
Quiz
•
3rd Grade - University
8 questions
Digital Presentation (session 10 - 12)
Quiz
•
9th Grade
10 questions
Latihan ICT Part 2
Quiz
•
10th Grade
11 questions
X-11
Quiz
•
11th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade