ECAT Computer Science Chapter 12 Introduction to C Language Online Test With Answers

image
image
image

ECAT Computer Science Chapter 12 Introduction to C Language Online Test

Sr. # Questions Answers Choice
1 Which of the following looks for the prototypes of functions used in a program? Linker Loader Compiler Parser
2 Which of the following is true about a function call? Stops to execution of the program Transfer control to the called function Transfer control to the main function Resumes the execution of the program
3 A variable declaration outside any function is known as: Global variable Local variable External variable Static variable
4
A variable declared inside a function is known as:
Local variable Global variable Automatic variable A and C
5 The scope of a variable refers to its: Length Name Accessibility Data type
6 Which statement is used by a function used to return a value: Given Return Continue Send
7 Multiple arguments to a function are separated by: Coments Semicolons Colons Commas
8 The parameters in function declaration is called: Both A and B Actual parameters Returned parameters Formal parameters
9 The parameters in function declaration is called: Formal parameters Returned parameters Actual parameters Both A and B
10 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
11 What is a variable name that is used by a function to receive passed values? Function Parameter Expression Constant
12 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
13 The statement that activates a function is known as: Function call Function output Function design Function definition
14 The first line of function definition is known as: Function header Function body Arguments Return type
15 The function definition consists of: Function header of function declaration Function body Both A and B None of these
Download This Set