ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ JAVA - JAVA METHODS MCQ Questions
English
Hindi
Question No. -
01
Report Bug
Once a function is defined, it can be invoked repeatedly. What is this feature called?
Once a function is defined, it can be invoked repeatedly. What is this feature called?
A.
Interface
Interface
B.
Reusability
Reusability
C.
Restructuring
Restructuring
D.
All of these
All of these
Question No. -
02
Report Bug
If a function does not return any value, its return type should be:
If a function does not return any value, its return type should be:
A.
int
int
B.
no-return
no-return
C.
void
void
D.
empty
empty
Question No. -
03
Report Bug
A function that computes a value and returned is called:
A function that computes a value and returned is called:
A.
Computational function
Computational function
B.
Manipulative function
Manipulative function
C.
Procedural function
Procedural function
D.
None of these
None of these
Question No. -
04
Report Bug
A type of parameter that are used to identify what data is to be passed to a function is called:
A type of parameter that are used to identify what data is to be passed to a function is called:
A.
Formal parameter
Formal parameter
B.
Actual parameter
Actual parameter
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
05
Report Bug
The parameter list in a function definition is called:
The parameter list in a function definition is called:
A.
Function prototype
Function prototype
B.
Function signature
Function signature
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
06
Report Bug
The first line of the function definition is called:
The first line of the function definition is called:
A.
Function prototype
Function prototype
B.
Function signature
Function signature
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
07
Report Bug
The number of values that a function can return is:
The number of values that a function can return is:
A.
1
1
B.
2
2
C.
3
3
D.
4
4
Question No. -
08
Report Bug
A local variable in a function has its scope:
A local variable in a function has its scope:
A.
Limited within the function
Limited within the function
B.
Can be accessed anywhere within the same class
Can be accessed anywhere within the same class
C.
No limitation at all
No limitation at all
D.
None of these
None of these
Question No. -
09
Report Bug
Which among the following is a valid name for a function?
Which among the following is a valid name for a function?
A.
function
function
B.
2function
2function
C.
fun in action
fun in action
D.
fun#
fun#
Question No. -
10
Report Bug
Which among the following is not a valid access specifier?
Which among the following is not a valid access specifier?
A.
public
public
B.
private
private
C.
partially
partially
D.
protected
protected
1
2
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad