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 91medium
The parameter control string in the printf () is a C String that contains text to be . . . . . . . .
Question 92hard
What will be the output of the following C code?
printf(“\n Output: %5d \t %x \t %#x”, 234,234,234);Question 93easy
The syntax to print a % using printf statement can be done by . . . . . . . .
Advertisement
Question 94hard
What will be the output of the following C code?
#include <stdio.h>
#include <stdlib.h>
int main()
{
srand(9000);
printf("%d\n", rand());
return 0;
}Question 95medium
The conversion characters d, i, o, u, and x may be preceded by h in scanf() to indicate?
Question 96medium
The maximum number of characters to be printed is specified by . . . . . . . .
Advertisement
Question 97medium
In function free(p), p is a . . . . . . . .
Question 98hard
What will be the output of the following code?
char t=’N’;
printf(“\n %c \n %3c \n %5c”,t,t,t);Question 99hard
What will be the output of the following C code?
#include <stdio.h>
int main(int argc, char** argv)
{
char *s = "myworld";
int i = 3;
printf("%10.*s", i, s);
}