
MODULE 3_Python

Quiz
•
Computers
•
Professional Development
•
Hard
Sumathi K
FREE Resource
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
Similar Resources on Wayground
8 questions
Co wiesz o Pythonie

Quiz
•
Professional Development
12 questions
React/Javascript Quizz

Quiz
•
Professional Development
15 questions
JavaScript

Quiz
•
Professional Development
10 questions
Dy02-Data Explorer Quiz

Quiz
•
Professional Development
10 questions
Python Session 5

Quiz
•
Professional Development
15 questions
JF UIT 2022 - Game 3

Quiz
•
Professional Development
9 questions
Tkinter

Quiz
•
Professional Development
10 questions
Sw Development

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade