Font size
WorksheetsData Handling in Python
Total questions: 10
Worksheet time: 10mins
Choose the numeric data types Python Provides.
Integer , Strings
Signed Integers, Boolean, Floating Point numbers, Complex Numbers
Integers, Complex Numbers
Strings, Boolean
Boolean Data types are considered as integers because True is considered as 1 and False as 0
yes
no
How do Python represent a Complex number with real part (3) and imaginary part ( -2.5)
3+2.5i
3-2.5i
3+2.5j
3-2.5j
What is the output of the following code?
r=2.5+3.9j
print(r.imag)
(a)
______ data types store values of more than one data type
List
Tuple
Float
Dictionary
Choose the mutable data types.
List
Dictionaries
Integer
String
a)Built-in function ____ returns the type of an object.
b)Built-in function ______ returns the address of an object.
c)Built-in function ____ displays value of an object.
type( ) , val( ) , print( )
type( ) , id( ) , print( )
print( ) , type( ) , input( )
What will be the output of the following code?
str="Young World"
id(str[8])
id(str[-3])
Both the id ( ) functions will give the same address value
Both the id ( ) functions will give different address value
Choose the immutable data type.
Tuples
List
Set
Dictionaries
Do you think the CS Online class is interesting?
yes
no
may be
no comments
