C-Command Line Arguments

C-Command Line Arguments
21. The modes of open ( ) command declare in
  • fcntr.h
  • sys.h
  • stat.h
  • stdio.h
Show Answer
22. The 'w' mode of fopen( )

  • it returns 0 if disk spce isavailable.
  • it returns 1 if disk space is available.
  • it returns offset address if disk space is available.
  • None of these.
Show Answer
23. the process of establishing a connection between the program and a file is called
  • Opening a stream
  • Opening a file
  • Creating a file
  • All of the above
Show Answer
24. the mode "ab+" is used as
  • To open a binary file
  • to open a binary file in append mode.
  • To open a binary file in write mode
  • None of these
Show Answer
25. What this code do?
#include "stdio.h"
void main ( )
{
FILE *p;
p=fopen("xyz.txt",'w');
}

  • This can open xyz text file in write mode
  • This can open xyz text file in write mode and append at the end
  • This can open xyz text file in read mode
  • Compilation error
Show Answer
26. The mode "r+" can be used as
  • To read, write and modiy existing data of a text file.
  • to read, write and modify existing data of a binary file.
  • Only to read the text file.
  • Only to read the binary file.
Show Answer
27. Getw ( ) and putw() are
  • Character I/O
  • Integer I/O
  • Formatted I/O
  • String I/O
Show Answer
28. On successful execution of fputc() returns
  • An integer representing the character written
  • Current file position
  • Current cursor position
  • None of these
Show Answer
29. How many parameters sopen( )take
  • 2
  • 3
  • 4
  • 5
Show Answer
30. SH_DENYNO is declared in which header file ?
  • stat.h
  • share.h
  • sys.h
  • stdio.h
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test