NAT I Computer Science With Answers

NAT I Computer Science

Sr. # Questions Answers Choice
1 EOF stands for Execution of file End of file Extermination of file Exit of file
2 In C every valid string ends with Null character 0 (zero) 1 (one) String
3 A,,,,,,,,,,,,cannot be stored in a text file. Picture Numbers Symbols Characters
4 An opened file must be_________before terminating the program Closed Saved Compiled Retrieved
5 The function is used to open a file Fopen Popes fgets pgets
6 Which of the following separates the name and telephone number fields in each record? / \ # !
7 The gets() functions reads the next character from the file and returns it as a(n),,,,,,,,,,,and if error occurs returns EOF Float Integer String Double
8 A fire pointer is a(n),,,,,,,,,,,of type File that is defined in stdio.h. String Constant Variable Array
9 The fopen () function returns the,,,,,,,,,pointer if it fails to open the file for some reason. 0 (zero) NULL 1 (one) File
10 A text file has ,,,,,,,,,,,,,,,,,,,,,size 20 bits 20 bytes fixed No fixed
11 A binary stream is a sequence of bytes with a.....................correspondence to those on the external devices One-to-many Many-to-many Many-to-one One-to-one
12 Which of the following functions is used to write a string to a file? Puts() Pute() fputs() fgets()
13 Which of the following mode open only an existing file for both reading and writing "w" "w+"<br> "r+" "a+"
14 A file is stored in RAM Hard disk ROM Cache
15 An external variable is variable can be referenced in a declaration In main () only In the first function that uses it In any function that uses it Outside of any function
16 An external variable is defined in a declaration In main () only In the first function that uses it In any function that mean it Outside of any function
17 Which of the following can be passed to a function via arguments? Constants Variables (with values) Expressions Preprocessor directives
18 The variables commonly used in C functions are accessible To all other functions To only one function To specific functions To special functions
19 How many types of functions are present in C-language? One Two Three Four
20 A built-in function Cannot be redefined Can be redefined Cannot return a value Should be redefined
Download This Set

Is this page helpful?