Question 1
The value of EOF is _____
-1
2
1
10
Good Job!
Oops!
Currently there is no PrepInsta Explanation. Did you know?
You can also submit your own version of explanations under user explanation section and also view other submitted explanations by other users.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
Start
Question 2
Which of the following true about FILE *fp
FILE is a keyword in C for representing files and fp is a variable of FILE type.
FILE is a structure and fp is a pointer to the structure of FILE type
FILE is a stream
FILE is a buffered stream
Question 3
A character string containing the name of the file & the second argument is the mode
A character string containing the name of the user & the second argument is the mode
A character string containing file poniter & the second argument is the mode
None of the mentioned
Question 4
Nothing
EOF
NULL
Depends on compiler
Question 5
rewind() doesn’t work for empty files
rewind() may fail for large files
In rewind, there is no way to check if the operations completed successfully
All of the above
Question 6
int type
char * type
struct type
Question 7
A structure tag declared in stdio.h
One of the basic datatypes in c
Pointer to the structure defined in stdio.h
It is a type name defined in stdio.h
Question 8
End of files is reached
When getc() fails to read a character
Both of the above —
None of the above
Question 9
fputs() with FILE stream as stdout.
fprintf() with FILE stream as stdout.
fwrite() with FILE stream as stdout.
All of the above three – a, b and c.
In “stdio.h”, there’s no other equivalent function of printf()
Question 10
True
False
Depends on the standard
Undefined behaviour
Answer: b
Please login to report
Login/Signup
Personalized Analytics only Availble for Logged in users
Analytics below shows your performance in various Mocks on PrepInsta
Your average Analytics for this Quiz
Rank
-
Percentile
0%
Completed
0/0
Accuracy
June 2, 2020
Login/Signup to comment
Login/Signup to comment