C - Files and Preprocessors Questions and Answers

Practice Mode
Showing 10 of 96 questions
Q1
File is
  • A a data type
  • B a region of storage
  • C both options a and b
  • D a variable
Answer: Option B
Q2
The way to access file contents from a program is
  • A by using library functions
  • B by using system calls
  • C both options a and b
  • D to use a linker
Answer: Option C
Q3
Stream oriented files are accessed through
  • A system calls
  • B library functions
  • C linker
  • D loader
Answer: Option B
Q4
Low level firles are accessed through
  • A system calls
  • B library functions
  • C linker
  • D loader
Answer: Option A
Q5
C supports
  • A high level files
  • B low level files
  • C both options a and b
  • D executable files only
Answer: Option C
Q6
A stream is
  • A a library function
  • B a system call
  • C a source or destination of data that may be associated with a disk or other I/O devices
  • D a file
Answer: Option C
Q7
I/O stream can be
  • A a text stream
  • B a binary stream
  • C both options a and b
  • D an I/O operation
Answer: Option C
Q8
File opening is
  • A a default action in file processing
  • B an action of connecting a program to a file
  • C not necessary
  • D not using any library function
Answer: Option B
Q9
File defined in stdio.h is
  • A a region of storage
  • B a data type
  • C not a data type
  • D a variable
Answer: Option B
Q10
A file pointer is
  • A a stream pointer
  • B a buffer pointer
  • C a pointe to FILE data type
  • D all the bove
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test