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 character to a file?

Question # 2

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

Question # 3

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

Question # 4

An array script should be:

Question # 5

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

Question # 6

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

Question # 7

A file is stored in?

Question # 8

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

Question # 9

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

Question # 10

Which of the following are file handing functions?

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
  • 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
  • M
    Musical World 04 - Apr - 2024 02 Min 05 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 mode opens only an existing file for both reading and writing?
A. "w"
B. "w+"
C. "r+"
D. "a+"
3 On successfully closing a file, the fclose() returns?
A. Null
B. 0
C. 1
D. File pointer
4 Which of the following functions is used to read character from a file?
A. getc()
B. putc()
C. fputs()
D. fgets()
5 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
6 Which of the following are file handing functions?
A. fpriintf()
B. fscanf()
C. Both a and b
D. make()
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 function is used to copy a string to an array of characters?
A. strcpy
B. strpcy
C. strycp
D. copy
10 A file is stored in?
A. RAM
B. Hard Disk
C. ROM
D. Catche

Test Questions

Is this page helpful?

Share your comments & questions here

  • No comments yet. Be the first to comment!