Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : java - JAVA METHODS
JAVA METHODS
00:00:00
English
Hindi
Question No# :
01
out of 18
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
out of 18
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# :
03
out of 18
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# :
04
out of 18
Methods are contained in
Methods are contained in
A.
Class
Class
B.
Object
Object
C.
Body of loop
Body of loop
D.
None of these
None of these
Question No# :
05
out of 18
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# :
06
out of 18
A static function
A static function
A.
should be called when an object is destroyed
should be called when an object is destroyed
B.
is closely connected with an individual object of a class
is closely connected with an individual object of a class
C.
can be called using the class name and function
can be called using the class name and function
D.
is used when a dummy object must be created
is used when a dummy object must be created
Question No# :
07
out of 18
The access specifier, return type and the function signature together is known as
The access specifier, return type and the function signature together is known as
A.
Prototype
Prototype
B.
method body
method body
C.
calling of method
calling of method
D.
None of these
None of these
Question No# :
08
out of 18
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# :
09
out of 18
One of the practical implementation of polymorphism is
One of the practical implementation of polymorphism is
A.
Overloading
Overloading
B.
Overlapping
Overlapping
C.
Abstraction
Abstraction
D.
Encapsulation
Encapsulation
Question No# :
10
out of 18
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# :
11
out of 18
What is the use of this keyword in java
जावा में this कीवर्ड का क्या उपयोग है
A.
It refers to current object
It refers to current object
B.
It is a variable which contains value
It is a variable which contains value
C.
It refers to previous object
It refers to previous object
D.
None of the above
None of the above
Question No# :
12
out of 18
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# :
13
out of 18
The function name and the parameter list together is known as
The function name and the parameter list together is known as
A.
function signature
function signature
B.
function Autograph
function Autograph
C.
function nick name
function nick name
D.
function attribute
function attribute
Question No# :
14
out of 18
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# :
15
out of 18
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
Question No# :
16
out of 18
In Java functions are known as
In Java functions are known as
A.
Method
Method
B.
Class
Class
C.
Abstraction
Abstraction
D.
Inheritance
Inheritance
Question No# :
17
out of 18
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# :
18
out of 18
Impure functions uses call by
Impure functions uses call by
A.
Value
Value
B.
Reference
Reference
C.
Self
Self
D.
Other package
Other package
Latest Current Affairs 2024
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2024
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz