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
Most viewed questions in Object Oriented Programming
14
votes
3
answers
1
GATE CSE 2004 | Question: 34
It is desired to design an object-oriented employee record system for a company. Each employee has a name, unique id, and salary. Employees belong to different categories and their salary is determined by their category. The functions get name, getId and compute salary are required. ... Choose the best design I, IV, VI, VIII I, IV, VII I, III, V, VI, VIII II, V, VIII
It is desired to design an object-oriented employee record system for a company. Each employee has a name, unique id, and salary. Employees belong to different categories...
Kathleen
22.8k
views
Kathleen
asked
Sep 18, 2014
Object Oriented Programming
gatecse-2004
object-oriented-programming
normal
+
–
0
votes
1
answer
2
A struct is the same as a class except that
A struct is the same as a class except that (A) there are no member functions. (B) all members are public. (C) cannot be used in inheritance hierarchy. (D) it does have a this pointer
A struct is the same as a class except that(A) there are no member functions.(B) all members are public.(C) cannot be used in inheritance hierarchy.(D) it does have a thi...
Sanjay Sharma
17.0k
views
Sanjay Sharma
asked
Feb 26, 2017
1
votes
1
answer
3
a class having no name
a class having no name is not allowed cannot have a constructor cannot have a destructor cannot be passed as an argument
a class having no nameis not allowedcannot have a constructorcannot have a destructorcannot be passed as an argument
Meenakshi Sharma
10.5k
views
Meenakshi Sharma
asked
Sep 5, 2016
0
votes
3
answers
4
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
1
answer
5
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 28
What is ‘Basis of Encapsulation’? object class method all of the mentioned
What is ‘Basis of Encapsulation’?objectclassmethodall of the mentioned
admin
9.3k
views
admin
asked
Apr 1, 2020
Object Oriented Programming
nielit2017oct-assistanta-it
non-gate
object-oriented-programming
+
–
6
votes
1
answer
6
ISRO2008-73
We can make a class abstract by Declaring it abstract using the virtual keyword Making at least one member function as virtual function Making at least one member function as pure virtual function Making all member function const.
We can make a class abstract byDeclaring it abstract using the virtual keywordMaking at least one member function as virtual functionMaking at least one member function a...
go_editor
8.6k
views
go_editor
asked
Jun 13, 2016
Object Oriented Programming
isro2008
non-gate
virtual-function
+
–
4
votes
2
answers
7
ISRO-2013-75
What is the right way to declare a copy constructor of a class if the name of the class is MyClass? MyClass (constant MyClass * arg) MyClass (constant MyClass & arg) MyClass (MyClass arg) MyClass (MyClass * arg)
What is the right way to declare a copy constructor of a class if the name of the class is MyClass?MyClass (constant MyClass * arg)MyClass (constant MyClass & arg)MyClass...
makhdoom ghaya
8.2k
views
makhdoom ghaya
asked
May 13, 2016
Object Oriented Programming
isro2013
copy-constructor
non-gate
+
–
2
votes
1
answer
8
UGC NET CSE | Junet 2015 | Part 2 | Question: 15
When the inheritance is private, the private methods in base class are _____ in the derived class (in C++) inaccessible accessible protected public
When the inheritance is private, the private methods in base class are _____ in the derived class (in C++)inaccessible accessibleprotectedpublic
go_editor
7.4k
views
go_editor
asked
Jul 30, 2016
Object Oriented Programming
ugcnetcse-june2015-paper2
oops
inheritance
+
–
4
votes
2
answers
9
ISRO2016-78
If a class $C$ is derived from class $B$, which is derived form class $A$, all through public inheritance, then a class $C$ member function can access only protected and public data of $C$ and $B$ Only protected and public data of $C$ all data of $C$ and private data of $A$ and $B$ public and protected data of $A$ and $B$ and all data of $C$
If a class $C$ is derived from class $B$, which is derived form class $A$, all through public inheritance, then a class $C$ member function can accessonly protected and p...
Desert_Warrior
7.2k
views
Desert_Warrior
asked
Jul 3, 2016
Object Oriented Programming
non-gate
object-oriented-programming
isro2016
+
–
7
votes
6
answers
10
ISRO2017-41
What is the output of the C++ program? #include <iostream> using namespace std; void square(int *x){ *x = (*x)++ * (*x); } void square(int *x, int *y){ *x = (*x) * --(*y); } int main() { int number = 30; square(&number, &number); cout<<number; return 0; } 910 920 870 900
What is the output of the C++ program? #include <iostream using namespace std; void square(int *x){ *x = (*x)++ * (*x); } void square(int *x, int *y){ *x = (*x) * (*y); ...
kauray
7.0k
views
kauray
asked
May 7, 2017
Object Oriented Programming
isro2017
object-oriented-programming
+
–
4
votes
3
answers
11
ISRO2009-33
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is Inheritance Polymorphism Overfunctioning Overriding
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, isInheritancePolymorphismOverfunctioning...
go_editor
7.0k
views
go_editor
asked
Jun 15, 2016
Object Oriented Programming
isro2009
object-oriented-programming
non-gate
+
–
2
votes
3
answers
12
UGC NET CSE | Junet 2015 | Part 2 | Question: 12
Which of the following, in C++, is inherited in a derived class from base class? constructor destructor data members virtual methods
Which of the following, in C++, is inherited in a derived class from base class?constructordestructordata membersvirtual methods
go_editor
6.7k
views
go_editor
asked
Jul 30, 2016
Object Oriented Programming
ugcnetcse-june2015-paper2
oops
inheritance
+
–
5
votes
1
answer
13
ISRO2017-43
Which of the following UML 2.0 diagrams capture behavioral aspects of a system? Use case diagram, Object diagram, Activity diagram and state machine diagram Use case diagram, Activity diagram and state machine diagram Object diagram, Communication Diagram, Timing diagram and Interaction diagram Object diagram, Composite structure diagram, package diagram and Deployment diagram
Which of the following UML 2.0 diagrams capture behavioral aspects of a system?Use case diagram, Object diagram, Activity diagram and state machine diagramUse case diagra...
sh!va
6.7k
views
sh!va
asked
May 7, 2017
Object Oriented Programming
isro2017
object-oriented-programming
non-gate
+
–
3
votes
2
answers
14
UGC NET CSE | December 2014 | Part 2 | Question: 13
Which of the following is not a member of class ? Static function Friend function Const function Virtual function
Which of the following is not a member of class ? Static functionFriend functionConst functionVirtual function
makhdoom ghaya
6.6k
views
makhdoom ghaya
asked
Jul 20, 2016
Object Oriented Programming
ugcnetcse-dec2014-paper2
object-oriented-programming
c++
+
–
0
votes
1
answer
15
NIELIT 2016 DEC Scientist B (IT) - Section B: 1
Given a class named student, which of the following is a valid constructor declaration for the class? Student student(){} Private final student(){} Student(student s){} Void student(){}
Given a class named student, which of the following is a valid constructor declaration for the class?Student student(){}Private final student(){}Student(student s){}Void ...
admin
6.5k
views
admin
asked
Mar 31, 2020
Object Oriented Programming
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
+
–
11
votes
4
answers
16
GATE CSE 2005 | Question: 4
Which one of the following are essential features of an object-oriented programming language? Abstraction and encapsulation Strictly-typedness Type-safe property coupled with sub-type rule Polymorphism in the presence of inheritance I and II only I and IV only I, II and IV only I, III and IV only
Which one of the following are essential features of an object-oriented programming language?Abstraction and encapsulationStrictly-typednessType-safe property coupled wit...
Kathleen
5.9k
views
Kathleen
asked
Sep 22, 2014
Object Oriented Programming
gatecse-2005
programming
normal
object-oriented-programming
non-gate
+
–
4
votes
1
answer
17
UGC NET CSE | June 2016 | Part 2 | Question: 13
Which one of the following is correct, when a class grants friend status to another class? The member functions of the class generating friendship can access teh members of the friend class All member functions of the class ... the members of the class granting the friendship Class friendship is reciprocal to each other There is no such concept
Which one of the following is correct, when a class grants friend status to another class?The member functions of the class generating friendship can access teh members o...
go_editor
5.3k
views
go_editor
asked
Aug 14, 2016
Object Oriented Programming
ugcnetcse-june2016-paper2
object-oriented-programming
friend-class
+
–
0
votes
1
answer
18
UGC NET CSE | June 2014 | Part 2 | Question: 44
A friend function can be used to Avoid arguments between classes. Allow access to classes whose source code is unavailable. Allow one class to access an unrelated class. None of the above
A friend function can be used toAvoid arguments between classes.Allow access to classes whose source code is unavailable. Allow one class to access an unrelated class. No...
makhdoom ghaya
5.0k
views
makhdoom ghaya
asked
Jul 1, 2016
Object Oriented Programming
ugcnetcse-june2014-paper2
object-oriented-programming
friend-function
+
–
3
votes
1
answer
19
UGC NET CSE | December 2014 | Part 2 | Question: 15
Which of the following differentiates between overloaded functions and overridden functions ? Overloading is a dynamic or runtime binding and overridden is a static or compile time binding. Overloading is a static or compile time ... class is called function overloading, while redefining a function in a friend class is called function overriding.
Which of the following differentiates between overloaded functions and overridden functions ? Overloading is a dynamic or runtime binding and overridden is a static or co...
makhdoom ghaya
4.7k
views
makhdoom ghaya
asked
Jul 20, 2016
Object Oriented Programming
ugcnetcse-dec2014-paper2
object-oriented-programming
+
–
7
votes
3
answers
20
ISRO2017-42
Which of the following operator(s) cannot be overloaded? .(member Access or Dot operator) ?: (ternary or Conditional Operator) :: ( Scope Resolution Operator) All of the above
Which of the following operator(s) cannot be overloaded?.(member Access or Dot operator)?: (ternary or Conditional Operator):: ( Scope Resolution Operator)All of the abov...
sh!va
4.7k
views
sh!va
asked
May 7, 2017
Object Oriented Programming
isro2017
operator-overloading
+
–
Page:
1
2
3
4
5
6
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register