GoConqr has a new look! Let us know what you think.

Quiz

Programming in C

Faheem Ahmed 44 questions 1,695 views

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (44)

  1. 1A C variable name can start with a ____
    1. ANumber
    2. BPlus Sign (+)
    3. CUnderscore
    4. DAsterisk (*)
  2. 2Name the loop that executes at least once.
    1. Afor
    2. Bif
    3. Cdo-while
    4. Dwhile
  3. 3A pointer pointing to a memory location of the variable even after deletion of the variable is known as _____
    1. Afar pointer
    2. Bdangling pointer
    3. Cnull pointer
    4. Dvoid pointer
  4. 4Which of the following correctly shows the hierarchy of arithmetic operations in C?
    1. A/ + * -
    2. B* - / +
    3. C+ - / *
    4. D/ * + -
  5. 5The output of the following code is:
    main()
    { int z, a = 5, b = 3; z = a * 2 + 26 % 3;
    printf("%d", z);
    }
    1. A10
    2. B0
    3. C12
    4. DNone of the above
  6. 6The output of the following code is:
    void main()
    { char a = 'B';
    switch (a)
    { case 'A' : printf("a");
    case 'B' : printf("b");
    default : printf("c");
    }
    }
    1. AB
    2. Bb
    3. Cbca
    4. Dbc
  7. 7What is the output of this C code?
    main()
    { int x=35;
    printf("%d %d %d",x==35,x=50,x>40);
    }
    1. A1 50 1
    2. B0 50 0
    3. CRuntime error
    4. DCompile time error
  8. 8Which among the following is NOT a logical or relational operator?
    1. A!=
    2. B==
    3. C||
    4. D=
  9. 9Which of the following is not a correct variable type?
    1. Afloat
    2. Breal
    3. Cint
    4. Ddouble
  10. 10Which of the following is true?
    1. A1
    2. B66
    3. C0.1
    4. D-1
    5. EAll of the above

Information

Description
First year First Year Quiz on Programming in C, created by Faheem Ahmed on 26/03/2018.
Language
English
Views
1,695
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?