Statistics for The C Standard Library - stdio.h

Click here to take the quiz!

General Stats

  • This quiz has been taken 4 times
  • The average score is 8 of 15

Answer Stats

TypeParametersDescriptionFunction% Correct
FILE *const char *filename, const char *modeOpens a file of the specified name in the specified mode; returns a pointer to that filefopen()
100%
intconst char *format, ...Writes formatted output, as specified by the format string, to stdoutprintf()
100%
intconst char *format, ...Reads formatted input from stdinscanf()
100%
intFILE *streamCloses the file associated with the specified streamfclose()
67%
intFILE *streamReads a character from the specified file stream and returns itfgetc()
67%
intFILE *stream, const char *format, ...Writes formatted output, as specified by the format string, to the specified file streamfprintf()
67%
int(no parameters)Reads a character from stdin and returns itgetchar()
67%
intint characterWrites the specified character to stdoutputchar()
67%
intFILE *streamReturns a non-zero value if the end-of-file has been reached for the specified file stream; returns zero otherwisefeof()
33%
char *char *str, int num, FILE *streamReads no more than (num - 1) characters from the specified stream and puts them into the string pointed by str; when a newline character is reached, it is put into the string and the reading process terminatesfgets()
33%
intFILE *streamSame as the above, but may be defined as a macro rather than a functiongetc()
33%
intconst char *strWrites the specified string and a newline character to stdoutputs()
33%
intconst char *filenameDeletes the file of the specified nameremove()
33%
FILE *(no parameters)Creates a temporary file whose name is guaranteed to be different from that of any existing file; returns a pointer to that filetmpfile()
33%
longFILE *streamReturns the position of the file pointer relative to the start of the fileftell()
0%

Score Distribution

Percentile by Number Answered

Percent of People with Each Score

Your Score History

You have not taken this quiz