Basic Data Types in Python
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Sangameshwar Biradar
Used 9+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In Python 3, the maximum value for an integer is 263 - 1:
False
True
None
Error
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How would you express the hexadecimal value a5 as a base-16 integer constant in Python?
0xa5
oxa5
a5
xa5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you express the constant floating-point value 3.2 × 10-12 in Python:
3.2E-12
-3.2E12
3.2E12
None
4.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following are valid ways to specify the string literal foo'bar in Python:
'foo' 'bar'
"foo'bar"
'foo\'bar'
"""foo'bar"""
'foo'bar'
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider this statement:
>>> print(r'foo\\bar\nbaz')
Which of the following is the correct REPL output?
foo\\bar\nbaz
foo\\barnbaz
foo\bar
baz
foo\bar\nbaz
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is not a Python built-in function:
diff()
refr()
round()
map()
isinstance()
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
11 questions
Theory of Sets
Quiz
•
University
10 questions
Analysis of Algorithms
Quiz
•
University
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
TIU Quiz-4
Quiz
•
University
10 questions
FOP - CHAPTER 6
Quiz
•
University
10 questions
LINUX MODULE 03 QUIZ
Quiz
•
University
10 questions
DAA Quiz 1
Quiz
•
University
10 questions
Quizz3 Ciencia de Datos
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
