CS Python Fundamentals Test 12 PRACTICE

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Scott Chamberlain
Used 9+ times
FREE Resource
10 questions
Show all answers
1.
DRAG AND DROP QUESTION
1 min • 1 pt
Python Dictionaries store information using pairs of (a) and (b)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The dictionary dnry is initialized as follows:
dnry = {"L": 8, "W": 5, "H": 11}
Which statement would evaluate to 5?
dnry[1]
dnry["W"]
dnry["5"]
dnry[2]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For which Python data type does the order of the items matter?
dictionaries only
lists only
both dictionaries and lists
neither dictionaries nor lists
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dictionary dnry is defined as follows:
dnry = {"A": "x", "B": "y", "C": "z"}
Which Python statement will return True?
I. "y" in dnry
II. "C" in dnry
I only
II only
Both I and II
Neither I nor II
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is printed by the code shown here?
{'PG': 'Adams', 'SG': 'Berk', 'C': 'Dugan'}
{'PG': 'Adams', 'SG': 'Berk', 'C': 'Nelson'}
{'PG': 'Adams', 'SG': 'Berk', 'C': 'Dugan', 'SF': 'Harris', 'C': 'Nelson'}
{'PG': 'Adams', 'SG': 'Berk', 'C': 'Nelson', 'SF': 'Harris'}
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which statement(s) will set the value of the key "99" to "Judge" in the dictionary NYY if the key "99" is found, and add the key/value pair if the key "99" is not found?
I. NYY["99"] = "Judge"
II. NYY.update({"99": "Judge"})
III. NYY.setdefault("99", "Judge")
I only
II only
II and III only
I and II only
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the code shown here?
0
3
10
13
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
12cs cha9

Quiz
•
12th Grade
12 questions
Dictionary Class 11

Quiz
•
11th - 12th Grade
11 questions
Chapter Dictionaire

Quiz
•
9th Grade
14 questions
The Internet

Quiz
•
6th Grade - Professio...
10 questions
11/29: Dictionary Review

Quiz
•
12th Grade
7 questions
Dictionary Commands Quiz

Quiz
•
11th Grade
15 questions
Python Food Ordering Algorithm Quiz

Quiz
•
12th Grade
7 questions
Python Dictionary Quiz

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade