ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ CORE JAVA QUIZ CORE JAVA MCQ Questions CORE JAVA Questions Answer for Interview
English
Hindi
Question No. -
81
Report Bug
Name the operator that is used to allocate memory space for an object.
Name the operator that is used to allocate memory space for an object.
A.
Dot
Dot
B.
New
New
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
82
Report Bug
What is the name given to a memory location called in Java?
What is the name given to a memory location called in Java?
A.
Variable
Variable
B.
Constant
Constant
C.
Data Type
Data Type
D.
None of these
None of these
Question No. -
83
Report Bug
Which are the data types used in Java?
Which are the data types used in Java?
A.
Primitive data type
Primitive data type
B.
Composite data type
Composite data type
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
84
Report Bug
How are the characteristics of an object represented in a class?
How are the characteristics of an object represented in a class?
A.
Data Members
Data Members
B.
Member Functions
Member Functions
C.
Access specifiers
Access specifiers
D.
None of these
None of these
Question No. -
85
Report Bug
Which among the following is used to change the state of an object?
Which among the following is used to change the state of an object?
A.
Data Members
Data Members
B.
Name of the class
Name of the class
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
86
Report Bug
How is encapsulation implemented in a program?
How is encapsulation implemented in a program?
A.
Using a class
Using a class
B.
Using only Functions
Using only Functions
C.
Using only Variables
Using only Variables
D.
None of these
None of these
Question No. -
87
Report Bug
Information passed to a method through arguments is called
Information passed to a method through arguments is called
A.
Message
Message
B.
Variables
Variables
C.
Numbers
Numbers
D.
Data
Data
Question No. -
88
Report Bug
What among the following is not a component of a message?
What among the following is not a component of a message?
A.
An object identifier
An object identifier
B.
A method name
A method name
C.
Arguments
Arguments
D.
Data Members
Data Members
Question No. -
89
Report Bug
How many objects can you create from a class?
How many objects can you create from a class?
A.
One
One
B.
Two
Two
C.
Three
Three
D.
Any number
Any number
Question No. -
90
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. -
91
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. -
92
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. -
93
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. -
94
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. -
95
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. -
96
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. -
97
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. -
98
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. -
99
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
Question No. -
100
Report Bug
In Java functions are known as
In Java functions are known as
A.
Method
Method
B.
Class
Class
C.
Abstraction
Abstraction
D.
Inheritance
Inheritance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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