
python Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Usha Chennai
Used 18+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
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
10 questions
Taller SQL
Quiz
•
University
10 questions
Excel (9-րդ դասարան)
Quiz
•
9th Grade - University
10 questions
Prueba de Algoritmo y Programación
Quiz
•
University
10 questions
C++ Fundamentals
Quiz
•
University
9 questions
Object Oriented Programming
Quiz
•
University
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
Object Oriented Programming
Quiz
•
University
11 questions
Week 3 - CompTIA ITF - Troubleshooting
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
