C Programming File Access 1 Online Exam Quiz
C Programming File Access 1 GK Quiz. Question and Answers related to C Programming File Access 1. MCQ (Multiple Choice Questions with answers about C Programming File Access 1
Which type of files can’t be opened using fopen()?
Options
A : .txt
B : .bin
C : .c
D : none of the mentioned
Which of the following mode argument is used to truncate?
Options
A : a
B : f
C : w
D : t
In C language, FILE is of which data type?
Options
A : int
B : char *
C : struct
D : None of the mentioned
For binary files, a ___ must be appended to the mode string.
Options
A : Nothing
B : “b”
C : “binary”
D : “01”
What will fopen will return, if there is any error while opening a file?
Options
A : Nothing
B : EOF
C : NULL
D : Depends on compiler
When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
Options
A : Standard input
B : Standard output
C : Standard error
D : All of the mentioned
What is the return value of getc()?
Options
A : The next character from the stream is not referred by file pointer
B : EOF for end of file or error
C : Nothing
D : None of the mentioned
Chemical Engineering Basics - Part 1 more Online Exam Quiz
C Multiple Choice Questions Standard Input Output
C Programming Assigment Operators Expressions 2
C Programming C Preprocessor 2
C Programming Data Types Sizes 2
C Programming File Inclusion 1
C Programming Float Datatype 1
C Programming Float Datatype 2