C Programming Questions Answers - Chapter 1

  • 8. Which operator has the highest priority

    1. ()
    2. []
    3. *
    4. /
    Answer :

    Option A

  • 9. Difference between structure and union is

    1. We can define functions within structures but not within a union
    2. We can define functions within union but not within a structure
    3. The way memory is allocated
    4. There is no difference
    Answer :

    Option C

  • 10. What is prototype of a function in C

    1. It is the return type of a function
    2. It is the return data of the function
    3. It is declaration of a function
    4. It is a datatype
    5. 119133
    6. 119233
    7. 119333
    8. 119433
    Answer :

    Option

  • 11. To access the members of structure which symbol is used

    1. *
    2. -
    3. ,
    4. .
    Answer :

    Option D

  • 12. rand() function returns

    1. float value
    2. integer value
    3. any type
    4. none of above
    Answer :

    Option B

  • 13. What is correct order of precedence in C

    1. Addition, Division, Modulus
    2. Addition, Modulus, Division
    3. Multiplication, Substration, Modulus
    4. Modulus, Multiplication, Substration
    Answer :

    Option D

  • 14. Break statement is used for

    1. Quit a program
    2. Quit the current iteration
    3. Both of above
    4. None of above
    Answer :

    Option B

Please Like Us