
python

Quiz
•
Computers
•
Professional Development
•
Hard
Anandhi Technology
Used 1+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code snippet?
print(type(5 / 2))
print(type(5 // 2))
float and int
int and float
float and float
int and int
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
count = 0
while(True):
if count % 3 == 0:
print(count, end = " ")
if(count > 15):
break;
count += 1
0,1,2,3,...15
Infinite loop
0,3,6,9,12,15
0,3,6,9,12
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]:
print (i)
1 2 3 4
0 1 2 3
4 3 2 1
0 2 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python program?
z=set('abc')
z.add('san')
z.update(set(['p', 'q']))
z
{'abc','p','q','san'}
{'a','b','c','p','q','san'}
{'a','b','c','p','q','s','a','n'}
none
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = ['XX', 'YY']
for i in x:
i.lower()
print(x)
['xx','yy']
xx
yy
XX
YY
['XX','YY']
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
>>> "welcometocauvery"[5:]
welcometocauvery
welco
mtocauvery
cauve
Similar Resources on Wayground
10 questions
php- basics

Quiz
•
Professional Development
7 questions
HITech Quiz - Day 18

Quiz
•
Professional Development
10 questions
Module 5 & Module 6

Quiz
•
University - Professi...
10 questions
6-сынып III тоқсан (1)

Quiz
•
Professional Development
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
PLSQL and Cursor Quiz

Quiz
•
Professional Development
10 questions
Quiz!!!!

Quiz
•
Professional Development
10 questions
Semana 6 - Estructura Secuencial y Condicional

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