Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Recent questions in Object Oriented Programming
0
votes
1
answer
21
UGC NET CSE | December 2004 | Part 2 | Question: 15
Polymorphism means : A template function Runtime type identification within a class hierarchy Another name for operator overloading Virtual inheritance
Polymorphism means :A template functionRuntime type identification within a class hierarchyAnother name for operator overloadingVirtual inheritance
go_editor
789
views
go_editor
asked
Mar 26, 2020
Object Oriented Programming
ugcnetcse-dec2004-paper2
+
–
0
votes
4
answers
22
UGC NET CSE | January 2017 | Part 3 | Question: 37
Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two statements? Abstraction allows us to focus on what something does without considering the ... I nor II is correct Both I and II are correct Only II is correct Only I is correct
Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two stat...
go_editor
4.0k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetcse-jan2017-paper3
object-oriented-programming
+
–
0
votes
6
answers
23
UGC NET CSE | January 2017 | Part 3 | Question: 39
Consider the following JAVA program: public class First { public static int CBSE (int x) { if (x < 100)x = CBSE (x+10); return (x-1); } public static void main(String[]args){ System.out.print(First.CBSE(60)); } } What does this program print? $59$ $95$ $69$ $99$
Consider the following JAVA program:public class First { public static int CBSE (int x) { if (x < 100)x = CBSE (x+10); return (x-1); } public ...
go_editor
2.0k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetcse-jan2017-paper3
object-oriented-programming
java
+
–
0
votes
3
answers
24
UGC NET CSE | January 2017 | Part 3 | Question: 40
Which of the following statement(s) with regard to an abstract class in JAVA is /are TRUE ? An abstract class is one that is not used to create objects An abstract class is designed only to act as a base class to be inherited by other classes Only I only II Neither I nor II Both I and II
Which of the following statement(s) with regard to an abstract class in JAVA is /are TRUE ?An abstract class is one that is not used to create objectsAn abstract class is...
go_editor
9.8k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetcse-jan2017-paper3
object-oriented-programming
java
+
–
0
votes
3
answers
25
UGC NET CSE | January 2017 | Part 2 | Question: 11
Which of the following cannot be passed to a function in C++? Constant Structure Array Header file
Which of the following cannot be passed to a function in C++?ConstantStructureArrayHeader file
go_editor
2.4k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetjan2017ii
object-oriented-programming
functions
+
–
0
votes
3
answers
26
UGC NET CSE | January 2017 | Part 2 | Question: 12
Which one of the following is correct for overloaded functions in $C++$? Compiler sets up a separate function for every definition of function. Compiler does not set up a separate function for every definition of function. Overloaded functions cannot handle different types of objects. Overloaded functions cannot have same number of arguments.
Which one of the following is correct for overloaded functions in $C++$?Compiler sets up a separate function for every definition of function.Compiler does not set up a s...
go_editor
1.8k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetjan2017ii
object-oriented-programming
functions
+
–
0
votes
3
answers
27
UGC NET CSE | January 2017 | Part 2 | Question: 14
Which of the following operators cannot be overloaded in $\textsf{C/C++}$ ? Bitwise right shift assignment Address of Indirection Structure reference
Which of the following operators cannot be overloaded in $\textsf{C/C++}$ ?Bitwise right shift assignmentAddress ofIndirectionStructure reference
go_editor
2.1k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetjan2017ii
object-oriented-programming
+
–
0
votes
1
answer
28
KPGCET-CSE-2019-7
The diagramming language suitable for object-oriented paradigm is Data Flow Diagramming Language Entity-Relationship Language Object-Oriented Language Unified Modeling Language
The diagramming language suitable for object-oriented paradigm isData Flow Diagramming LanguageEntity-Relationship LanguageObject-Oriented LanguageUnified Modeling Langua...
gatecse
1.1k
views
gatecse
asked
Aug 4, 2019
Object Oriented Programming
kpgcet-cse-2019
non-gate
object-oriented-programming
+
–
0
votes
1
answer
29
KPGCET-CSE-2019-10
Object-oriented paradigm is used in the analysis stage of SDLC to Structure the behavioural part of the business process Design the structural part of Computer memory Design the object-oriented programming language Design the structure of the database.
Object-oriented paradigm is used in the analysis stage of SDLC toStructure the behavioural part of the business processDesign the structural part of Computer memoryDesign...
gatecse
774
views
gatecse
asked
Aug 4, 2019
Object Oriented Programming
kpgcet-cse-2019
non-gate
object-oriented-programming
+
–
0
votes
0
answers
30
KPGCET-CSE-2019-11
The signature of the object method clause present in class diagram contains All definitional attributes of the class used in the method All referential attributes of the class/es used in the method All definitional attributes of related classes All attributes of related classes
The signature of the object method clause present in class diagram containsAll definitional attributes of the class used in the method All referential attributes of the c...
gatecse
361
views
gatecse
asked
Aug 4, 2019
Object Oriented Programming
kpgcet-cse-2019
non-gate
object-oriented-programming
+
–
1
votes
1
answer
31
UGC NET CSE | June 2019 | Part 2 | Question: 24
Consider the following C++ function f(): unsigned int f(unsigned int n) { unsigned int b=0; while (n) { b+=n & 1; n>>1; } return b; } The function f() returns the int that represents the ____P____ in the binary representation of positive integer n, where P is number of $0$’s number of bits number of consecutive $1$’s number of $1$’s
Consider the following C++ function f():unsigned int f(unsigned int n) { unsigned int b=0; while (n) { b+=n & 1; n>>1; } return b; }The function f() returns the int that ...
Arjun
2.4k
views
Arjun
asked
Jul 2, 2019
Object Oriented Programming
ugcnetcse-june2019-paper2
programming-in-c
+
–
0
votes
0
answers
32
GSET 2018(Gujarat State Eligibilty Test ) CS & IT
In C++ and java which of the following features is not essential for polymorphic behaviour of programs? A) Inheritance B) Method overriding C) Method overloading D) Encapsulataion The question was asked in GSET 2018(Gujarat State Eligibilty Test ). According to the answer key , Option C is correct, but How? Isn't Method overloading a
In C++ and java which of the following features is not essential for polymorphic behaviour of programs?A) InheritanceB) Method overridingC) Method overloadingD) Encapsul...
sherlock_john
242
views
sherlock_john
asked
Oct 13, 2018
1
votes
6
answers
33
UGC NET CSE | July 2018 | Part 2 | Question: 5
Given below are three implementations of the $\text{swap()}$ function in $\text{C++}$ ... $\text{(a)}$ only $\text{(b)}$ only $\text{(c)}$ only $\text{(b)}$ and $\text{(c)}$ only
Given below are three implementations of the $\text{swap()}$ function in $\text{C++}$ :$\begin{array}{|l|l|l|} \hline \qquad \qquad \text{(a)} & \qquad \qquad \text{(b)}...
Pooja Khatri
4.7k
views
Pooja Khatri
asked
Jul 13, 2018
Object Oriented Programming
ugcnetcse-july2018-paper2
object-oriented-programming
+
–
0
votes
3
answers
34
UGC NET CSE | July 2018 | Part 2 | Question: 6
In Java, which of the following statements is/are TRUE? S1: The final' keyword applied to a class definition prevents the class form being extended through derivation S2: A class can only inherit one class but can implement multiple interfaces S3: ... called method overloading Code: S1 and S2 only S1 and S3 only S2 and S3 only All of S1, S2 and S3
In Java, which of the following statements is/are TRUE?S1: The ‘final’ keyword applied to a class definition prevents the class form being extended through derivation...
Pooja Khatri
3.6k
views
Pooja Khatri
asked
Jul 13, 2018
Object Oriented Programming
ugcnetcse-july2018-paper2
object-oriented-programming
java
final
+
–
0
votes
0
answers
35
self doubt
If vtable is array vtable [] = {funptr1,funptr2,funptr3}; than how did its size is 4 bytes (64 bit compiler)
If vtable is array vtable [] = {funptr1,funptr2,funptr3}; than how did its size is 4 bytes (64 bit compiler)
kd.....
222
views
kd.....
asked
Jun 3, 2018
0
votes
0
answers
36
self doubt:- c++
Please explain the working of this code:- #include<iostream> using namespace std; class Base { public: int x; Base():x(10){} ~Base(){} }; class Derived:public Base { public: int y; Derived():y(20){} ~Derived(){} }; int main() { Base bobj,*bptr; ... (Derived*)&bobj; cout<<dptr->x<<endl; cout<<dptr->y<<endl; } Output:-10 10 0 [Finished in 2.7s]
Please explain the working of this code:- #include<iostream using namespace std; class Base { public: int x; Base():x(10){} ~Base(){} }; class Derived:public Base { publi...
kd.....
281
views
kd.....
asked
May 12, 2018
Object Oriented Programming
programming
inheritance
pointers
+
–
3
votes
2
answers
37
ISRO2018-43
Consider the following C++ program int a (int m) {return ++m;} int b(int&m) {return ++m;} int{char &m} {return ++m;} void main() { int p = 0, q=0, r = 0; p += a(b(p)) ; q+= b(a(q);) r+=a(c(r)); cout<<p<<q << r; } Assuming the required header first are already included, the above program results in compilation error print $123$ print $111$ print $322$
Consider the following C++ programint a (int m) {return ++m;} int b(int&m) {return ++m;} int{char &m} {return ++m;} void main() { int p = 0, q=0, r = 0; p += a(b(p)) ; q+...
Arjun
3.8k
views
Arjun
asked
Apr 22, 2018
Object Oriented Programming
isro2018
object-oriented-programming
non-gate
+
–
1
votes
0
answers
38
Programming in c plus plus
Give a simple example on inheriting the operator function and using it in programme
Give a simple example on inheriting the operator function and using it in programme
anonymous
260
views
anonymous
asked
Apr 22, 2018
Object Oriented Programming
programming-in-c
inheritance
object-oriented-programming
+
–
0
votes
0
answers
39
c++ type conversion
why did in conversion of class to basic the type conversion operator does not have return type and argument as void
why did in conversion of class to basic the type conversion operator does not have return type and argument as void
kd.....
287
views
kd.....
asked
Apr 10, 2018
Object Oriented Programming
programming-in-c
+
–
1
votes
0
answers
40
Operator overloading
On overloading pre increment and post increment why compiler taking dummy value only for post increment and not in pre increment
On overloading pre increment and post increment why compiler taking dummy value only for post increment and not in pre increment
kd.....
386
views
kd.....
asked
Apr 6, 2018
Object Oriented Programming
cpp
+
–
Page:
« prev
1
2
3
4
5
6
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register