Recents in Beach

C Programming MCQ For WBJECA ( SET - 13)

WBJECA MCQ FOR NEW SYLLABUS

C Programming MCQ ( SET - 13)

C programming MCQ
  1. Which one is right option ?
    int num = 3 + 2.5

    1. num=5.5
    2. num=5
    3. error
    4. none of above
    Answer: B
    Explantion: None


  2. Which of the following is not a valid variable name declaration ?

    1. int 9_num;
    2. int _9num;
    3. int num_9
    4. int _num9
    Answer: A
    Explantion: None


  3. Variable of C programming can not start With ?

    1. an underscore
    2. a special symbol other than Underscore
    3. a number
    4. both B and C
    Answer: D
    Explantion: None.


  4. which of the following is a Scalar Data type ?

    1. Array
    2. Union
    3. Float
    4. both A and B
    Answer: C
    Explantion: None


  5. A correct statement about a C switch construct ?

    1. use duplicate case constants inside a swithch construct
    2. default case is optional inside switch
    3. break; causes the control to exit the switch immediately and avoid fall down to other case statements
    4. all the above
    Answer: D
    Explantion: None


  6. A function which calls itself is called a ____ function ?

    1. Recursive Function
    2. static Function
    3. auto function
    4. none of above
    Answer: A
    Explantion: None


  7. Which is more appropriate for reading in a multi-Word string ?

    1. gets()
    2. scanf()
    3. puts()
    4. gets() and scanf()
    Answer: A
    Explantion: None


  8. The bitwise OR operator is used to ?

    1. divide numbers
    2. multiply numbers
    3. set the desired bit to 0
    4. set the desired bits to 1
    Answer: D
    Explantion: None


  9. The printf() function retunes which value when an error occurs ?

    1. positive value
    2. negative value
    3. Zero
    4. none of these
    Answer: B
    Explantion: None


  10. 10

    A correct statement about Functions in c language ?

    1. Every function may or may not return a value
    2. A function is a group of c statements which can be reused any number of times.
    3. Every function has a return type
    4. all the above
    Answer: D
    Explantion: None



Post a Comment

0 Comments