Quiz Complete, well Done!
What does a nested if-else statement do?
How can we check if a number is greater than 5 using an if statement?
What is the purpose of the 'default' case in a switch statement?
Which comparison operator is used to check if two numbers are equal?
What is the syntax for a switch statement in JavaScript?
How do you define multiple cases in a switch statement in Python?
What is the syntax for an if statement in JavaScript?
What happens if none of the cases in a switch statement match the expression value?
What is the purpose of an if-else statement?
What is the output of the following code?
x= 9
if(x == 10):
print('x is equal to 10')
else:
print('x is not equal to 10')
What are switch statements?
What is the purpose of else statements in if-else statements?
Which statement is used to stop the execution of a loop in JavaScript?
Which symbol is used to represent the logical 'OR' operatoe in a chained if-else statement?
When would you use switch statements?