Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged object-oriented-programming
1
1 vote
1
1 answer
213
213 views
UGC NET CSE | December 2025 | Part 2 | Question: 12
Which of the following is not true about constructorWhen an object is created and initialized at the same time, a copy constructor gets called.They do not have return typ...
Shubham Sharma 2
213
views
asked
Apr 19
Object Oriented Programming
ugcnetcse-dec2025
object-oriented-programming
+
–
1
1 vote
1
1 answer
251
251 views
UGC NET CSE | December 2025 | Part 2 | Question: 14
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason RAssertion A: We can build an object from a class containing a pure vir...
Shubham Sharma 2
251
views
asked
Apr 19
Object Oriented Programming
ugcnetcse-dec2025
object-oriented-programming
abstract-class
programming-in-cpp
verbal-reasoning
+
–
0
0 votes
0
0 answers
134
134 views
UGC NET CSE | December 2025 | Part 2 | Question: 16
Arrange the following applet life cycles methods in sequence$\operatorname{start}()$$\operatorname{paint()}$$\operatorname{init()}$$\operatorname{stop()}$Choose the corre...
Shubham Sharma 2
134
views
asked
Apr 19
Object Oriented Programming
ugcnetcse-dec2025
object-oriented-programming
java
+
–
0
0 votes
1
1 answer
174
174 views
UGC NET CSE | December 2025 | Part 2 | Question: 17
Which of the following statements are True?The $++$ operator can be overloaded to perform decrementation of a variable.It is necessary that a constructor in a class shoul...
Shubham Sharma 2
174
views
asked
Apr 19
Object Oriented Programming
ugcnetcse-dec2025
object-oriented-programming
+
–
0
0 votes
2
2 answers
512
512 views
UGC NET CSE | June 2025 | Part 2 | Question: 79
Match List I with List II$\begin{array}{|ll|ll|} \hline & \textbf{List I} & & \textbf{List II} \\ \hline \text{A.} & \text{Overloading} & \text{I.} & \text{Since function...
Shubham Sharma 2
512
views
asked
Sep 10, 2025
Object Oriented Programming
ugcnetcse-june2025
object-oriented-programming
polymorphism
programming-in-c
java
+
–
0
0 votes
2
2 answers
418
418 views
UGC NET CSE | January 2025 | Part 2 | Question: 21
Which of the following statement is not True?A data member of a class can be declared as static and is normally used to maintain values common to the entire class.A frien...
Shubham Sharma 2
418
views
asked
Sep 10, 2025
Object Oriented Programming
ugcnetcse-jan2025
object-oriented-programming
+
–
0
0 votes
0
0 answers
207
207 views
UGC NET CSE | August 2024 | Part 2 | Question: 22
What is the output of code given below:#include<iostream.h using namespace std; class Base { public: Base(){ cout<<"Base Const"; } virtual ~Base() { cout<<"Base dest"; } ...
Shubham Sharma 2
207
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
object-oriented-programming
output
+
–
0
0 votes
2
2 answers
396
396 views
UGC NET CSE | August 2024 | Part 2 | Question: 23
Which of the following C++ statements correctly declares an abstract class?class A { virtual void show ()=0; };class A { void show ()=0; };class A { void show() {} ; };cl...
Shubham Sharma 2
396
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-aug2024
object-oriented-programming
programming-in-c
+
–
0
0 votes
1
1 answer
403
403 views
UGC NET CSE | August 2024 | Part 2 | Question: 72
Which of the following are TRUE about constructors in C++?A constructor can be overloaded.A constructor does not have a return type.A constructor must be declared as a fr...
Shubham Sharma 2
403
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
object-oriented-programming
+
–
0
0 votes
1
1 answer
279
279 views
UGC NET CSE | December 2023 | Part 2 | Question: 10
Which of the following statements is TRUE?Virtual functions do not implement polymorphismVirtual functions do not permit calling of derived class functions using a base c...
Shubham Sharma 2
279
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
object-oriented-programming
+
–
0
0 votes
1
1 answer
291
291 views
UGC NET CSE | December 2023 | Part 2 | Question: 48
Which of the statement are CORRECT?Constructors are invoked automatically when the objects are created.Constructors do not have return types, not even void and therefore ...
Shubham Sharma 2
291
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
object-oriented-programming
+
–
0
0 votes
0
0 answers
230
230 views
UGC NET CSE | December 2023 | Part 2 | Question: 79
The steps for analysis and design of object oriented system.Draw interaction diagramsDraw state chart and object diagramDraw use case and activity diagramDraw component a...
Shubham Sharma 2
230
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
is&software-engineering
object-oriented-programming
+
–
0
0 votes
2
2 answers
464
464 views
UGC NET CSE | December 2023 | Part 2 | Question: 87
Given below are two statements :Statement $\text{(I)}$ : The friend function and the member functions of a friend class directly access the private and protected data.Sta...
Shubham Sharma 2
464
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
object-oriented-programming
programming-in-c
+
–
0
0 votes
0
0 answers
508
508 views
Constructors
A constructor cannot be explicitly called by the client program. true or false?
nadosha
508
views
asked
Apr 20, 2024
Object Oriented Programming
non-gatecse
object-oriented-programming
+
–
0
0 votes
0
0 answers
272
272 views
A program that includes the file containing a class declaration is called a ________ program of the class.
nadosha
272
views
asked
Apr 20, 2024
Object Oriented Programming
non-gatecse
object-oriented-programming
+
–
0
0 votes
1
answers
1 answer
550
550 views
UGC NET CSE | June 2008 | Part 2 | Question: 14
Function overloading is a concept in which :a function is used to implement lots of tasks at the same time.a function is called too many number of times by another functi...
admin
550
views
asked
Jan 6, 2024
Object Oriented Programming
ugcnetcse-june2008-paper2
object-oriented-programming
functions
+
–
0
0 votes
1
1 answer
658
658 views
UGC NET CSE | June 2008 | Part 2 | Question: 15
Which of the following is true?A "static" member of a class cannot be inherited by its derived class.A "static" member of a class can be initialized only within the class...
admin
658
views
asked
Jan 6, 2024
Object Oriented Programming
ugcnetcse-june2008-paper2
object-oriented-programming
programming-in-c
+
–
0
0 votes
4
4 answers
1.1k
1.1k views
C++
Çșȇ ʛấẗẻ
1.1k
views
asked
Aug 28, 2023
Object Oriented Programming
non-gatecse
object-oriented-programming
+
–
0
0 votes
0
0 answers
437
437 views
UGC NET CSE | June 2023 | Part 2: 51
Given below are two statements:Statement $\text{I}$: subsystem models show logical grouping of objects into coherent subsystemStatement $\text{II}$: State machine models ...
admin
437
views
asked
Jul 28, 2023
Object Oriented Programming
ugcnetcse-june2023-paper2
is&software-engineering
object-oriented-programming
+
–
1
1 vote
2
2 answers
872
872 views
UGCNET CSE December 2022: 11
If a constructor 'Date' is declared explicitly and has to be defined outside the class, which of the following is correct?Date::Date(int dd) $\{/ * \ldots * /\}$explicit ...
admin
872
views
asked
May 20, 2023
Programming in C
ugcnetcse-dec2022
programming-in-c
object-oriented-programming
+
–
0
0 votes
0
0 answers
360
360 views
UGCNET CSE December 2022: 68
Match $\text{List I}$ with $\text{List II}$$\text{List I}$$\text{List II}$$\text{A}$. If the implementation of generated or derived classes differ only through a paramete...
admin
360
views
asked
May 20, 2023
Object Oriented Programming
ugcnetcse-dec2022
object-oriented-programming
+
–
0
0 votes
1
1 answer
580
580 views
Object Oriented Programming
Imagine a scenario where new child classes are introduced frequently from a base class. The method calling sequences for every child class are the same but the implementa...
rayhanrjt
580
views
asked
Dec 16, 2022
Programming in C
object-oriented-programming
programming
+
–
0
0 votes
0
0 answers
620
620 views
Java Programming
Suppose, you are implementing “Overdraft Account (OD)” class using java for a banking app. An OD type account is opened with an approved loan limit (ex 100000/-). The acc...
rayhanrjt
620
views
asked
Dec 15, 2022
Programming in C
programming
object-oriented-programming
java
+
–
0
0 votes
0
0 answers
543
543 views
UGC NET CSE | October 2022 | Part 1 | Question: 86
Match List I with List II : List IList II(A) Localization(I) Encapsulationlation(B) Packaging or binding of a collection of items(II) Abstraction(C) Mechanism that enable...
admin
543
views
asked
Oct 23, 2022
IS&Software Engineering
ugcnetcse-oct2022-paper1
is&software-engineering
object-oriented-programming
+
–
0
0 votes
0
0 answers
938
938 views
Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be assumed to be either Java or C++, though the syntax is similar. Class P { void f(int i) { print(i); } } Class Q subclass of P { void f(int i) { print(2*i); } } Now consider the following program fragment: P x = new Q(); Q y = new Q(); P z = new Q(); x.f(1); ((P)y).f(1); z.f(1); Here ((P)y) denotes a typecast of y to P. The output produced by executing the above program fragment will be (A) 1 2 1 (B) 2 1 1 (C) 2 1 2 (D) 2 2 2
Jeetmoni saikia
938
views
asked
Oct 10, 2022
Programming in C
programming
object-oriented-programming
+
–
Page:
1
2
3
4
5
6
next »