Library Functions

Q1: Can you use the fprintf() to display the output on the screen?

A Yes

B No

Q2: Do like this fprintf(stdout, "%s %d %f", str, i, a);

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.

Q3: What will the function rewind() do?

A Reposition the file pointer to a character reverse.

B Reposition the file pointer stream to end of file.

C Reposition the file pointer to begining of that line.

D Reposition the file pointer to begining of file.

Q4: What is the purpose of fflush() function.

A flushes all streams and specified streams.

B flushes only specified stream.

C flushes input/output buffer.

D flushes file buffer.

Q5: What is stderr ?

A standard error

B standard error types

C standard error streams

D standard error definitions

Q6: Input/output function prototypes and macros are defined in which header file?

A conio.h

B stdlib.h

C stdio.h

D dos.h

Q7: Does there any function exist to convert the int or float to a string?

A Yes

B No

Q8: 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()

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.