C Programming MCQ - File Management

6:   The statement fseek(fp,0L,0)i - if syntactically correct,means
A. fp is a file pointer
B. position the read-write-head at the start of the file
C. position the read-write-head at the end of the file
D. None of these
 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



7:   The process of accessing data stored in a tape is similar to manipulating data on a
A. Stack
B. Queue
C. List
D. None of these
 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



8:  

If a file is opened in r+ mode then

A.

reading is possible

B.

 writing is possible

C.

both (a) & (b)

D.

all the above comments are true

 
 

Option: C

Explanation :

r+ - If is opened successfully fopen( ) loads it into memory and sets up a pointer which points to the first character in it. Returns NULL, if unable to open the file.Operations possible - reading existing contents, writing new contents, modifying existing contents of the file

r - Searches file. If the file is opened successfully fopen( ) loads it into memory and sets up a pointer which points to the first character in it. If the file cannot be opened fopen( ) returns NULL.

Operations possible – reading from the file.

 

Click on Discuss to view users comments.

Write your comments here:



9:  

If a file is opened in w+ mode then

A.

after write operation reading is possible without closing and re-opening

B.

reading is possible

C.

writing is possible

D.

All of the above

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



10:  

 ftell

A.

is a function

B.

gives the current file position indicator

C.

can be used to find the size of a file

D.

All of the above

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:




Syllabus Covered in this section is

  • Elements of C-Tokens
  • Identifiers
  • data types in C
  • Control structures in, C
  •  Sequence, selection and iteration(s).
  • Structured data types in C
  • Arrays, Structures, union, String, and pointers
  • Functions, Recursion
  • Parameter passing, Scope
  •  Binding, Abstract data types

This Section covers Multiple Choice Questions Answers in C Programming . Here questions answers are given with explanation and references. These questions can be used for the preparation of various competitive and academic exams.

Who can benefit - 

  • Any undergraduate or postgraduate student who is seeking C Programming objective type questions answers can use this section.
  • C programming Multiple Choice questions Answers can help you in interview preparation.
  • C Programming Objective type Questions Answers are also used at SSC and HSc level for Exam preparation.
  • C Programming MCQ Questions Answers are also used by engineering students in the preparation of their Exams.
  • Any candidate who has to appear for DOEACC A, B or C level Exam can also learn C Programming Questions Answers.
  • All the teachers who are appearing for Kendriya Vidyalya Sangathan Entrance Exam can also use C Programming Multiple Choice Questions Answers.
  • C Programming MCQs can also be used by the students who are pursuing B.Sc or Msc Computer Science.
  • C Programming Questions Answers can also be used by BCA students for the preparation of their exams.
  • Any student who is pursuing B.Sc. in Information Technology can also use this C Programming mcq Questions Answers.
  •  MCA students can also prepare for their exams using  C Programming Objective Type Questions Answers.
  • You can get free access to C Programming mcq pdf.
  • You can also have online access to C Programming Questions Answers EBook.

Various Search Terms used for this section are

  • C Programming quiz questions with answers

  • C Programming exam questions answers

  • C Programming MCQ questions Answers

  • C Programming MCQ

  • C Programming Questions Answers