More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
ECAT Computer Science Chapter 12 Introduction to C Language Online Test MCQs With Answers
Question # 1
Which of the following Is NOT a valid function declaration?
Choose an answer
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)
Previous
Skip
Next
Question # 2
The parameters in function declaration is called:
Choose an answer
Formal parameters
Actual parameters
Both A and B
Returned parameters
Previous
Skip
Next
Question # 3
The name of actual and formal parameters:
Choose an answer
May or may not be same
Must be same
Must be different
Must be in lower case
Previous
Skip
Next
Question # 4
Function declaration consists of
Choose an answer
Function name
Function return type
Number and types of parameters
All of these
Previous
Skip
Next
Question # 5
In a C program, two functions can have
Choose an answer
Same name
Same parameters
Same name and same Parameters
Same name but different parameters
Previous
Skip
Next
Question # 6
A built-in function:
Choose an answer
Cannot be redefined
Can be redefined
Cannot return a value
Should be redefined
Previous
Skip
Next
Question # 7
A variable declaration outside any function is known as:
Choose an answer
Global variable
Local variable
External variable
Static variable
Previous
Skip
Next
Question # 8
The printf is a
Choose an answer
Built-in function
User-defined function
Local function
Keyword
Previous
Skip
Next
Question # 9
Memory is allocated to a local variable at the time of its
Choose an answer
Declaration
Destruction
Definition
First reference
Previous
Skip
Next
Question # 10
Which of the following can return a value
Choose an answer
Function
Procedure
Both A and B
None of above
Previous
Skip
Next
Question # 11
Which of the following is incorrect?
Choose an answer
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
Previous
Skip
Next
Question # 12
Which of the following steps takes place when function is called:
Choose an answer
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
Previous
Skip
Next
Question # 13
Global variables are created In
Choose an answer
RAM
ROM
Hard disk
Cache
Previous
Skip
Next
Question # 14
Function definition can be written
Choose an answer
Before main() function
After main() function
In a separate file
All of these
Previous
Skip
Next
Question # 15
What is a variable name that is used by a function to receive passed values?
Choose an answer
Function
Parameter
Expression
Constant
Previous
Skip
Next
Question # 16
In a C program, two functions can have:
Choose an answer
Same name
Same parameters
Same name and same parameters
Same name but different parameters
Previous
Skip
Next
Back