C-Command Line Arguments Questions and Answers

Practice Mode
Showing 10 of 129 questions
Q61
The default stream pointers available during execution of a program are
  • A stdin
  • B stdout
  • C stdprn
  • D All of these
Answer: Option D
Q62
Which of the following functions used for in-memory format conversions ?
  • A realloc()
  • B sprintf()
  • C fwrite()
  • D None of these
Answer: Option B
Q63
What is argv[0]?
  • A The number of arguments to the program
  • B The name of the program
  • C The first argument to the program
  • D This syntax is illegal
Answer: Option B
Q64
The Turbo C implementation of C language supports
  • A high level file I/O
  • B System level file I/O
  • C Both a and b
  • D Executable files only
Answer: Option C
Q65
Which of the  following is not a valid file opening mode ?
  • A r+
  • B r
  • C +r
  • D rt
Answer: Option C
Q66
Which of the following function is used for writing mixed type of data ?
  • A fwrite()
  • B fputs()
  • C fputc()
  • D fprintf()
Answer: Option D
Q67
which of the following function can be used to read an entire array or structure in a single call ?
  • A fread()
  • B read()
  • C readblock()
  • D sprintf()
Answer: Option A
Q68
the ftell()function
  • A Takes only one argument
  • B Takes two arguments
  • C Moves the file pointer only in forward direction
  • D None of these
Answer: Option A
Q69
The tast performed by fseek (fp,0,0) function is
  • A fclose(fp)
  • B search(fp)
  • C rewind(fp)
  • D ftell(fp)
Answer: Option C
Q70
Which of the following is not a data file in C?
  • A Text file
  • B Binary file
  • C Executable file
  • D None of these
Answer: Option C
Questions and Answers for Competitive Exams Various Entrance Test