
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
7 questions
Flutter_Q2 G4

Quiz
•
Professional Development
10 questions
Python Quiz

Quiz
•
Professional Development
10 questions
Java Increment & Decrement Operators

Quiz
•
Professional Development
10 questions
Sesión 07 : Diccionarios

Quiz
•
Professional Development
8 questions
Информатика супер пупер инорматика

Quiz
•
Professional Development
10 questions
01 Python (Print & Input)

Quiz
•
Professional Development
10 questions
Python Jetcode

Quiz
•
Professional Development
11 questions
JAVA QUIZ

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development