CBSE Class 10 Computer Applications Question 21 of 26

Scratch Programming II — Question 10

Back to all questions
10
Question

Question 10

What is the difference between if and if-else blocks ?

Answer

The if block is used when we have to take action depending on a certain condition being true whereas the if-else block is used when we have to take different courses of action depending upon whether the condition is true or false.