Determine Largest & Smallest

Pre-Test

  1. Choose a statement to use C If Else statement.

  2. else if is compulsory to use with if statement.;
    else is compulsory to use with if statement.
    else or else if is optional with if statement.
    None of the above

  3. By default a function returns a value of type

  4. int
    Char
    void
    None of these

  5. What is the output of the C Program.?
    #include
    int main()
    {
    if( 4 > 5 )
    {
    printf("Hurray..\n");
    }
    printf("Yes");
    return 0;
    }


  6. Yes
    Hurray.. Yes
    Hurray..Yes
    Compiler error

  7. Which is valid string function ?

  8. strpbrk
    strlen
    strxfrm
    strcut

  9. Find the output of the given C program.
    #include
    intmain()
    {
    if(-5)
    printf("a");
    printf("b");
    else
    printf("c");
    printf("d");
    return 0;
    }

  10. abd
    cd
    Compile time error
    ab