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
A variable declared inside a function is known as:
Local variable Global variable Automatic variable A and C
2 The scope of a variable refers to its: Length Name Accessibility Data type
3 Which statement is used by a function used to return a value: Given Return Continue Send
4 Multiple arguments to a function are separated by: Coments Semicolons Colons Commas
5 The parameters in function declaration is called: Returned parameters Both A and B Actual parameters Formal parameters
6 The parameters in function declaration is called: Formal parameters Actual parameters Both A and B Returned parameters
7 Which of the following is incorrect? A function can call another function A function can be calling many times in a program A function can return values input by user A function must have at least one value parameter
8 What is a variable name that is used by a function to receive passed values? Function Parameter Expression Constant
9 Which of the following steps takes place when function is called: The control moves to the function that is called All statements in the body of function are executed The control returns back to the calling function All of these
10 The statement that activates a function is known as: Function call Function output Function design Function definition
11 The first line of function definition is known as: Function header Function body Arguments Return type
12 The function definition consists of: Function header of function declaration Function body Both A and B None of these
13 The process of sending an argument to a function is called: Sending Filtering Delivering Passing
14 A value that can be sent to a function is known as: Returned value Indicator Argument Automatic variable
15 Function declaration can be written: Before main() function After main() function In a separate file All of these
16 Which of the following is not valid function declaration? Int ave3(int a, int b, int c); Int 3ave(int a, int b, int c); int ave_3(int, int, int); int ave_3(int a1, int a2, int a3);
17 In a C program, two functions can have: Same name Same parameters Same name and same parameters Same name but different parameters
18 Function declaration consist: Function name Function return type Number and types of parameters All of these
19 A built-in function: Cannot be redefined Can be redefined Cannot return a value Should be redefined
20 The printf is a: Built-in function User defined function Local function Keyword
21 Formal arguments are also called: Actual arguments Dummy arguments Original arguments Referenced arguments
22 The name of actual and formal parameters: May or may not be same Must be same Must be different Must be in lower case
23 Variable is allocated to a local variable at the time of its: Declaration Destruction Definition First reference
24 Global variables are created in: RAM ROM Hard disk Cache
25 Function prototype for built-in functions are specified in: Source file Header file Object file Image file
26 Another name for built in function: User defined function Library function Arithmetic function Both A and B
27 Which of the following is type of function available in C language? User defined Built in Subprogram Both A and B
28 What is the final value of x after executing the following code:
for (int x=0; x<10;x++)
10 9 0 1
29 When does the code block following while (x<100) execute? When x is less than one hundred When x is greater than hundred When x is equal to hundred None
30 The body of for loop with single statement ends with: Right Bracket ] Right brace } Comma , Semi-colon ;
Download This Set

Is this page helpful?