C-Command Line Arguments Questions and Answers

Practice Mode
Showing 10 of 129 questions
Q81
How many types of attributes present in a file ?
  • A 2
  • B 3
  • C 4
  • D 5
Answer: Option C
Q82
filelength(1) is a function which returns
  • A Size of file where 1 is a file handler.
  • B Size of file where 1 is a file descriptor.
  • C Both a and b
  • D None of these
Answer: Option A
Q83
O_TRUNC always followed by
  • A WRONLY
  • B RDONLY
  • C RDWRONLY
  • D None o the above
Answer: Option A
Q84
What is the value of EOF which is declared in "stdio.h"?
  • A 0
  • B -1
  • C Any positive value
  • D None of the above
Answer: Option B
Q85
Which of the following is true ? I. FILE is a data type II. FILE is a storage region III. A block of information in an object of type FILE is recorded while reading or writing
  • A Option I only
  • B Both I and II
  • C Both I and III
  • D All of the these
Answer: Option D
Q86
The function feof() returns
  • A A file pointer
  • B A file position pointer
  • C An jinteger
  • D None of the above
Answer: Option C
Q87
If 'n' is the number of items to be written to the file, when an error occurs duuuuuuuuuuuuuuwrite(), if returns
  • A A number less than n
  • B A number equals to n
  • C A number greater than n
  • D None of the above
Answer: Option A
Q88
The function fread() returns
  • A the number of filels successfully read
  • B The number of records successfully read
  • C the number of bytes successfully read
  • D None of the above
Answer: Option B
Q89
The function fread() returns
  • A The number of filesl successfully read
  • B The nuimber of records successfully read
  • C the number of bytes successfully read
  • D None of the above
Answer: Option B
Q90
The rewind() function is mainly used for
  • A Open a file for update
  • B Open a file for writing
  • C Open a file for reading
  • D None of these
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test