1.
It's a good habit to give two spaces between if statement and condition.
A
True
B
False
Answer and explanation
Correct Answer: A — True
Not necessary but good coders follow it.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
4 practice sets · Page 1 of 1
It's a good habit to give two spaces between if statement and condition.
True
False
Not necessary but good coders follow it.
If statement inside if statement is called Nested if statements.
True
False
Nested if means statement inside statement.
What error does the if condition gives if not terminated with end statement?
Syntax error
Unexpected end
Expecting keyword end
All of the mentioned
We will get all the three errors.
If expression. The expression can be of which type?
True
Any number
Any string
All of the mentioned
The condition must be true then if statement works.