8. Which of the following is NOT a valid Boolean value?
False
Yes
True
0
7. What will be the output of the following Python code?x = 10y = 2.5print(type(y))
<class 'int'>
<class 'float'>
<class 'str'>
<class 'bool'>
10. What type of value will the following statement store in the variable?
number = "123"
Boolean
String
Integer
Float
1. What is a variable in programming?
A data type
A special character
A container for storing values
A fixed value that cannot be changed
Which of the following is NOT a data type?
Variable
Which of the following is an example of an Integer?
"100"
100
24.5
5. What is the Boolean value of True in Python?
1
"False"
"True"
6. What is the purpose of the assignment operator = in Python?
=
To multiply numbers
To compare two values
To check the data type
To assign a value to a variable
What type of data is stored in a String?
Only numbers
Only special characters
Only letters
A sequence of characters enclosed in quotes
9. What is the correct way to define a String in Python?
'Hello'
"Hello"
All of the above
'''Hello'''