C-Command Line Arguments Questions and Answers

Practice Mode
Showing 10 of 129 questions
Q101
FILE is a
  • A Name of a structure
  • B Name of a file
  • C It is a macro
  • D None of the above
Answer: Option A
Q102
When a file is able to keep information about file that is called
  • A header byte
  • B Footer byte
  • C Slack byte
  • D None of the above
Answer: Option A
Q103
EOF is the symbolic name of
  • A 0
  • B 1
  • C -1
  • D None of the above
Answer: Option C
Q104
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); }
  • A Dear
  • B diar
  • C dear i
  • D None of the above
Answer: Option B
Q105
How many streams are opened when data is written from keyboard to buffer and bufer to file.
  • A One
  • B Two
  • C Three
  • D Four
Answer: Option B
Q106
fopen( ) function opens a
  • A File
  • B Stream
  • C Buffer
  • D None of the above
Answer: Option B
Q107
When file is opened for read mode at that itme file pointer gives
  • A Fill level
  • B empty level
  • C Both a and b
  • D None of the above
Answer: Option A
Q108
Which of the following operator is used as file modifier
  • A +
  • B -
  • C *
  • D /
Answer: Option A
Q109
'putc' s a command to
  • A to write character into buffer
  • B to write character into stream
  • C to write character into monitor
  • D to read character into buffer
Answer: Option B
Q110
The file which contain main () function is called as
  • A Application file
  • B Module file
  • C Complete file
  • D None of these
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test