More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
ECAT Computer Science Chapter 13 Fundamentals of C Language Online Test MCQs With Answers
Question # 1
On successfully closing a file, the fclose() returns:
Choose an answer
Null
0 (zero)
1 (one)
File pointer
Previous
Skip
Next
Question # 2
An array script should be
Choose an answer
Int
Float
Double
An array
Previous
Skip
Next
Question # 3
In text stream, character have ________ correspondence
Choose an answer
One to One
Ont to many
Many to One
All of above
Previous
Skip
Next
Question # 4
Which of the following functions is used to read character from a file
Choose an answer
getc ()
putc ()
fputs ()
fgets ()
Previous
Skip
Next
Question # 5
On, successfully closing a file, the fclose () returns
Choose an answer
Null
0
1
FILE pointer
Previous
Skip
Next
Question # 6
Which of the following is/ are file handling functions
Choose an answer
fprintf()
fscanf ( )
Both A and B
Make ()
Previous
Skip
Next
Question # 7
A stream is associated with a file using an _______ operation
Choose an answer
Association
Attach
Link
Open
Previous
Skip
Next
Question # 8
Which of the following functions is used to write a string to a file
Choose an answer
Puts()
Putc ()
Fputs ()
Fqets()
Previous
Skip
Next
Question # 9
Which of the following characters is used to mark the end of the string
Choose an answer
\0
/0
\a
\n
Previous
Skip
Next
Question # 10
Which mode opens only an existing file for both reading and writing:
Choose an answer
"w"
"w+"
"r+"
"a+"
Previous
Skip
Next
Question # 11
Which of the following functions is used to write character to a file
Choose an answer
Putc ()
puts ()
fputs ()
fgets ()
Previous
Skip
Next
Question # 12
If fptr = fopen ("Dats.txt". "r") statement is used to open a file then what would be the necessary condition
Choose an answer
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
Previous
Skip
Next
Question # 13
Which mode opens only an existing file for both reading and writing
Choose an answer
"W"
"W+"
"r+"
"a+"
Previous
Skip
Next
Question # 14
Which of the following functions is used to copy a string to an array characters/
Choose an answer
Strcpy
Strpcy
Strycp
Copy
Previous
Skip
Next
Question # 15
A file is stored in
Choose an answer
RAM
Hard Disk
ROM
Cache
Previous
Skip
Next
Question # 16
In file handling, sequence of characters refers to _______
Choose an answer
Text stream
File stream
Binary stream
Character stream
Previous
Skip
Next
Question # 17
An array script should be:
Choose an answer
Int
Float
Double
An array
Previous
Skip
Next
Question # 18
A file is stored in?
Choose an answer
RAM
Hard disk
ROM
Cache
Previous
Skip
Next
Question # 19
There are _______ types of streams
Choose an answer
1
2
3
Many
Previous
Skip
Next
Question # 20
If programs get input data from data file and also send output into data file, it is called
Choose an answer
Files
File processing
Data files
File Handling
Previous
Skip
Next
Question # 21
Which of the following function is used to write a string to a file?
Choose an answer
puts()
putc()
fputs()
fget()
Previous
Skip
Next
Question # 22
A file is stored in?
Choose an answer
RAM
Hard disk
ROM
Cache
Previous
Skip
Next
Back