Introductory to object-oriented programmin UE Past Papers Questions.


View All Courses

(4373) Question Category: Multiple choices

Which syntax for class definition is wrong?

  1. class student{};
  2. student class{};
  3. class student{public student(int a){}};
  4. class student{student(int a){}};

Answer / Solution

UNSOLVED

(4374) Question Category: Multiple choices

Which feature of OOP indicates code reusability?

  1. Encapsulation
  2. Inheritance
  3. Abstraction
  4. Polymorphism

Answer / Solution

UNSOLVED

(4375) Question Category: Multiple choices

If a method can perform more than one type of tasks where the method name remains the same. Which feature of OOP is used here?

  1. Encapsulation
  2. Inheritance
  3. Polymorphism
  4. Abstration

Answer / Solution

UNSOLVED

(4376) Question Category: Multiple choices

If different properties and methods of a real world entity is grouped or embedded into a single element. What is it called in OOP language?

  1. Inheritance
  2. Polymorphism
  3. Abstraction
  4. Encapsulation

Answer / Solution

UNSOLVED

(4377) Question Category: Multiple choices

Which among the following is true?

  1. The constructors overloading can be done by using different names
  2. The constructors overloading can be done by using different return types
  3. The constructors can be overloaded by using only one argument
  4. The constructors must have the same name as that of class.

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