NEW
Font size
WorksheetsPython Data Types and Operations Quiz
Total questions: 11
Worksheet time: 6mins
What is the result of the following operation in Python: 7 + 3*2?
20
13
17
10
Which function is used to convert a string to an integer in Python?
str()
int()
float()
bool()
What will be the output of the following code: `print("Hello" + " " + "World")`?
HelloWorld
Hello World
Hello, World
"Hello World"
Which of the following is not a valid arithmetic operator in Python?
+
-
&
/
What is the data type of the result of the following operation: 5/2 ?
Integer
Float
String
Boolean
How do you convert a float to a string in Python?
str()
int()
float()
bool()
What is the result of the following operation: 10%3 ?
1
3
0
2
Which function is used to convert an integer to a float in Python?
str()
int()
float()
bool()
Which of the following is a valid string in Python?
'Hello'
"World"
"""Python"""
All of the above
What is the result of the following operation: 2**3 in Python?
6
8
9
12
How do you concatenate two strings in Python?
Using the + operator
Using the * operator
Using the & operator
Using the - operator
