
python dictionary and set
Authored by Assistant Chennai
Professional Development
Professional Development
Used 166+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The code snippet above outputs
error
None
NaN
-1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The code above prints
Math
Physics
Chemistry
English
4
3.8
3.6
3.7
None
None
None
None
NaN
NaN
NaN
NaN
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the program above
e
y
t
g
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the code above is
[101, 102, 103, 104]
[3.6, 3.7, 3.8, 4]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code above
[3.6, 3.7, 3.8, 4]
[101, 102, 103, 104]
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following code deletes the key 103 and its value
del grades[103]
grades.pop(103)
del grades["103"]
grades.pop("103")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Square brackets in an assignment statement will create which type of data structure?
( s=[] )
List
Queue
Dictionary
Set
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?