Programming - Introduction to OOPS
You Are Here :: Home > JAVA > Introduction to OOPS - General Questions
1.
Java is designed around the principle of ____________________________________
A.
Object Oriented Programming
B.
low level programming
C.
objects
D.
class
Answer: Option A
Explanation:
Java is designed around the principles of object oriented programming
2.
object-oriented programming focuses on _________________ before anything else.
A.
class
B.
object
C.
data
D.
abstraction
Answer: Option C
Explanation:
object-oriented programming focuses on data before anything else.
3.
Every object have ___________________________________________
A.
state
B.
behaviour
C.
both
D.
none of these
Answer: Option C
Explanation:
Every object has a state. That is, at any point in time it can be described from the data it contains.Every object has behaviors. That is, an object has a certain set of actions that it can perform.
4.
To modify the data in one of the object's fields, one of its methods must be called. This is called ____________
A.
Data Encapsulation
B.
Data encryption
C.
Data binding
D.
Data Hiding
Answer: Option A
Explanation:
to modify the data in one of the object's fields, one of its methods must be called. This is called Data Encapsulation
5.
_________________ are the important entities in object oriented method
A.
Objects
B.
Class
C.
Methods
D.
Functions
Answer: Option A
Explanation:
Objects are important run time entities on object oriented method.
6.
What is the use of main method?
A.
Start the execution of the program
B.
Stop the execution of the program
C.
abort
D.
none of these
Answer: Option A
Explanation:
Main() method is used to start the execution of the program.
next »