
Python

Quiz
•
Computers
•
University
•
Medium
PUSHPALATHA C2114
Used 4+ times
FREE Resource
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 :
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
Similar Resources on Wayground
10 questions
CLASS 9 AI - VIVA 2024-25

Quiz
•
9th Grade - University
10 questions
Stringmethoden in Python

Quiz
•
University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
15 questions
Python Basics

Quiz
•
University
10 questions
04 - Python - Lists

Quiz
•
University - Professi...
10 questions
Datentypen, Variablen & Eingabe in Python

Quiz
•
University
15 questions
Python Programming

Quiz
•
5th Grade - University
10 questions
Python User Input Quiz

Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University