C Multiple Choice File Operations Online Exam Quiz

C Multiple Choice File Operations GK Quiz. Question and Answers related to C Multiple Choice File Operations. MCQ (Multiple Choice Questions with answers about C Multiple Choice File Operations

The______function reads atmost one less than the number of characters specified by size from the given stream and it is stored in the string str.

Options

A : fget()

B : fgets()

C : fput()

D : fputs()

View Answer

Which function will return the current file position for stream?

Options

A : fgetpos()

B : fseek()

C : ftell()

D : fsetpos()

View Answer

Which functions is declared in <errno. h>?

Options

A : fseek()

B : ftell()

C : ferror()

D : fsetpos()

View Answer

Choose the correct difference between getc() and fgetc().

Options

A : If it is not a macro, it may evaluate stream more than once

B : if it is amacro, it may not evaluate stream more than once

C : if it is a macro, it may evaluate stream more than once

D : no difference between fgetc() and getc()

View Answer

what is the function of fputs()?

Options

A : read a line from a file

B : read a character from a file

C : write a character to a file

D : write a line to a file

View Answer

setvbuf() and setbuf() function controls buffering for the stream.

Options

A : true

B : false

C :

D :

View Answer

The functions vprintf(), vfprintf(), and vsprintf() are not equivalent to the corresponding printf() functions except the variable argument list.

Options

A : true

B : false

C :

D :

View Answer

Chemical Engineering Basics - Part 1 more Online Exam Quiz

C Multiple Choice Character Handling

C Multiple Choice Conditional Preprocessor Directives

C Multiple Choice Date Time Function

C Multiple Choice Diagnostics

C Multiple Choice Enums

C Multiple Choice General Utilities

C Multiple Choice Implementation Defined Limits

C Multiple Choice Mathematical Functions

C Multiple Choice Non Local Jumps

C Multiple Choice Printf