ECAT Computer Science Chapter 13 Fundamentals of C Language Online Test With Answers

image
image
image

ECAT Computer Science Chapter 13 Fundamentals of C Language Online Test

Sr. # Questions Answers Choice
1 An array script should be: Int Float Double An array
2 On successfully closing a file, the fclose() returns: Null 0 (zero) 1 (one) File pointer
3 Which of the following function is used to write a string to a file? puts() putc() fputs() fget()
4 Which mode opens only an existing file for both reading and writing: "w" "w+" "r+" "a+"
5 A file is stored in? RAM Hard disk ROM Cache
6 A file is stored in? RAM Hard disk ROM Cache
7 In text stream, character have ________ correspondence One to One Ont to many Many to One All of above
8 In file handling, sequence of characters refers to _______ Text stream File stream Binary stream Character stream
9 There are _______ types of streams 1 2 3 Many
10 If programs get input data from data file and also send output into data file, it is called Files File processing Data files File Handling
11 A stream is associated with a file using an _______ operation Association Attach Link Open
12 If fptr = fopen ("Dats.txt". "r") statement is used to open a file then what would be the necessary condition The file must already exist The file should be data file only The file must contain valid student data The type of file must be read only
13 Which of the following functions is used to write character to a file Putc () puts () fputs () fgets ()
14 Which of the following functions is used to read character from a file getc () putc () fputs () fgets ()
15 Which of the following is/ are file handling functions fprintf() fscanf ( ) Both A and B Make ()
Download This Set