C Programming Questions Answers - Chapter 1

  • 22. What will be output of
    #include
    void main()
    {
    char test =`S`;
    printf("\n%c",test);
    }

    1. S
    2. Error
    3. Garbage value
    4. None of above
    Answer :

    Option A

  • 23. Structures can be used

    1. to hold different datatypes
    2. have pointers to structures
    3. to assign to one another
    4. all of above
    5. None
    6. A only
    7. B only
    8. C only
    Answer :

    Option F

  • 24. We can insert pre written code in a C program by using

    1. #read
    2. #get
    3. #include
    4. #put
    Answer :

    Option C

  • 25. A variable in c

    1. must have a valid datatype
    2. can't have a name same as keyword
    3. must have a name starting with a character
    4. All of above
    Answer :

    Option D

  • 26. A member is a

    1. Variable in a structure
    2. Datatype of structure
    3. Structure pointer
    4. None of above
    Answer :

    Option A

  • 27. Which operator in c can't be overloaded

    1. %
    2. +
    3. ::
    4. -
    5. Only argument I is strong
    6. Only argument II is strong
    7. Either I or II is strong
    8. Neither I nor II is strong
    9. Both I and II are strong
    Answer :

    Option F

  • 28. Wild pointer in C

    1. if pointer is pointing to a memory location from where variable has been deleted
    2. if pointer has not been initialized
    3. if pointer has not defined properly
    4. if pointer pointing to more than one variable
    5. Only assumption I is implicit
    6. Only assumption II is implicit
    7. Either I or II is implicit
    8. Neither I nor II is implicit
    9. Both I and II are implicit
    Answer :

    Option

Please Like Us