C- Library Functions MCQ Questions and Answers
Practice ModeShowing 10 of 29 questions
Q1
What will the function rewind() do?
Answer: Option D
Q2
Input/output function prototypes and macros are defined in which header file?
Answer: Option C
Q3
Which standard library function will you use to find the last occurance of a character in a string in C?
Answer: Option D
Q4
What is stderr ?
Answer: Option C
Q5
Does there any function exist to convert the int or float to a string?
Answer: Option A
Q6
What is the purpose of fflush() function.
Answer: Option A
Q7
Can you use the fprintf() to display the output on the screen?
Answer: Option A
Q8
What will the function randomize() do in Turbo C under DOS?
Answer: Option C
Q9
Which header file should be included to use functions like malloc() and calloc()?
Answer: Option B
Q10
Which library function is used to read a string from standard input in C?
Answer: Option B
Explanation: gets() function is used to read a string from standard input.