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 functions is used to write character to a file?
  • A. putc()
  • B. putch()
  • C. fputs()
  • D. fgets()
2 Which of the following function is used to copy a string to an array of characters?
  • A. strcpy
  • B. strpcy
  • C. strycp
  • D. copy
3 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
4 A file is stored in?
  • A. RAM
  • B. Hard Disk
  • C. ROM
  • D. Catche
5 On successfully closing a file, the fclose() returns?
  • A. Null
  • B. 0
  • C. 1
  • D. File pointer
6 Which mode opens only an existing file for both reading and writing?
  • A. "w"
  • B. "w+"
  • C. "r+"
  • D. "a+"
7 An array script should be:
  • A. int
  • B. float
  • C. double
  • D. An array
8 Which of the following character is used to mark the end of the string?
  • A. \0
  • B. /0
  • C. \a
  • D. \n
9 Which of the following functions is used to read character from a file?
  • A. getc()
  • B. putc()
  • C. fputs()
  • D. fgets()
10 Which of the following are file handing functions?
  • A. fpriintf()
  • B. fscanf()
  • C. Both a and b
  • D. make()

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

A

Abeera Imtiaz

Lahore18 - Feb - 2025

10/10
33 Sec
S

Sadia Khaliq

Lahore03 - Mar - 2025

10/10
34 Sec
A

Abeera Imtiaz

Lahore18 - Feb - 2025

10/10
36 Sec
F

Fahad Ali Alvi

Lahore18 - Feb - 2025

10/10
37 Sec
M

Mariam Rani

Lahore18 - Feb - 2025

10/10
49 Sec
Z

Zaryab Bhaseen86

Lahore10 - Feb - 2025

10/10
49 Sec
A

Abeera Imtiaz

Lahore18 - Feb - 2025

10/10
57 Sec
S

Sadia Khaliq

Lahore03 - Mar - 2025

10/10
01 Mins 09 Sec
A

Abeera Imtiaz

Lahore18 - Feb - 2025

10/10
01 Mins 30 Sec
C

Ch Rehman Ali

Lahore12 - Feb - 2025

10/10
02 Mins 22 Sec
E

Edmora Course

Lahore28 - Feb - 2025

9/10
29 Sec
E

Edmora Course

Lahore28 - Feb - 2025

9/10
36 Sec
F

Fahad Ali Alvi

Lahore18 - Feb - 2025

9/10
37 Sec
R

Rida Virk

Lahore06 - Jan - 2025

9/10
50 Sec
Z

Zaryab Bhaseen86

Lahore10 - Feb - 2025

9/10
57 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