Correct Answer: Orange && Worng Answer: Red
1. The process that focuses on only important characteristics is known as:
View Answer
Explanation: The insulation of data from direct access by the program is called as the data abstraction.Data abstraction also called as data hiding, is the mechanism where by the code and the data it manipulates are wrapped into a single unit.
2. Which statement is true regarding an object: –
View Answer
Explanation: An object is an instance of class.
3. An object-oriented programming composition relates to
View Answer
Explanation: Composition is about an object that is made up of other objects, referred as “containment. Composition implies that the life cycles are more strongly linked, that means Whole is responsible for the life time of Part.
4. In object-oriented programming a new classes can be defined by extending existing classes
View Answer
Explanation: Inheritance is a mechanism that enables one class to inherit all of the behaviour (methods ) and attributes (instance variables) of another class.
5. Give a class name Book, which one of these is a valid constructor declaration for the class:
View Answer
Explanation: A constructor cannot specify any return type, not even void. A constructor cannot be final, static or abstract.
6. The wrapping of data and functions into a sigh unit is called
View Answer
Explanation: Not Avilable
7. Polymorphism is a characteristic of:
View Answer
Explanation: Java is object-oriented programming and Polymorphism is a features fo OOPs.
8. The numerical range of a char data type in Java:
View Answer
Explanation: Not Avilable
9. Which of the following events will cause a thread to die? i.e. called
View Answer
Explanation: A thread dies when the execution of the run( ) method ends.
10. Which of the following method is true regarding finalize ()
View Answer
Explanation: Not Avilable
11. Which of the following is valid method for declaration in Java:
View Answer
Explanation: Methods must specify a return type or are declared void.
12. The concept of multiple interface implementations in Java by:
View Answer
Explanation: Not Avilable
13. File class is included in which package.
View Answer
Explanation: Java File class is a part of java.io package.
14. What is the sequence of major events in the life cycle of an applet:
View Answer
Explanation: Applet life cycle has 5 methods init(), start(), stop(), aint() and destroy().
15. Threading provides execution of:
View Answer
Explanation: The process of executing multiple threads simultaneously is known as multithreading.
Categories
C Programming MCQsC++ Programming MCQsJAVA MCQsVisual Basic MCQsData Structure MCQsSoftware Package MCQsComputer Organization and Architecture MCQsOperating System MCQsDigital Electronics MCQsDBMS MCQsSystem Analysis and Management Information System MCQsSystem Maintenance MCQsData Communication and Networking MCQsInternet & Web Technology MCQsSoftware Engineering MCQsManagement (Common) MCQsSystem Software MCQsComputer Graphics MCQsArtificial Intelligence & Expert System MCQsE-Commerce MCQsMultimedia MCQsPower Electronics MCQsTesting & Maintenance Electrical Machine MCQsAutomatic Control System MCQsAdvance Communication System MCQsDigital Electronics MCQs