WBJECA MCQ FOR NEW SYLLABUS
C Programming MCQ ( SET - 13)
- Which one is right option ?
int num = 3 + 2.5- num=5.5
- num=5
- error
- none of above
Answer: B
Explantion: None - Which of the following is not a valid variable name declaration ?
- int 9_num;
- int _9num;
- int num_9
- int _num9
Answer: A
Explantion: None - Variable of C programming can not start With ?
- an underscore
- a special symbol other than Underscore
- a number
- both B and C
Answer: D
Explantion: None. - which of the following is a Scalar Data type ?
- Array
- Union
- Float
- both A and B
Answer: C
Explantion: None - A correct statement about a C switch construct ?
- use duplicate case constants inside a swithch construct
- default case is optional inside switch
- break; causes the control to exit the switch immediately and avoid fall down to other case statements
- all the above
Answer: D
Explantion: None - A function which calls itself is called a ____ function ?
- Recursive Function
- static Function
- auto function
- none of above
Answer: A
Explantion: None - Which is more appropriate for reading in a multi-Word string ?
- gets()
- scanf()
- puts()
- gets() and scanf()
Answer: A
Explantion: None - The bitwise OR operator is used to ?
- divide numbers
- multiply numbers
- set the desired bit to 0
- set the desired bits to 1
Answer: D
Explantion: None - The printf() function retunes which value when an error occurs ?
- positive value
- negative value
- Zero
- none of these
Answer: B
Explantion: None - 10A correct statement about Functions in c language ?
- Every function may or may not return a value
- A function is a group of c statements which can be reused any number of times.
- Every function has a return type
- all the above
Answer: D
Explantion: None
More C programming MCQ for
0 Comments