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 can return a value Function Procedure Both A and B None of above
2 A value that can be sent to a function is known as Returned value Indicator Argument Automatic variables
3 Function definition can be written Before main() function After main() function In a separate file All of these
4 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)
5 In a C program, two functions can have Same name Same parameters Same name and same Parameters Same name but different parameters
6 Function declaration consists of Function name Function return type Number and types of parameters All of these
7 A built-In function Cannot be redefined Can be redefined Cannot return a value Should be redefined
8 The printf is a Built-in function User-defined function Local function Keyword
9 Formal arguments are also called Actual arguments Dummy arguments Original arguments Referenced arguments
10 The name of actual and formal parameters May or may not be same Must be same Must be different Must be In lower case
11 Memory is allocated to a local variable at the time of its Declaration Destruction Definition First reference
12 Global variables are created In RAM ROM Hard disk Cache
13 Function prototype for built-in functions are specified In Source file Header file Object file Image file
14 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
15 Which of the following is type of function available in C language? User-defined Arithmetic function Both a and b Library function
Download This Set