if_statement_quiz.md - brainchildservices/curriculum GitHub Wiki

  1. Define use of if ?

A) Use if to specify a block of code to be executed, if a specified condition is true

  1. Define use of else ?

A) Use else to specify a block of code to be executed, if the same condition is false

  1. Define use of else if ?

A) Use else if to specify a new condition to test, if the first condition is false

  1. Dose we can use if statement in Uppercase?

A) No

  1. Find out the error in below code

    if (20 > 18)
    {
    Console.WriteLine("20 is greater than 18");
    };

A) Line 4 there is ;

⚠️ **GitHub.com Fallback** ⚠️