×
14th Chapter

12th Class Computer Science Chapter 14 Test

Here you can prepare 14th Class Computer Science Chapter 13 File Handling in "C" Test. Click the button for 100% free full practice test.

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

This online test contains MCQs about following topics:

- Overview
- While Statement
- Do While Loop
- Nested Loop
- Goto Statement

ICS Part 2 Computer Sci Ch. 14 Test
ic

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

Sr. # Questions Answers Choice
1 Which mode opens only an existing file for both reading and writing?
  • A. "w"
  • B. "w+"
  • C. "r+"
  • D. "a+"
2 An array script should be:
  • A. int
  • B. float
  • C. double
  • D. An array
3 On successfully closing a file, the fclose() returns?
  • A. Null
  • B. 0
  • C. 1
  • D. File pointer
4 Which of the following function is used to copy a string to an array of characters?
  • A. strcpy
  • B. strpcy
  • C. strycp
  • D. copy
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 functions is used to write a string to a file?
  • A. puts()
  • B. putc()
  • C. fputs()
  • D. fgets()
7 which of the following functions is used to write character to a file?
  • A. putc()
  • B. putch()
  • C. fputs()
  • D. fgets()
8 Which of the following functions is used to read character from a file?
  • A. getc()
  • B. putc()
  • C. fputs()
  • D. fgets()
9 Which of the following character is used to mark the end of the string?
  • A. \0
  • B. /0
  • C. \a
  • D. \n
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

M

Mrs Murslin

Lahore28 - Apr - 2024

10/10
33 Sec
K

Khubaib Khan

Lahore29 - Apr - 2024

10/10
01 Mins 20 Sec
A

Areeha Waheed

Lahore07 - Jul - 2024

10/10
01 Mins 23 Sec
A

Aima

Lahore29 - Apr - 2024

9/10
01 Mins 22 Sec
U

Umama Rashid

Lahore17 - Jul - 2024

9/10
01 Mins 35 Sec
A

Areeba Malix

Lahore02 - Jun - 2024

9/10
02 Mins 12 Sec
B

Bushra Khawaja

Lahore11 - Jul - 2024

8/10
51 Sec
H

High Five

Lahore28 - Jun - 2024

8/10
01 Mins 31 Sec
A

Ahsan Mahmood

Lahore15 - May - 2024

8/10
01 Mins 32 Sec
M

Muhammad Abdullah

Lahore28 - Apr - 2024

8/10
07 Mins 24 Sec
M

Mateen Younis

Lahore28 - Apr - 2024

7/10
46 Sec
M

Mrs Murslin

Lahore28 - Apr - 2024

7/10
01 Mins 29 Sec
M

Mrs Murslin

Lahore28 - Apr - 2024

7/10
01 Mins 29 Sec
A

Areeba Malix

Lahore02 - Jun - 2024

7/10
01 Mins 45 Sec
M

Muhammad Abdullah

Lahore27 - Apr - 2024

7/10
01 Mins 56 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