Programming - Classes and Objects
You Are Here :: Home > JAVA > Classes and Objects - General Questions
31. |
_____________are the basic building blocks of oop.
|
A. |
Class |
B.
|
Objects |
C.
|
Methods
|
D.
|
Variables
|
|
Answer: Option B
Explanation:
Objects are the basic building blocks of oop. |
|
32. |
The____________of an object is indicated by a set of attributes and the values of these attributes.
|
A. |
State |
B.
|
behaviour |
C.
|
identity
|
D.
|
all the above
|
|
Answer: Option A
Explanation:
The State of an object is indicated by a set of attributes and the values of these attributes. |
|
33. |
The____________of an object refers to a change of it's state over a period of time.
|
A. |
State |
B.
|
behaviour |
C.
|
identity
|
D.
|
all the above
|
|
Answer: Option B
Explanation:
The behaviour of an object refers to a change of it's state over a period of time. |
|
34. |
An__________________is an instance if class.
|
A. |
object |
B.
|
class |
C.
|
variables
|
D.
|
methods
|
|
Answer: Option A
Explanation:
An Object is an instance if class. |
|
35. |
How many ways to create an object?
|
|
Answer: Option D
Explanation:
There are 4 ways to create an object. |
|
36. |
How to create an Object?
|
A. |
using new operator |
B.
|
using factory method |
C.
|
using new Instance()
|
D.
|
all the above
|
|
Answer: Option A
Explanation:
To create an Object using a new operator. |
|
« prev
next »