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

MCQ's Test For Chapter 0 "Computer Science Ics Part 2 Chapter 14 Online Test"

Try The MCQ's Test For Chapter 0 "Computer Science Ics Part 2 Chapter 14 Online Test"

  • Total Questions10

  • Time Allowed15

Computer Science Ics Part 2 Chapter 14 Online Test

00:00
Question # 1

Which of the following functions is used to write a string to a file?

Question # 2

which of the following functions is used to write character to a file?

Question # 3

Which of the following functions is used to read character from a file?

Question # 4

On successfully closing a file, the fclose() returns?

Question # 5

Which of the following character is used to mark the end of the string?

Question # 6

Which of the following function is used to copy a string to an array of characters?

Question # 7

Which mode opens only an existing file for both reading and writing?

Question # 8

Which of the following are file handing functions?

Question # 9

An array script should be:

Question # 10

A file is stored in?

Prepare Complete Set Wise Chapter 0 "Computer Science Ics Part 2 Chapter 14 Online Test" MCQs Online With Answers


Topic Test

00:00
14th Chapter

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

Top Scorers Of Chapter 0 "Computer Science Ics Part 2 Chapter 14 Online Test" MCQ`s Test

  • S
    suba mitesh 08 - Oct - 2024 00 Min 18 Sec 10/10
  • M
    Mrs Murslin 28 - Apr - 2024 00 Min 33 Sec 10/10
  • A
    Ahmar Asif 03 - Feb - 2026 00 Min 59 Sec 10/10
  • K
    Khubaib Khan 29 - Apr - 2024 01 Min 20 Sec 10/10
  • A
    Areeha Waheed 07 - Jul - 2024 01 Min 23 Sec 10/10
  • F
    Fayyaz Ahmad 14 - Oct - 2024 01 Min 35 Sec 10/10
  • M
    Minahil haq 19 - Oct - 2025 01 Min 57 Sec 10/10
  • R
    Rida Virk 06 - Jan - 2025 00 Min 50 Sec 9/10
  • D
    David Navid 05 - Nov - 2024 00 Min 51 Sec 9/10
  • M
    Moeez Nasim 24 - Dec - 2024 00 Min 59 Sec 9/10
  • A
    Abdulmoiz 11 - Nov - 2024 01 Min 07 Sec 9/10
  • A
    Aima 29 - Apr - 2024 01 Min 22 Sec 9/10
  • W
    Waseem Akram 31 - Oct - 2024 01 Min 34 Sec 9/10
  • U
    Umama Rashid 17 - Jul - 2024 01 Min 35 Sec 9/10
  • A
    Ayesha Javed 26 - Oct - 2024 01 Min 52 Sec 9/10

ICS Part II Computer Science Chapter 0 Important MCQ's

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

Test Questions

Is this page helpful?