
python Quiz

Quiz
•
Computers
•
University
•
Hard
Usha Chennai
Used 18+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code
print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))
False True True True
False True False True
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of print(type([]) is list)
False
True
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following variable assignment
x = 75
def myfunc():
x = x + 1
print(x)
myfunc()
print(x)
Error
1
76
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the right way to create a string literal Ault'Kelly
str1 = ‘Ault\\’Kelly’
str1 = ‘Ault\’Kelly’
str1 = “””Ault’Kelly”””
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of print(type({}) is set)
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the following
aTuple = (1, 'Jhon', 1+3j)
print(type(aTuple[2:3]))
list
complex
tuple
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python 3, what is the type of type(range(5))
int
list
range
Similar Resources on Wayground
10 questions
Python Programming Quiz

Quiz
•
University
12 questions
Типы данных Python2

Quiz
•
6th Grade - University
10 questions
CR1-Introducción a la Programación con Python

Quiz
•
University
11 questions
Ordre supérieur et arbres 2

Quiz
•
University
10 questions
PYTHON-STRINGS

Quiz
•
University
10 questions
Java Static

Quiz
•
University
11 questions
Python

Quiz
•
University
10 questions
python boot camp

Quiz
•
University
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade