NEW
Font size
WorksheetsBasic Python Data Types
Total questions: 8
Worksheet time: 4mins
In Python 3, the maximum value for an integer is 263 - 1:
True
False
What is the output when the following Python code is executed?
a = 3
b = '5'
c = '2'
print(a * b + c)
17
352
5552
Error message
What is the output of the following Python code?
a = 13.5
b = -24.6
a, b = b, a
print(a, b)
13.5 -24.6
-24.6 13.5
-13.5 24.6
13.5 24.6
What is the output of the following Python code?
print('Hello' + "world!")
Helloworld!
Hello world!
'Hello' "world!"
Error message
What will the output be from the following Python code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
What will be the output from the following Python code?
print("3+4")
7
3+4
34
SyntaxError
Which of the following data types can consist of numbers, alphabets and symbols?
String
Integer
Float
Boolean
Which of the following data types is the most appropriate for 23 June 2020?
Float
Boolean
Integer
String
