Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
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
Kathleen
asked
in
Object Oriented Programming
Sep 18, 2014
by
Kathleen
21.9k
views
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
Sanjay Sharma
asked
in
Object Oriented Programming
Feb 26, 2017
by
Sanjay Sharma
17.0k
views
1
vote
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
Meenakshi Sharma
asked
in
Object Oriented Programming
Sep 5, 2016
by
Meenakshi Sharma
10.5k
views
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
go_editor
asked
in
Object Oriented Programming
Mar 24, 2020
by
go_editor
9.7k
views
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
admin
asked
in
Object Oriented Programming
Apr 1, 2020
by
admin
9.2k
views
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.
go_editor
asked
in
Object Oriented Programming
Jun 13, 2016
by
go_editor
8.6k
views
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)
makhdoom ghaya
asked
in
Object Oriented Programming
May 13, 2016
by
makhdoom ghaya
8.1k
views
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
go_editor
asked
in
Object Oriented Programming
Jul 30, 2016
by
go_editor
7.4k
views
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$
Desert_Warrior
asked
in
Object Oriented Programming
Jul 3, 2016
by
Desert_Warrior
7.1k
views
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
kauray
asked
in
Object Oriented Programming
May 7, 2017
by
kauray
7.0k
views
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
go_editor
asked
in
Object Oriented Programming
Jun 15, 2016
by
go_editor
6.9k
views
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
go_editor
asked
in
Object Oriented Programming
Jul 30, 2016
by
go_editor
6.7k
views
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
sh!va
asked
in
Object Oriented Programming
May 7, 2017
by
sh!va
6.6k
views
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
makhdoom ghaya
asked
in
Object Oriented Programming
Jul 20, 2016
by
makhdoom ghaya
6.5k
views
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(){}
admin
asked
in
Object Oriented Programming
Mar 31, 2020
by
admin
6.4k
views
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
Kathleen
asked
in
Object Oriented Programming
Sep 22, 2014
by
Kathleen
5.8k
views
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
go_editor
asked
in
Object Oriented Programming
Aug 14, 2016
by
go_editor
5.3k
views
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
makhdoom ghaya
asked
in
Object Oriented Programming
Jul 1, 2016
by
makhdoom ghaya
5.0k
views
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.
makhdoom ghaya
asked
in
Object Oriented Programming
Jul 20, 2016
by
makhdoom ghaya
4.7k
views
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
sh!va
asked
in
Object Oriented Programming
May 7, 2017
by
sh!va
4.7k
views
isro2017
operator-overloading
Page:
1
2
3
4
5
6
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
IS&Software Engineering
(429)
Web Technologies
(93)
Numerical Methods
(64)
Computer Graphics
(111)
Object Oriented Programming
(120)
Java
(36)
Cloud Computing
(6)
Distributed Computing
(14)
Information Theory
(6)
Optimization
(20)
Digital Image Processing
(17)
Digital Signal Processing
(34)
Computer Peripherals
(13)
Multimedia
(2)
Geometry
(54)
Integrated Circuits
(9)
Big Data Systems
(1)
Others
(412)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
Aptitude Overflow