C-Command Line Arguments

C-Command Line Arguments
101. FILE is a
  • Name of a structure
  • Name of a file
  • It is a macro
  • None of the above
Show Answer
102. When a file is able to keep information about file that is called
  • header byte
  • Footer byte
  • Slack byte
  • None of the above
Show Answer
103. EOF is the symbolic name of
  • 0
  • 1
  • -1
  • None of the above
Show Answer
104. What will be the contents of a file
void main ()
{
FILE *p
p=fopen("letter.txt",w");
putc('D',p);
putc('e',p);
putc('a',p);
putc('r',p);
fseek(p,-3, SEEK_cur);
putc('i',p);
}

  • Dear
  • diar
  • dear i
  • None of the above
Show Answer
105. How many streams are opened when data is written from keyboard to buffer and bufer to file.
  • One
  • Two
  • Three
  • Four
Show Answer
106. fopen( ) function opens a
  • File
  • Stream
  • Buffer
  • None of the above
Show Answer
107. When file is opened for read mode at that itme file pointer gives
  • Fill level
  • empty level
  • Both a and b
  • None of the above
Show Answer
108. Which of the following operator is used as file modifier
  • +
  • -
  • *
  • /
Show Answer
109. 'putc' s a command to
  • to write character into buffer
  • to write character into stream
  • to write character into monitor
  • to read character into buffer
Show Answer
110. The file which contain main () function is called as
  • Application file
  • Module file
  • Complete file
  • None of these
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test