Recents in Beach

C Programming MCQ For WBJECA ( SET - 7)

WBJECA MCQ FOR NEW SYLLABUS

C Programming MCQ ( SET - 7)

C programming MCQ
  1. strlen() is used for ___________ ?

    1. revers strings
    2. Calculate string length
    3. copy string
    4. concate two string
    Answer: B
    Explantion: None


  2. Automatic variable are initianlized with by default ?

    1. blank
    2. 0
    3. garbage
    4. none of above
    Answer: C
    Explantion:


  3. Which keyword can be used for coming out of recursion ?

    1. return
    2. break
    3. exit
    4. all of above
    Answer: A
    Explantion: None.


  4. int **ptr ; wher **ptr is ______ ?

    1. pointer
    2. error
    3. pointer point to integer
    4. pointer point to pointer
    Answer: D
    Explantion: None


  5. Can we overload function in C programming ?

    1. No
    2. YES
    3. Can't say
    4. None of above
    Answer: A
    Explantion: None


  6. Recursive functions are executed in a _______ ?

    1. LIFO order
    2. FIFO order
    3. both A & B
    4. none of above
    Answer: A
    Explantion: None


  7. Is initialization mandatory for local static variables ?

    1. Depends on compiler
    2. yes
    3. No
    4. None of above
    Answer: C
    Explantion: None


  8. What will be the output of c program ?

    main()
    {
       int main=5;
       printf("%d",main);
    }

    1. compilation error
    2. runtime error
    3. garbage Value
    4. 5
    Answer: D
    Explantion: None


  9. What is the return_type of sqrt() ?

    1. float
    2. double
    3. int
    4. depends on parameter
    Answer: B
    Explantion: None


  10. 10

    What is the return type of printf() & scanf() ?

    1. bool
    2. int
    3. void
    4. char
    Answer: B
    Explantion: None



 More C programming MCQ  for 

Post Graduate Entrance Examination



Post a Comment

0 Comments