Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

How are code blocks in Python delimited?
A. Parentheses ()
B. Curly braces {}
C. Indentation
D. Square brackets []
Direction: Choose the correct option

Q2.

Which of the following is a valid Python variable name?
A. my-var
B. 2var
C. my var
D. _myVar
Direction: Choose the correct option

Q3.

What is the correct way to write a comment in Python?
A. // comment
B. <!-- comment -->
C. # comment
D. /* comment */
Direction: Choose the correct option

Q4.

What does the statement `print('Hello')` do?
A. Throws an error
B. Creates a file named Hello
C. Outputs Hello to the console
D. Stores Hello in a variable