
Python
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
PUSHPALATHA C2114
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1.What is the extentions for the python file?
python
py
pi
pi3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.What is the output of the following program : What is the output of the following program :
def myfunc(a):
a = a + 2
a = a * 2
return a
print myfunc(2)
8
16
Indentation Error
Runtime Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.What is the output of the following program :
3.What is the output of the following program :
print \'{0:.2}\'.format(1.0 / 3)
0.333333
0.33
0.333333:-2
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.What is the output of the following program :
i = 0
while i < 3:
print i
i += 1
else:
print 0
0 1 2 3 0
0 1 2 0
0 1 2
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.What will be displayed by the following code?
def f(value, values):
v = 1
values[0] = 44
t = 3
v = [1, 2, 3]
f(t, v)
print(t, v[0])
1 1
1 44
3 1
3 44
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.What is the output of the following program?
x = 123
for i in x:
print(i, end=\" \")
1 2 3
1 1 1
Error
No Output
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.Given a string s = “Welcome”, which of the following code is incorrect?
print s[0]
print s.lower()
s[1] = ‘r’
print s.strip()
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
BÀI 16 - THUẬT TOÁN SẮP XẾP
Quiz
•
9th Grade - University
10 questions
ระบบทางเทคโนโลยี ม.4
Quiz
•
10th Grade - University
10 questions
Listen in Python
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
10 questions
Perkakasan Multimedia
Quiz
•
University
14 questions
Programación Orientada a Objetos: Conceptos básicos
Quiz
•
University
10 questions
CompTIA Core 2 20221023
Quiz
•
University
13 questions
8 - Организация работы в AutoCAD
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
