
Post Test Quiz PPL 01-13102023
Quiz
•
Computers
•
University
•
Hard
Muhammad Koprawi
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Which of the following is not a valid way to define this dictionary in Python:
d = dict([
('foo', 100),
('bar', 200),
('baz', 300)
])
d = {}
d['foo'] = 100
d['bar'] = 200
d['baz'] = 300
d = dict(foo=100, bar=200, baz=300)
d = {'foo': 100, 'bar': 200, 'baz': 300}
d = { ('foo', 100), ('bar', 200), ('baz', 300) }
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
You have the following dictionary definition:
d = {'foo': 100, 'bar': 200, 'baz': 300}
What method call will delete the entry whose value is 200?
delete d('bar')
d.pop("bar")
d.remove("bar")
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What would be the output of the following code snippet?
a_dict = {'color': 'blue', 'fruit': 'apple', 'pet': 'dog'}
for key in a_dict:
print(key)
'blue'
'apple'
'dog'
color
fruit
pet
blue
apple
dog
'color'
'fruit'
'pet'
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Consider the following statement:
If you just need to work with the keys of a dictionary, then you can use .keys(), which is a method that returns a new view object containing the dictionary’s keys.
Is this statement True or False?
False
True
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What is the output of the program above
e
y
t
g
6.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
The output of the code above is
[101, 102, 103, 104]
[3.6, 3.7, 3.8, 4]
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What is the output of the code above
[3.6, 3.7, 3.8, 4]
[101, 102, 103, 104]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
VG the M
Quiz
•
7th Grade - Professio...
18 questions
Réalité virtuelle et augmentée
Quiz
•
University
16 questions
FCT10010-S Week 1 Recap
Quiz
•
University
20 questions
[Python For All] Quiz 2 - Rewind.py
Quiz
•
University
17 questions
Administrasi Sistem Jaringan
Quiz
•
University
15 questions
Ôn tập phần mềm soạn thảo văn bản Word
Quiz
•
3rd Grade - University
15 questions
ASSESMENT Keruangan serta Konektivitas Antarruang dan Waktu
Quiz
•
University
15 questions
Data Mining
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University