WBJECA MCQ FOR NEW SYLLABUS
C Programming MCQ ( SET - 7)
- strlen() is used for ___________ ?
- revers strings
- Calculate string length
- copy string
- concate two string
Answer: B
Explantion: None - Automatic variable are initianlized with by default ?
- blank
- 0
- garbage
- none of above
Answer: C
Explantion: - Which keyword can be used for coming out of recursion ?
- return
- break
- exit
- all of above
Answer: A
Explantion: None. - int **ptr ; wher **ptr is ______ ?
- pointer
- error
- pointer point to integer
- pointer point to pointer
Answer: D
Explantion: None - Can we overload function in C programming ?
- No
- YES
- Can't say
- None of above
Answer: A
Explantion: None - Recursive functions are executed in a _______ ?
- LIFO order
- FIFO order
- both A & B
- none of above
Answer: A
Explantion: None - Is initialization mandatory for local static variables ?
- Depends on compiler
- yes
- No
- None of above
Answer: C
Explantion: None - What will be the output of c program ?
main()
{
int main=5;
printf("%d",main);
}- compilation error
- runtime error
- garbage Value
- 5
Answer: D
Explantion: None - What is the return_type of sqrt() ?
- float
- double
- int
- depends on parameter
Answer: B
Explantion: None - 10What is the return type of printf() & scanf() ?
- bool
- int
- void
- char
Answer: B
Explantion: None
More C programming MCQ for
0 Comments