File Input Output MCQs

296 questionsC-ProgramPage 30 of 33

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 262medium
What will the given code result is
printf("\n you are\"awesome \" ");
Question 263hard
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *str = "hello, world\n";
    printf("%d", strlen(str));

}
Question 264easy
Which is not true about function tolower?
Advertisement
Question 265medium
putchar(c) function/macro always outputs character c to the . . . . . . . .
Question 266easy
What is the meaning of the following C statement?
scanf("%[^\n]s", ch);
Question 267easy
What is the return type of rand() function?
Advertisement
Question 268hard
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    FILE *fp = stdout;
    int n;
    fprintf(fp, "%d ", 45);
    fprintf(stderr, "%d ", 65);
    return 0;
}
Question 269hard
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    printf("%d\n", srand(9000));
    return 0;
}
Question 270easy
What are the Properties of the first argument of a printf() functions?
File Input Output MCQs with Answers & Solutions — C-Program | GrabStudy