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
Computer Science Ics Part 2 Chapter 13 Online Test MCQs With Answers
Question # 1
The function definition consists of:
Choose an answer
Function header or function declaration
Function body
Both a and b
None
Previous
Skip
Next
Question # 2
The first line of function definition is known as:
Choose an answer
Function header
Function body
Arguments
Return type
Previous
Skip
Next
Question # 3
Formal arguments are also called:
Choose an answer
Actual arguments
Dummy arguments
Original arguments
Referenced arguments
Previous
Skip
Next
Question # 4
Memory is allocated to a local variable at the time of the :
Choose an answer
Declaration
Destruction
Definition
First reference
Previous
Skip
Next
Question # 5
A type of function that is available as part of language is known as:
Choose an answer
User-defined function
Library function
Sun-program
Both a and b
Previous
Skip
Next
Question # 6
Local variables are also called:
Choose an answer
Automatic variables
Normal variables
Global variables
Basic variables
Previous
Skip
Next
Question # 7
Which of the following is true about a function call?
Choose an answer
Stops the execution of the program
Transfer control to the called function
Transfer control to the main function
Resumes the execution of the function
Previous
Skip
Next
Question # 8
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 # 9
The printf is a :
Choose an answer
Build-in function
User-defined function
Local function
Keyword
Previous
Skip
Next
Question # 10
A variable declared inside a function is known as:
Choose an answer
Local variable
Global variable
Automatic variable
A and C
Previous
Skip
Next
Question # 11
The parameters in function declaration are called:
Choose an answer
Formal parameters
Actual parameters
Both a and b
Returned parameters
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 function body are executed
The control returns back to the calling funciton
All of these
Previous
Skip
Next
Question # 13
Which of the following is incorrect?
Choose an answer
A function can call another function
A function can be called many times in a program
A function can return values input by the user
A function must at least one variable parameter
Previous
Skip
Next
Question # 14
Function prototype for built-in-function are specified in:
Choose an answer
Source file
Header file
Object file
Image files
Previous
Skip
Next
Back