Computer Science Ics Part 2 Chapter 14 Online Test With Answers

image
image
image

Computer Science Ics Part 2 Chapter 14 Online Test

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