5. MCQ Test — All Cases

5.1. Single correct unshuffled2

What is the correct way to print "Hello, World" in Python?

Correct! print() is used to output text in Python.

5.2. Single correct shuffled

What is the correct way to print "Hello, World" in Python?

Correct! print() is used to output text in Python.

5.3. Single correct letters

Which of these are valid variable names in Python?

Cannot start with a number
Hyphens are not allowed
Cannot start with a symbol
Valid variable name

5.4. Single correct radio

Which of these are valid variable names in Python?

Valid variable name
Cannot start with a number
Cannot start with a symbol
Hyphens are not allowed

5.5. Single correct radio letters

Which of these are valid variable names in Python?

Cannot start with a number
Valid variable name
Hyphens are not allowed
Cannot start with a symbol

5.6. code block letters

What is the output of the following code?

x = 5
y = 2
print(x ** y)
Correct: `**` is exponentiation, so output is 25

5.7. multiple correct

Which of the following are Python data types?

String type
List type
Not a Python type
Integer type
Not a Python type