ECAT Computer Science MCQ's Test For Full Book With Answers

ECAT Computer Science MCQ's Test For Full Book

Sr. # Questions Answers Choice
1 Which of the following is/ are file handling functions fprintf() fscanf ( ) Both A and B Make ()
2 Which of the following functions is used to copy a string to an array characters/ Strcpy Strpcy Strycp Copy
3 Which of the following characters is used to mark the end of the string \0 /0 \a \n
4 An array script should be Int Float Double An array
5 On, successfully closing a file, the fclose () returns Null 0 1 FILE pointer
6 Which of the following functions is used to write a string to a file Puts() Putc () Fputs () Fqets()
7 Which mode opens only an existing file for both reading and writing "W" "W+" "r+" "a+"
8 A file is stored in RAM Hard Disk ROM Cache
9 Which of the following can return a value Function Procedure Both A and B None of above
10 A value that can be sent to a function is known as Returned value Indicator Argument Automatic variables
11 Function definition can be written Before main() function After main() function In a separate file All of these
12 Which of the following Is NOT a valid function declaration? Int ave3(int a, Int b, Int c); Int 3ave(Int a, Int b, Iht c); int ave3(int, int, int); int ave_3(int al, int a2, Int a3)
13 In a C program, two functions can have Same name Same parameters Same name and same Parameters Same name but different parameters
14 Function declaration consists of Function name Function return type Number and types of parameters All of these
15 A built-In function Cannot be redefined Can be redefined Cannot return a value Should be redefined
16 The printf is a Built-in function User-defined function Local function Keyword
17 Formal arguments are also called Actual arguments Dummy arguments Original arguments Referenced arguments
18 The name of actual and formal parameters May or may not be same Must be same Must be different Must be In lower case
19 Memory is allocated to a local variable at the time of its Declaration Destruction Definition First reference
20 Global variables are created In RAM ROM Hard disk Cache
21 Function prototype for built-in functions are specified In Source file Header file Object file Image file
22 A type of function that is available as part of language is known as User-defined function Library function Sub-program Both a and b
23 Which of the following is type of function available in C language? User-defined Arithmetic function Both a and b Library function
24 Which statement is used to move the control to the start of loop body? Continue Break Switch Go to
25 The loop which never ends is called Infinite loop Running loop Continuous loop Nested loop
26 A loop within a loop Is called Nested loop Complex loop Infinite loop Dual loop
27 Which statement causes a loop to terminate early? Break Terminate Exit A and b
28 This loop Is a good choice when you know how mane times you want the loop to Iterate in advance of entering the loop? While Do-while For Nested
29 Which of the following loop is called counter loop? For While Do-while All
30 In which loop the condition comes before the body of the loop? While loop Do-while loop For loop B and c
Download This Set

Is this page helpful?