Basics of Java Programming (Classes and Objects).

PRE TEST :


Question 1:
A process that involves recognizing and focusing on the important characteristics of a situation or object is known as?

Encapsulation
Polymorphism
Abstraction
Inheritance


Question 2:
Which statement is true regarding an object?
An object is what classes instantiated are from
An object is an instance of a class
An object is a variable
An object is a reference to an attribute


Question 3:
The wrapping up of data and functions into a single unit is called?
Encapsulation
Abstraction
Data Hiding
Polymorphism


Question 4:
In object-oriented programming, new classes can be defined by extending existing classes. This is an example of?
Encapsulation
Interface
Composition
Inheritance


Question 5:
Which of these class is superclass of every class in Java?
String class
Object class
Abstract class
None of the above.


Question 6:
What is the process of defining a method in terms of itself, that is a method that calls itself?
Polymorphism
Abstraction
Encapsulation
Recursion


Question 7:
Which of these method of Object class can clone an object?
Objectcopy()
copy()
Object clone()
clone()


Number of score out of 7 = Score in percentage =