C-Command Line Arguments

C-Command Line Arguments
51. The fcloseall() function
  • Closes all filesl except stdprn and stderr
  • Closes all files except stdin and stdout
  • It returns the name of the last file closed
  • None of these
Show Answer
52. Stream oriented files are accessed through
  • system call
  • Library functions
  • Linker
  • Loader
Show Answer
53. What are the two predefined FILE pointes in c?
  • stdout and stderr
  • console and error
  • stdout and stdin
  • stdio and stderr
Show Answer
54. Low level files are accessed through
  • System call
  • Library functions
  • Linker
  • Loader
Show Answer
55. If an error occurs, the function fseek() returns
  • Non zero
  • Zero
  • No value
  • -1
Show Answer
56. A file pointer is
  • A stream pointer
  • A buffer pointer
  • A pointer to a FILE data type
  • All of the above
Show Answer
57. Find the output
#include "stdio.h"
void main( )
{
int x=10;
char ch[10];
sprintf(ch,"%d",x);
printf("%s",ch);
}

  • 25
  • Garbage value
  • Compilation error
  • None of these
Show Answer
58. When fopen( ) fails to open a file it returns
  • NULL
  • -1
  • 1
  • None of these
Show Answer
59. The function used for writing a character into a file is
  • putc()
  • fputc()
  • fputchar()
  • Both a and b
Show Answer
60. An I/O stream can be
  • A text stream
  • A binary stream
  • Both a and b
  • None of these
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test