
Python - Data Types
Authored by Teaching Assistant Ivy
Instructional Technology, Education
12th Grade - University
Used 45+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are immutable
Number
String
Tuple
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is true about complex numbers?
The real and imaginary component can be float
The real part should be an integer
Scientific notation cannot be used in complex number
All of above
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
The int() function can be useful to convert
string to integer
hexadecimal to integer
float to int
complex number to int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid integer in Python?
0o123
123
0123
0x123
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are valid complex number objects?
4+5j
5j+4
0j
5+4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An Expression 'str' in 'string' will return
True
False
ValueError
TypeError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a core data type?
List
Tuple
Dictionary
Class
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?