
python 3
Quiz
•
Arts
•
1st Grade
•
Practice Problem
•
Hard
Nagendrapatel Puppala
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1.what will be the output of the following snippet?
a=[[],"abc",[0],1,0]
print(list(fliter(bool,a)))
['abc',[0],1]
[1]
["abc"]
None of the above
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2.what will be the output of the following code snippet?
a=[1,2,3]
a=tuple(a)
a[0]=2
print(a)
[2,2,3]
(2,2,3)
(1,2,3)
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what will the output of the following code snippet?
print(2**3+(5+6)**(1+1))
129
8
121
None of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
str1 = '{2}, {1} and {0}'.format('a', 'b', 'c')
str2 = '{0}{1}{0}'.format('abra', 'cad')
print(str1, str2)
c, b and a abracad0
a, b and c abracadabra
a, b and c abracadcad
c, b and a abracadabra
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
a = 2
b = '3.77'
c = -8
str1 = '{0:.4f} {0:3d} {2} {1}'.format(a, b, c)
print(str1)
2.0000 2 -8 3.77
2 3.77 -8 3.77
2.000 3 -8 3.77
2.000 2 8 3.77
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
import string
Line1 = "And Then There Were None"
Line2 = "Famous In Love"
Line3 = "Famous Were The Kol And Klaus"
Line4 = Line1 + Line2 + Line3
print("And" in Line4)
True 2
True
False
False 2
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
List = [True, 50, 10]
List.insert(2, 5)
print(List, "Sum is: ", sum(List))
[True, 50, 10, 5] Sum is: 66
[True, 50, 5, 10] Sum is: 65
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’
[True, 50, 5, 10] Sum is: 66
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
20 questions
Dziady cz.II i cz.IV Anna Lato
Quiz
•
1st - 3rd Grade
17 questions
Música para todos
Quiz
•
1st - 10th Grade
15 questions
ARTE INDÍGENA E MANEIRISMO
Quiz
•
1st Grade
19 questions
Rhythmic Symbols
Quiz
•
1st - 12th Grade
16 questions
CUESTIONARIO DIVERTIFÁCIL 1
Quiz
•
1st Grade
20 questions
Note Values
Quiz
•
KG - University
19 questions
West Side Story
Quiz
•
KG - 12th Grade
15 questions
PREGUNTADOS
Quiz
•
1st - 3rd Grade
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 Arts
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
16 questions
Christmas 1st grade
Quiz
•
1st Grade
10 questions
Exploring the Water Cycle
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
Modules 4 - 6 CBA Review
Quiz
•
1st Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade
7 questions
Attack on Pearl Harbor for Kids | Bedtime History
Interactive video
•
1st - 12th Grade
15 questions
Addition and Subtraction Facts
Quiz
•
1st - 2nd Grade
