Python Unit 3
Quiz
•
Computers
•
University
•
Practice Problem
•
Easy
Vishwanath Vishwanath
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
s = "Python Programming"
print(s[7:18])
Programming
Python
Python Programming
Programmin
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a list in Python?
list = {1, 2, 3, 4}
list = [1, 2, 3, 4]
list = "1, 2, 3, 4"
1 ,2,3,4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a tuple?
t = (1, 2, 3, 4)
t = "1, 2, 3, 4"
t = {1, 2, 3, 4}
None
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
A tuple is an ___sequence in Python,
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
d = {"a": 1, "b": 2, "c": 3}
print(d.get("d", 10))
10
d
Error
D 10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
s = "python programming"
print(s.title())
"Python Programming"
"PYTHON PROGRAMMING"
"Python programming"
Error
Answer explanation
The title() method capitalizes the first letter of each word in the string.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
func function_name():
define function_name():
function function_name():
def function_name():
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
15 questions
Object Oriented Programming Assessment 1
Quiz
•
University
15 questions
Fundamentals of Algorithms - Unit 1 - Test 1
Quiz
•
University
15 questions
Dasar Pengenalan Pola 1
Quiz
•
University
11 questions
Youtube
Quiz
•
4th Grade - University
15 questions
PICMAKER
Quiz
•
University
15 questions
Vistacreate
Quiz
•
University
10 questions
Scratch
Quiz
•
KG - Professional Dev...
9 questions
Structured/Traditional SDM
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
