Introductory to object-oriented programmin UE Past Papers Questions.


View All Courses

(4368) Question Category: Multiple choices

What is the default access modifier for data members or member methods declared in Java within a class without any specifier??

  1. Private
  2. Protected
  3. Public
  4. Default

Answer / Solution

UNSOLVED

(4369) Question Category: Multiple choices

Which of the most appropriate comment on the following class definition?

class Student

{

int a;

public float a;

};

  1. Error: same variable name can`t be used twice
  2. Error: class student must be public to have a public member.
  3. Error: data types are different for same variable.
  4. No problem, the code is correct.

Answer / Solution

UNSOLVED

(4370) Question Category: Multiple choices

Size o a class is

  1. Sum of size of all the variables declared inside the class
  2. Sum of size of all the variables along with inherited variables in the class
  3. Size of largest size o variable
  4. Classes doesn`t have any size.

Answer / Solution

UNSOLVED

(4371) Question Category: Multiple choices

Size of a class is :

  1. Sum of size of all variables declared inside the class
  2. Sum of size of all the variables along with inherited variables in the class
  3. Size of largest size of variable
  4. Classes doesn`t have any size

Answer / Solution

UNSOLVED

(4372) Question Category: Multiple choices

Which class can have member method without their implementation?

  1. Default class
  2. Public class
  3. Final class
  4. Abstract 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