C-Command Line Arguments

C-Command Line Arguments
81. How many types of attributes present in a file ?
  • 2
  • 3
  • 4
  • 5
Show Answer
82. filelength(1) is a function which returns
  • Size of file where 1 is a file handler.
  • Size of file where 1 is a file descriptor.
  • Both a and b
  • None of these
Show Answer
83. O_TRUNC always followed by
  • WRONLY
  • RDONLY
  • RDWRONLY
  • None o the above
Show Answer
84. What is the value of EOF which is declared in "stdio.h"?
  • 0
  • -1
  • Any positive value
  • None of the above
Show Answer
85. 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
  • Option I only
  • Both I and II
  • Both I and III
  • All of the these
Show Answer
86. The function feof() returns

  • A file pointer
  • A file position pointer
  • An jinteger
  • None of the above
Show Answer
87. If 'n' is the number of items to be written to the file, when an error occurs duuuuuuuuuuuuuuwrite(), if returns
  • A number less than n
  • A number equals to n
  • A number greater than n
  • None of the above
Show Answer
88. The function fread() returns
  • the number of filels successfully read
  • The number of records successfully read
  • the number of bytes successfully read
  • None of the above
Show Answer
89. The function fread() returns
  • The number of filesl successfully read
  • The nuimber of records successfully read
  • the number of bytes successfully read
  • None of the above
Show Answer
90. The rewind() function is mainly used for
  • Open a file for update
  • Open a file for writing
  • Open a file for reading
  • None of these
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test