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 printf is a :
Choose an answer
Build-in function
User-defined function
Local function
Keyword
Previous
Skip
Next
Question # 2
The scope of a variable refers to its:
Choose an answer
Lengh
Name
Accessibility
Data type
Previous
Skip
Next
Question # 3
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 # 4
Which statement is used by a function use to return a value?
Choose an answer
Give
Return
Continue
Send
Previous
Skip
Next
Question # 5
The first line of function definition is known as:
Choose an answer
Function header
Function body
Arguments
Return type
Previous
Skip
Next
Question # 6
A value that can be sent to a function is known as:
Choose an answer
Return value
Indicator
Argument
Automatic variable
Previous
Skip
Next
Question # 7
Function declaration consists of:
Choose an answer
Function name
Function return type
Number and types of parameters
All of these
Previous
Skip
Next
Question # 8
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, int c)
int ave3(int, int, int)
int ave_3(int a1, int b2, int c3)
Previous
Skip
Next
Question # 9
Formal arguments are also called:
Choose an answer
Actual arguments
Dummy arguments
Original arguments
Referenced arguments
Previous
Skip
Next
Question # 10
Multiple arguments to a function are separated by:
Choose an answer
Comments
Semicolons
Colons
Commas
Previous
Skip
Next
Question # 11
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
Back