Programming - Introduction to OOPS
You Are Here :: Home > JAVA > Introduction to OOPS - General Questions
13. |
Can we refer instance variables inside of a static method?
|
A. |
Yes |
B.
|
No |
C.
|
Cant say
|
D.
|
May be
|
|
Answer: Option B
Explanation:
No,we cant refer instance variables inside of a static method? |
|
14. |
Which key word is used to prevent Overriding?
|
A. |
Final |
B.
|
Super |
C.
|
Class
|
D.
|
Object
|
|
Answer: Option A
Explanation:
Final is the keyword used for preventing overriding |
|
15. |
Class is a module of _______________________.
|
A. |
class and object |
B.
|
object and class |
C.
|
class only
|
D.
|
class and method
|
|
Answer: Option D
Explanation:
Class is a module of class and method. |
|
16. |
In C programming language,functions are controlled from __________________.
|
A. |
method |
B.
|
class |
C.
|
objects
|
D.
|
main()
|
|
Answer: Option D
Explanation:
From main() only functions are controlled. |
|
17. |
Oops approach is using _______________________ methodology.
|
A. |
class |
B.
|
object |
C.
|
both class and object
|
D.
|
none of these
|
|
Answer: Option C
Explanation:
Oops approach is using class and objects methodologies. |
|
18. |
Features of oops _______________
|
A. |
class/object |
B.
|
Encapsulation |
C.
|
abstraction
|
D.
|
all the above
|
|
Answer: Option D
Explanation:
Class/Object,Encapsulation,Abstraction,polymorphism and so on.all are features of Oops. |
|
« prev
next »