Object oriented concepts UE Past Papers Questions.


View All Courses

(127) Question Category: Short answers

State whether each of the following statements is true or false

  1. A subclass typically encapsulates less functionality than does its superclass.
  2. A superclass typically represents a larger number of objects than its subclass represents.
  3. The default case is required in the switch selection structure.
  4. The break statement is required in the default case of a switch selection structure.
  5. The expression(x>y && a is true if either x>y is true or a is true.
  6. The expression containing the || operator is true if either or both of its operands is true.

Answer / Solution

UNSOLVED

(128) Question Category: Short answers

What is the output of the following code assume grade is neither A nor B nor C
Switch(grade){
case`A`:
System.out.println("Great Job!");
break;

case`B`:
System.out.println("Good Job!");
break;

case`C`:
System.out.println("You can do better!");
break;
default:
System.out.println("Consider cheating!");
}

Answer / Solution

UNSOLVED

(129) Question Category: Practical

Design a Java class named UniversityCircle with two methods that compute and display an area and circumference of a circle.

Answer / Solution

UNSOLVED

(131) Question Category: Short answers

With examples describe the following terms

  1. Object oriented programming
  2. Dynamic binding
  3. Abstraction

Answer / Solution

UNSOLVED

(132) Question Category: Short answers

Differentiate the following terms

  • Overloading and overriding
  • this and super keywords in java

Answer / Solution

UNSOLVED

View All Courses
News & Updates | Recently
Recent Updates
questions

2024-05-02: questions

Questions Uploaded on 2024-05-02


questions

2024-03-29: questions

Questions Uploaded on 2024-03-29


questions

2024-03-19: questions

Questions Uploaded on 2024-03-19

Dismissible in 10 seconds