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
148
148 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
148
views
asked
Apr 19
Object Oriented Programming
ugcnetcse-dec2025
object-oriented-programming
+
–
0
0 votes
1
1 answer
181
181 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
181
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
110
110 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
110
views
asked
Apr 19
Object Oriented Programming
ugcnetcse-dec2025
object-oriented-programming
java
+
–
0
0 votes
1
1 answer
121
121 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
121
views
asked
Apr 19
Object Oriented Programming
ugcnetcse-dec2025
object-oriented-programming
+
–
0
0 votes
2
2 answers
494
494 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
494
views
asked
Sep 10, 2025
Object Oriented Programming
ugcnetcse-june2025
object-oriented-programming
polymorphism
programming-in-c
java
+
–
0
0 votes
2
2 answers
407
407 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
407
views
asked
Sep 10, 2025
Object Oriented Programming
ugcnetcse-jan2025
object-oriented-programming
+
–
0
0 votes
0
0 answers
198
198 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
198
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
object-oriented-programming
output
+
–
0
0 votes
2
2 answers
380
380 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
380
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-aug2024
object-oriented-programming
programming-in-c
+
–
0
0 votes
1
1 answer
384
384 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
384
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
object-oriented-programming
+
–
0
0 votes
1
1 answer
263
263 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
263
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
object-oriented-programming
+
–
0
0 votes
1
1 answer
271
271 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
271
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
object-oriented-programming
+
–
0
0 votes
0
0 answers
216
216 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
216
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
is&software-engineering
object-oriented-programming
+
–
0
0 votes
2
2 answers
439
439 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
439
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
object-oriented-programming
programming-in-c
+
–
0
0 votes
0
0 answers
498
498 views
Constructors
A constructor cannot be explicitly called by the client program. true or false?
nadosha
498
views
asked
Apr 20, 2024
Object Oriented Programming
non-gatecse
object-oriented-programming
+
–
0
0 votes
0
0 answers
263
263 views
A program that includes the file containing a class declaration is called a ________ program of the class.
nadosha
263
views
asked
Apr 20, 2024
Object Oriented Programming
non-gatecse
object-oriented-programming
+
–
0
0 votes
1
answers
1 answer
530
530 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
530
views
asked
Jan 6, 2024
Object Oriented Programming
ugcnetcse-june2008-paper2
object-oriented-programming
functions
+
–
0
0 votes
1
1 answer
629
629 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
629
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
429
429 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
429
views
asked
Jul 28, 2023
Object Oriented Programming
ugcnetcse-june2023-paper2
is&software-engineering
object-oriented-programming
+
–
1
1 vote
2
2 answers
856
856 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
856
views
asked
May 20, 2023
Programming in C
ugcnetcse-dec2022
programming-in-c
object-oriented-programming
+
–
0
0 votes
0
0 answers
349
349 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
349
views
asked
May 20, 2023
Object Oriented Programming
ugcnetcse-dec2022
object-oriented-programming
+
–
0
0 votes
1
1 answer
568
568 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
568
views
asked
Dec 16, 2022
Programming in C
object-oriented-programming
programming
+
–
0
0 votes
0
0 answers
608
608 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
608
views
asked
Dec 15, 2022
Programming in C
programming
object-oriented-programming
java
+
–
0
0 votes
0
0 answers
533
533 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
533
views
asked
Oct 23, 2022
IS&Software Engineering
ugcnetcse-oct2022-paper1
is&software-engineering
object-oriented-programming
+
–
0
0 votes
0
0 answers
929
929 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
929
views
asked
Oct 10, 2022
Programming in C
programming
object-oriented-programming
+
–
Page:
1
2
3
4
5
6
next »