UGC NET Computer Science Object Oriented Programming OOPs Previous Year Questions (PYQs) – Page 1 of 3

UGC NET Computer Science Object Oriented Programming OOPs Previous Year Questions (PYQs) – Page 1 of 3

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations
Reset
Showing 21 questions
logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Object Oriented Programming OOPs

There are three boxes. First box has $2$ white, $3$ black and $4$ red balls. Second box has $3$ white, $2$ black and $2$ red balls. Third box has $4$ white, $1$ black and $3$ red balls. A box is chosen at random and $2$ balls are drawn out of which $1$ is white, and $1$ is red. What is the probability that the balls came from first box?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Object Oriented Programming OOPs

What is the output of the following JAVA program?

public class Good {
private int m;

public Good(int m) {
this.m = m;
}

public Boolean equals(Good n) {
return n.m == m;
}

public static void main(String args[]) {
Good m1 = new Good(22);
Good m2 = new Good(22);
Object s1 = new Good(22);
Object s2 = new Good(22);

System.out.println(m1.equals(m2));
System.out.println(s1.equals(s2));
System.out.println(m1.equals(s2));
System.out.println(s1.equals(m2));
}


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

Which of the following is not an Object Oriented Programming language?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Object Oriented Programming OOPs

Allowing different derived classes to be used interchangeably through the interface provided by a common base class is called ______

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Object Oriented Programming OOPs

Let $A$ be the base class in $C++$ and $B$ be the derived class from $A$ with protected inheritance. Which of the following statement is false for class $B$?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2024📚 Computer🏷 Object Oriented Programming OOPs

Which of the following C++ statements correctly declares an abstract class ?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Object Oriented Programming OOPs

Java Virtual Machine $($JVM$)$ is used to execute architectural neutral byte code. Which of the following is needed by the JVM for execution of Java Code?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Object Oriented Programming OOPs

Match List I with List II:
List-IList-II
A. LocalizationI. Encapsulation
B. Packaging or binding of a collection of items.II. Abstraction
C. Mechanism that enables a designer to focus on essential details of a program component.III. Characteristic of software that indicates in a manner which information is concentrated in the program.
D. Information hiding.IV. Suppressing the operational details of a program component.
Choose the correct answer from the options given below:

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Object Oriented Programming OOPs

Inheritance provides the benefits of

A. shared interfaces

B. run-time polymorphism

C. less redundant information

D. dynamic binding


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Object Oriented Programming OOPs

Which of the following is correct using the constructor?

A. string s1;

B. string s2(s1);

C. string s3{7};

D. string s4{'a'};

E. string s5{7,'a'};
Choose the most appropriate answer from the options given below:


1
2
3
4

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...