
MODULE 3_Python
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Sumathi K
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to add a new key-value pair to a Python dictionary?
add()
insert()
append()
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet?
[‘a’, ‘b’, ‘c’]
(‘a’, ‘b’, ‘c’)
dict_keys([‘a’, ‘b’, ‘c’])
{‘a’, ‘b’, ‘c’}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet?
(‘a’, 1), (‘b’, 2), (‘c’, 3)]
((‘a’, 1), (‘b’, 2), (‘c’, 3))
dict_items([(‘a’, 1), (‘b’, 2), (‘c’, 3)])
{(‘a’, 1), (‘b’, 2), (‘c’, 3)}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to add an element to the end of a list in Python?
append()
add()
insert()
extend()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Python code snippet?
[3, 4]
2, 3, 4]
[1, 2, 3]
[4, 5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python code snippet do?
Prints “Hello, World!” in lowercase
Converts “Hello, World!” to uppercase and prints it
”
Reverses the string “Hello, World!”
Removes all whitespace characters from the string “Hello, World!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the isupper() method return if all characters in a string are uppercase?
True
False
1
Error
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
Already have an account?
Similar Resources on Wayground
11 questions
ChatGPT Quiz
Quiz
•
Professional Development
10 questions
Roblox
Quiz
•
Professional Development
15 questions
Telco Practice Test 1
Quiz
•
Professional Development
15 questions
Technical Training
Quiz
•
Professional Development
16 questions
Cyber Resilience Training
Quiz
•
Professional Development
12 questions
DECI - Week 9 - round
Quiz
•
Professional Development
11 questions
Typing words on keyboard (colours)
Quiz
•
KG - Professional Dev...
12 questions
Deci- Session 1- Time Machine
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
