Section 1:
Fundamental Object-Oriented Concepts
( click here for the exam objectives )
 
Question 1-1
Given the following code. Select the correct setter and getter method for the property limit according to the JavaBeans convention.
public class PropertyCheck {
    private int limit;
}
Select all correct answers :
a. public void setLimit(int limit) { this.limit=limit; }
b. public int setLimit(int limit) { return this.limit; }
c. public void getLimit(int limit) { this.limit=limit; }
d. public int getLimit() { return this.limit; }
e. public int setLimit() { return this.limit; }
Answer

Question 1-2
Which of the following statements are true ?
Select all correct answers :
a. A class can extend more than one class
b. A class can implement more than one interface
c. An interface can extend more than one interface
d. An interface can implement more than one interface
Answer

Question 1-3
Which of the following primitives are known as the floating point datatypes ?
Select all correct answers :
a. int
b. short
c. double
d. float
e. char
Answer

Question 1-4
A book has one or more pages. Which of the following concepts characterize it best ?
Select the correct answer :
a. Inheritance
b. Composition
c. Association
d. Specialization
Answer

Question 1-5
A subclass is usually more specific than his superclass.
Select the correct answer :
a. The statement is true
b. The statement is false
Answer


How do you rate this mock exam ?
very easy easy medium advanced hard
Feel free to use the feedback formular to give us detailed comments or suggestions .

 
 
 
 
last modified : 6/21/2012 - 20:38