

MCQOPTIONS
Saved Bookmarks
This section includes 109 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
101. |
The itoa function can convert an integer in decimal, octal or hexadecimal form to a string. |
A. | Yes |
B. | No |
Answer» B. No | |
102. |
What will the function randomize() do in Turbo C under DOS? |
A. | returns a random number. |
B. | returns a random number generator in the specified range. |
C. | returns a random number generator with a random value based on time. |
D. | return a random number with a given seed value. |
Answer» D. return a random number with a given seed value. | |
103. |
Is standard library a part of C language? |
A. | Yes |
B. | No |
C. | Yes |
D. | No |
Answer» C. Yes | |
104. |
Which standard library function will you use to find the last occurance of a character in a string in C? |
A. | strnchar() |
B. | strchar() |
C. | strrchar() |
D. | strrchr() |
Answer» E. | |
105. |
What is stderr ? |
A. | standard error |
B. | standard error types |
C. | standard error streams |
D. | standard error definitions |
Answer» D. standard error definitions | |
106. |
Point out the error in the following program.
#include
|
A. | Error: unknown value in printf() statement. |
B. | Error: in fprintf() statement. |
C. | No error and prints "IndiaBIX" |
D. | No error and prints "2.0" |
Answer» C. No error and prints "IndiaBIX" | |
107. |
It is necessary that for the string functions to work safely the strings must be terminated with '\0'. |
A. | 1 |
B. | |
C. | 1 |
D. | |
Answer» B. | |
108. |
What will be the output of the program?
#include
|
A. | How r u72 |
B. | How r u82 |
C. | How r u11 |
D. | Error: cannot assign printf to variable |
Answer» C. How r u11 | |
109. |
Does there any function exist to convert the int or float to a string? |
A. | Yes |
B. | No |
Answer» B. No | |