Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
No answer
No selected answer
No upvoted answer
Previous GATE
Featured
Questions without a selected answer in Object Oriented Programming
0
votes
1
answer
1
Constructors
A constructor cannot be explicitly called by the client program. true or false?
A constructor cannot be explicitly called by the client program. true or false?
nadosha
104
views
nadosha
asked
Apr 20
Object Oriented Programming
non-gate
object-oriented-programming
+
–
0
votes
0
answers
2
A program that includes the file containing a class declaration is called a ________ program of the class.
A program that includes the file containing a class declaration is called a ________ program of the class.
nadosha
68
views
nadosha
asked
Apr 20
Object Oriented Programming
non-gate
object-oriented-programming
+
–
0
votes
0
answers
3
Programming and DS
Trying out a code to get all the possible marks that can be obtained in a GATE paper. Assumptions taken : 1) All questions are MCQs (all questions have a chance of negative marking) 2) 30 1-mark questions, 35 2-mark questions 3) Static array without any ... [i]); return 0; } The console doesn't output anything. Any suggestions on where might I be going wrong/ the error lies?
Trying out a code to get all the possible marks that can be obtained in a GATE paper.Assumptions taken : 1) All questions are MCQs (all questions have a chance of negativ...
Mrityudoot
164
views
Mrityudoot
asked
Feb 26
Object Oriented Programming
programming-in-c
output
programming
+
–
0
votes
4
answers
4
C++
Çșȇ ʛấẗẻ
461
views
Çșȇ ʛấẗẻ
asked
Aug 28, 2023
Object Oriented Programming
non-gate
object-oriented-programming
+
–
0
votes
1
answer
5
Programming Quiz
Which one of the following features is supported by 𝐶 ++ but not by JAVA ? (a) Encapsulation (b) Multiple inheritance (c) Concurrency (d) Garbage collection
Which one of the following features is supported by 𝐶 ++ but not by JAVA ?(a) Encapsulation(b) Multiple inheritance(c) Concurrency(d) Garbage collection
rsansiya111
1.1k
views
rsansiya111
asked
Oct 7, 2022
Object Oriented Programming
object-oriented-programming
+
–
0
votes
1
answer
6
Oops Quiz
Which one of the following fundamental features of the OOPs is not supported by 𝐶++? (a) Persistence (b) Delegation (c) Genericity (d) Data abstraction
Which one of the following fundamental features of the OOPs is not supported by 𝐶++?(a) Persistence(b) Delegation(c) Genericity(d) Data abstraction
rsansiya111
803
views
rsansiya111
asked
Oct 7, 2022
Object Oriented Programming
object-oriented-programming
non-gate
+
–
0
votes
1
answer
7
PGT CS oops
In context of C++, which of the following is valid statement ? (1) Friend function of class is always a member function of that class. (2) Value of static data member cannot be manipulated once assigned. (3) Static data member of a class can be ... member function of that class. (4) Keywords private, protected and public may appear in any order and any number of times in a class
In context of C++, which of thefollowing is valid statement ?(1) Friend function of class isalways a member function ofthat class.(2) Value of static data membercannot be...
Sanjay Sharma
781
views
Sanjay Sharma
asked
Nov 16, 2021
Object Oriented Programming
oops
+
–
1
votes
1
answer
8
NIELIT Scientific Assistant A 2020 November: 49
During exception handling, which of the following statements hold true? Single try can have multiple associated catch with it A single Catch can have multiple try associated with it Finally block execute only when the class is inherited For a given exception, multiple catch can execute
During exception handling, which of the following statements hold true?Single try can have multiple associated catch with itA single Catch can have multiple try associate...
gatecse
741
views
gatecse
asked
Dec 9, 2020
Object Oriented Programming
nielit-sta-2020
object-oriented-programming
+
–
0
votes
0
answers
9
UGC NET CSE | October 2020 | Part 2 | Question: 12
Consider the following recursive Java function $f$ that takes two long arguments and returns a float value: public static float f (long m, long n) { float result = (float)m / (float)n; if (m < 0 || n<0) return 0.0f; else result -=f(m*2, ... } Which of the following real values best approximates the value of $f(1,3)$? $0.2$ $0.4$ $0.6$ $0.8$
Consider the following recursive Java function $f$ that takes two long arguments and returns a float value:public static float f (long m, long n) { float result = (float)...
go_editor
1.4k
views
go_editor
asked
Nov 20, 2020
Object Oriented Programming
ugcnetcse-oct2020-paper2
non-gate
object-oriented-programming
+
–
0
votes
1
answer
10
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 4
If the objects focus on the problem domain, then we are concerned with Object Oriented Analysis Object Oriented Design Object Oriented Analysis and Design None of the above
If the objects focus on the problem domain, then we are concerned withObject Oriented AnalysisObject Oriented DesignObject Oriented Analysis and DesignNone of the above
admin
1.4k
views
admin
asked
Apr 1, 2020
Object Oriented Programming
nielit2017oct-assistanta-it
non-gate
object-oriented-programming
+
–
0
votes
1
answer
11
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 24
Which of the following object types are generally autonomous, meaning that they can exhibit some behavior without being operated upon by another object. Passive Active Both (A) and (B) None of the mentioned
Which of the following object types are generally autonomous, meaning that they can exhibit some behavior without being operated upon by another object.PassiveActiveBoth ...
admin
865
views
admin
asked
Apr 1, 2020
Object Oriented Programming
nielit2017oct-assistanta-it
non-gate
+
–
0
votes
1
answer
12
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.4k
views
admin
asked
Apr 1, 2020
Object Oriented Programming
nielit2017oct-assistanta-it
non-gate
object-oriented-programming
+
–
0
votes
1
answer
13
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.6k
views
admin
asked
Mar 31, 2020
Object Oriented Programming
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
+
–
0
votes
1
answer
14
NIELIT 2016 DEC Scientist B (IT) - Section B: 3
An object can have which of the following multiplicities? Zero More than one One All of the above
An object can have which of the following multiplicities?ZeroMore than oneOneAll of the above
admin
1.0k
views
admin
asked
Mar 31, 2020
Object Oriented Programming
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
+
–
0
votes
1
answer
15
NIELIT 2016 DEC Scientist B (IT) - Section B: 24
An operation can be described as: Object behavior Functions Class behavior (A),(B)
An operation can be described as:Object behaviorFunctionsClass behavior(A),(B)
admin
3.6k
views
admin
asked
Mar 31, 2020
Object Oriented Programming
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
+
–
0
votes
1
answer
16
NIELIT 2016 DEC Scientist B (IT) - Section B: 46
Object oriented inheritance models: "is a kind of" relationship. "has a" relationship. "want to be" relationship. "contains" of relationship.
Object oriented inheritance models:"is a kind of" relationship."has a" relationship."want to be" relationship."contains" of relationship.
admin
3.7k
views
admin
asked
Mar 31, 2020
Object Oriented Programming
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
+
–
0
votes
1
answer
17
NIELIT 2016 DEC Scientist B (CS) - Section B: 30
The IOS class member function used for formatting IO is width(), precision(), read() width(), precision(), setf() getch(), width(), Io() unsetf() ,setf(), write()
The IOS class member function used for formatting IO iswidth(), precision(), read()width(), precision(), setf()getch(), width(), Io()unsetf() ,setf(), write()
admin
1.4k
views
admin
asked
Mar 31, 2020
Object Oriented Programming
nielit2016dec-scientistb-cs
non-gate
object-oriented-programming
+
–
0
votes
2
answers
18
NIELIT 2017 July Scientist B (IT) - Section B: 39
Give the output #include<iostream> using namespace std; class Base { public: int x,y; public: Base(int i, int j){x=i;y=j;} }; class Derived:public Base { public: Derived(int i,int j):x(i),y(j){} void print(){cout<< x << ... int main(void) { Derived q(10,10); q.print(); return 0; } $10\:10$ Compiler Error $0\:0$ None of the option
Give the output #include<iostream using namespace std; class Base { public: int x,y; public: Base(int i, int j){x=i;y=j;} }; class Derived:public Base { public: Derived(i...
admin
1.5k
views
admin
asked
Mar 30, 2020
Object Oriented Programming
nielit2017july-scientistb-it
non-gate
object-oriented-programming
+
–
1
votes
2
answers
19
NIELIT 2017 July Scientist B (IT) - Section B: 40
Give the output #include<iostream> using namespace std; class Base1{ public: ~Base1() {cout<<"Base1's destructor"<<endl;} }; class Base2 { public: ~Base2(){cout<<"Base2's ... 's Destructor Derived's Destructor Base$2$'s destructor Base$1$'s destructor Derived's Destructor Compiler Dependent
Give the output #include<iostream using namespace std; class Base1{ public: ~Base1() {cout<<"Base1's destructor"<<endl;} }; class Base2 { public: ~Base2(){cout<<"Base2's ...
admin
1.8k
views
admin
asked
Mar 30, 2020
Object Oriented Programming
nielit2017july-scientistb-it
non-gate
object-oriented-programming
+
–
0
votes
1
answer
20
UGC NET CSE | December 2007 | Part 2 | Question: 14
Which of the following is not true in C++ ? Private elements of a base class are not accessible by members of its derived class. Protected elements of base class are not accessible by members of its derived class. ... When base class access specified is Public , protected elements of a base class become protected members of its derived class.
Which of the following is not true in C++ ?“Private” elements of a base class are not accessible by members of its derived class.“Protected” elements of base clas...
go_editor
943
views
go_editor
asked
Mar 28, 2020
Object Oriented Programming
ugcnetcse-dec2007-paper2
+
–
0
votes
1
answer
21
UGC NET CSE | December 2007 | Part 2 | Question: 15
Which of the following is true of constructor function in C++ ? A class must have at least one constructor. A constructor is a unique function which cannot be overloaded. A constructor function must be invoked with the object name. A constructor function is automatically invoked when an object is created.
Which of the following is true of constructor function in C++ ?A class must have at least one constructor.A constructor is a unique function which cannot be overloaded.A ...
go_editor
2.8k
views
go_editor
asked
Mar 28, 2020
Object Oriented Programming
ugcnetcse-dec2007-paper2
+
–
0
votes
2
answers
22
UGC NET CSE | June 2005 | Part 2 | Question: 13
The data hiding is taken care by : Abstraction Encapsulation Modularity Inheritance
The data hiding is taken care by :AbstractionEncapsulationModularityInheritance
go_editor
936
views
go_editor
asked
Mar 26, 2020
Object Oriented Programming
ugcnetcse-june2005-paper2
object-oriented-programming
non-gate
+
–
0
votes
1
answer
23
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
826
views
go_editor
asked
Mar 26, 2020
Object Oriented Programming
ugcnetcse-dec2004-paper2
+
–
0
votes
4
answers
24
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.1k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetcse-jan2017-paper3
object-oriented-programming
+
–
0
votes
6
answers
25
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.2k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetcse-jan2017-paper3
object-oriented-programming
java
+
–
0
votes
3
answers
26
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
10.0k
views
go_editor
asked
Mar 24, 2020
Object Oriented Programming
ugcnetcse-jan2017-paper3
object-oriented-programming
java
+
–
0
votes
1
answer
27
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
28
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
802
views
gatecse
asked
Aug 4, 2019
Object Oriented Programming
kpgcet-cse-2019
non-gate
object-oriented-programming
+
–
0
votes
0
answers
29
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
375
views
gatecse
asked
Aug 4, 2019
Object Oriented Programming
kpgcet-cse-2019
non-gate
object-oriented-programming
+
–
1
votes
1
answer
30
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
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register