NEW
Font size
WorksheetsLego Spike & Python - Challenge 3 Quiz
Total questions: 10
Worksheet time: 10mins
What is the output of the code shown?
"5.0"
7.0
7
TypeError
In the code shown, what type of data is the result?
int
str
float
bool
Which of the following statements correctly declares or initializes a variable in Python?
int a = 10
a: int = 10
var a = 10
a = 10
What will be the output of the code shown?
3.33
3
4.5
10.3
In Python, Which is the basic data type for numbers with decimals or fractional parts?
float
bool
str
int
In Python, Which is the basic data type for numbers without decimals or fractional parts?
float
bool
str
int
In Python, Which is the basic data type for letters, words, sentences or paragraphs?
float
bool
str
int
In Python, Which is the basic data type for logic comparisons with only 2 possible alternatives?
float
bool
str
int
What will be the result of the following expression?
Tip: Remember the precedence or hierarchy of arithmetic operations.
12
9
10
11
What will be the output of the code shown?
JohnDoe
John Doe
DoeJohn
Doe+John
