14th Chapter

ICS Part 2 Computer Science Chapter 14 Online Test MCQ's

12th Class ICS Computer Science Chapter 14 Online MCQ Test for (File Handling in "C")

ICS Part 2 Computer Science Online
Chapter 14 Test

Start Chapter 14 Test

12th Class ICS Computer Science Chapter 14 Online MCQ Test for (File Handling in "C")

Sr. # Questions Answers Choice
1 Which of the following character is used to mark the end of the string?
  • A. \0
  • B. /0
  • C. \a
  • D. \n
2 On successfully closing a file, the fclose() returns?
  • A. Null
  • B. 0
  • C. 1
  • D. File pointer
3 A file is stored in?
  • A. RAM
  • B. Hard Disk
  • C. ROM
  • D. Catche
4 which of the following functions is used to write character to a file?
  • A. putc()
  • B. putch()
  • C. fputs()
  • D. fgets()
5 Which of the following are file handing functions?
  • A. fpriintf()
  • B. fscanf()
  • C. Both a and b
  • D. make()
6 Which of the following functions is used to read character from a file?
  • A. getc()
  • B. putc()
  • C. fputs()
  • D. fgets()
7 An array script should be:
  • A. int
  • B. float
  • C. double
  • D. An array
8 Which mode opens only an existing file for both reading and writing?
  • A. "w"
  • B. "w+"
  • C. "r+"
  • D. "a+"
9 If fptr=fopen(*Data.txt","r") statement is used to open a file then what would be the necessary condition?
  • A. The file must already exist
  • B. The file should be data file only
  • C. The file must contain valid student data
  • D. The type of file must be read only
10 Which of the following functions is used to write a string to a file?
  • A. puts()
  • B. putc()
  • C. fputs()
  • D. fgets()

Top Scorers of Computer Science Ics Part 2 Chapter 14 Online Test

M

Muniza Khalid

Lahore08 - May - 2025

10/10
41 Sec
S

Shabana Naeem

Lahore22 - Apr - 2025

10/10
44 Sec
M

Momina Ishtiaq

Lahore14 - May - 2025

10/10
02 Mins 24 Sec
M

Muniza Khalid

Lahore08 - May - 2025

9/10
36 Sec
M

Muniza Khalid

Lahore08 - May - 2025

9/10
53 Sec
R

Rose Gold

Lahore13 - May - 2025

9/10
01 Mins 17 Sec
S

Shabana Naeem

Lahore14 - Apr - 2025

9/10
01 Mins 18 Sec
I

Ibrahim Dar

Lahore22 - Apr - 2025

9/10
01 Mins 19 Sec
S

Subhan Rajpoot

Lahore13 - May - 2025

9/10
01 Mins 20 Sec
M

Momina Ishtiaq

Lahore14 - May - 2025

9/10
01 Mins 26 Sec
R

Roman Shah

Lahore06 - Apr - 2025

9/10
01 Mins 52 Sec
M

Minahil Ahsan

Lahore13 - May - 2025

9/10
02 Mins
M

Muniza Khalid

Lahore08 - May - 2025

8/10
49 Sec
M

Momina Ishtiaq

Lahore23 - May - 2025

8/10
50 Sec
S

Subhan Rajpoot

Lahore13 - May - 2025

8/10
01 Mins 20 Sec

Share your comments questions here
Sort By:
X

Sign in

to continue to ilmkidunya.com

inquiry-image

Free Admission Advice

Fill the form. Our admission consultants will call you with admission options.

X

Sign in

to continue to ilmkidunya.com

X

Sign in

to continue to ilmkidunya.com

X

Forgot Password

to continue to ilmkidunya.com

X

Register Type

Please Provide following information to Register

  • Student
  • Tutor
  • Consultant
  • Employer