Recents in Beach

C Programming MCQ For WBJECA ( SET - 3)

WBJECA MCQ FOR NEW SYLLABUS

C Programming MCQ ( SET - 3)

C programming MCQ
  1. What is the range of char data type ?

    1. -128 to +127
    2. 0 to 127
    3. 0 to 255
    4. None of above
    Answer: A
    Explantion: None


  2. How many type / types of loop in c programming language ?

    1. two
    2. one
    3. three
    4. none of above
    Answer: C
    Explantion: do....while() ,
    while() ,
    for()


  3. IN which year , C language was Developed ?

    1. 1970
    2. 1971
    3. 1969
    4. 1972
    Answer: D
    Explantion: None.


  4. sizeof() is a _________ ?

    1. function
    2. operator
    3. Both A & B
    4. variable
    Answer: B
    Explantion: None


  5. The format identifier %f is used for which datatype ?

    1. double
    2. float
    3. char
    4. int
    Answer: B
    Explantion: None


  6. Which of the following is a logical NOT operator ?

    1. !
    2. !=
    3. !!
    4. |!
    Answer: A
    Explantion: None


  7. break statement is used for ___________ ?

    1. Quit a program
    2. Quit the current itration
    3. jump from main()
    4. Both A and B
    Answer: B
    Explantion: None


  8. What is the default value of static variable ?

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


  9. Which of the following is not a valid storage class ?

    1. extern
    2. dynamic
    3. register
    4. auto
    Answer: B
    Explantion: None


  10. 10

    What is the scope of local variable ?

    1. only main function
    2. Within the block or function
    3. Entire program
    4. All of above
    Answer: B
    Explantion: None



Post a Comment

0 Comments