You are on page 1of 1

Q1.

Anything to the right of # sign in a code cell does not run in Google Colab

Ans: True, Anything to the right of # sign in a code cell is not run in Python because Python treats it
as a comment and does not execute that cell.

Q2. Which of the following is a Boolean variable?

Ans: Boolean is a type of variable which can take two values, True and False.

Q3. In Python, a variable must be declared before it is assigned a value

Ans: Variables need not be declared in advance in Python. To create a variable, we just assign it a
value.

Q4. Which of the following statement represents the correct method to declare or define the
variable?

Ans: To declare a variable assignment operator '=' is used. So the correct answer is number=5.

You might also like