Determine Largest & Smallest

Post Test

  1. If expression.
    The expression can be of which type?

  2. True
    Any number
    Any string
    All of the mentioned

  3. What error does the if condition gives if not terminated with end statement?

  4. Syntax error
    Unexpected end
    Expecting keyword end
    All of the mentioned

  5. If statement inside if statement is called Nested if statements.


  6. True
    False

  7. It’s a good habit to give two spaces between if statement and condition.

  8. True
    False

  9. What is the output of the code?
    #include
    intmain()
    {
    if(11<2){
    printf("Eleven is less than two");}
    end
    printf("11 is greater");
    }

  10. 11 is greater
    Eleven is less than two
    Eleven is less than two 11 is greater
    None of the mentioned