NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
Python Programming: From Beginner to Production
Variables & Data Types
Quiz
Chapter Quiz: Variables & Data Types
Variables & Data Types Quiz
Complete this assessment with 100% score to master this chapter.
01
Which of these is the correct way to assign a value to a variable in Python?
x := 5
let x = 5
x = 5
int x = 5
02
What data type would the value 10.5 be?
int
float
string
bool
03
What is the correct way to check if a variable 'result' is None?
result == None
result is None
result === None
result.isNone()
04
What does this f-string do: f'My name is {name} and I am {age} years old.'?
It raises a SyntaxError
It inserts the values of 'name' and 'age' variables into the string
It creates a format function
It prints name and age as separate lines
05
Which of the following is a FALSY value in Python?
[]
{}
1
"0"
Submit Answers
Back to Lesson
Next Chapter