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
Computer Science Ics Part 2 Chapter 14 Online Test MCQs With Answers
Question # 1
An array script should be:
Choose an answer
int
float
double
An array
Previous
Skip
Next
Question # 2
which of the following functions is used to write character to a file?
Choose an answer
putc()
putch()
fputs()
fgets()
Previous
Skip
Next
Question # 3
If fptr=fopen(*Data.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 # 4
Which of the following character is used to mark the end of the string?
Choose an answer
\0
/0
\a
\n
Previous
Skip
Next
Question # 5
Which mode opens only an existing file for both reading and writing?
Choose an answer
"w"
"w+"
"r+"
"a+"
Previous
Skip
Next
Question # 6
Which of the following are file handing functions?
Choose an answer
fpriintf()
fscanf()
Both a and b
make()
Previous
Skip
Next
Question # 7
A file is stored in?
Choose an answer
RAM
Hard Disk
ROM
Catche
Previous
Skip
Next
Question # 8
Which of the following function is used to copy a string to an array of characters?
Choose an answer
strcpy
strpcy
strycp
copy
Previous
Skip
Next
Question # 9
On successfully closing a file, the fclose() returns?
Choose an answer
Null
0
1
File pointer
Previous
Skip
Next
Question # 10
Which of the following functions is used to read character from a file?
Choose an answer
getc()
putc()
fputs()
fgets()
Previous
Skip
Next
Question # 11
Which of the following functions is used to write a string to a file?
Choose an answer
puts()
putc()
fputs()
fgets()
Previous
Skip
Next
Back