File Input Output MCQs
Practice free File Input Output multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 296 questions — no login required.
Question 46hard
What will be the output of the following C code?
#include <stdio.h>
#include <ctype.h>
int main()
{
int i = 0;
if (isspace(i))
printf("space\n");
else
printf("not space\n");
return 0;
}Question 47medium
fputs() function writes a string to a file that only ends with a newline.
Question 48medium
. . . . . . . . removes the named file, so that a subsequent attempt to open it will fail.
Advertisement
Question 49medium
Escape sequences are prefixed with . . . . . . . .
Question 50easy
What is the default return-type of getchar()?
Question 51medium
Choose the correct description for control string %-+7.2f.
Advertisement
Question 52hard
What will be the output of the following C code?
#include <stdio.h>
#include <ctype.h>
int main()
{
char c = 't';
printf("is :%c\n", tolower('A'));
}Question 53easy
ungetc() is used . . . . . . . .
Question 54medium
Which mathematical function among the following does NOT require int parameters?