C Input/Output file MCQ
Q1. Which among the following is the odd one out?
- printf
- fprintf
- putchar
- scanf
Answer:- (D).
Explanations :none.
Explanations :none.
- scanf
- Files
- Command-line
- All of the mentioned
Answer:- (D).
Explanations :none.
Explanations :none.
- It runs prog1 first, prog2 second
- It runs prog2 first, prog1 second
- It runs both the programs, pipes output of prog1 to input of prog2
- It runs both the programs, pipes output of prog2 to input of prog1
Answer:- (C).
Explanations :none
Explanations :none
- char
- int
- char *
- reading character doesn’t require a return-type
Answer:- (B).
Explanations :none
Explanations :none
- -1
- 0
- 1
- 10
Answer:- (A).
Explanations :none
Explanations :none
- The next input character each time it is called
- EOF when it encounters end of file
- The next input character each time it is called EOF when it encounters end of file
- None of the mentioned
Answer:- (C).
Explanations :none
Explanations :none
- The symbolic constant EOF is defined in
- The value is -1
- The symbolic constant EOF is defined in
& value is -1 - I Only value is -1
Answer:- (C).
Explanations :none
Explanations :none
- The character written
- EOF if an error occurs
- Nothing
- Both character written & EOF if an error occurs
Answer:- (D).
Explanations :none
Explanations :none
- The function tolower is defined in
- Converts an uppercase letter to lowercase
- Returns other characters untouched
- None of the mentioned
Answer:- (D).
Explanations :none
Explanations :none
#includeint main() { char c = '�'; putchar(c); }
- Compile time error>
- Nothing
- 0
- Undefined behaviour
Answer:- (B).
Explanations :none
Explanations :none
Copyright © 2022 Shineskill Software Pvt. Ltd., All rights reserved.