Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged object-oriented-programming
0
votes
3
answers
31
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
32
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
33
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
34
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
777
views
gatecse
asked
Aug 4, 2019
Object Oriented Programming
kpgcet-cse-2019
non-gate
object-oriented-programming
+
–
0
votes
0
answers
35
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
6
answers
36
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
37
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.7k
views
Pooja Khatri
asked
Jul 13, 2018
Object Oriented Programming
ugcnetcse-july2018-paper2
object-oriented-programming
java
final
+
–
3
votes
2
answers
38
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
39
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
40
cplusplus
why did constructor's name is same as class name and it has no return type
why did constructor's name is same as class name and it has no return type
kd.....
371
views
kd.....
asked
Mar 21, 2018
Object Oriented Programming
cpp
programming
object-oriented-programming
+
–
0
votes
1
answer
41
UGC NET CSE | December 2008 | Part 2 | Question: 29
How many constructors can a class have ? zero 1 2 any number
How many constructors can a class have ?zero 1 2 any number
rishu_darkshadow
830
views
rishu_darkshadow
asked
Sep 25, 2017
Object Oriented Programming
ugcnetcse-dec2008-paper2
object-oriented-programming
constructor
+
–
0
votes
0
answers
42
UGC NET CSE | December 2008 | Part 2 | Question: 28
When a language has the capability to produce new data types, it is said to be : extensible encapsulated overloaded none of the above
When a language has the capability to produce new data types, it is said to be :extensible encapsulated overloaded none of the above...
rishu_darkshadow
1.1k
views
rishu_darkshadow
asked
Sep 25, 2017
Object Oriented Programming
ugcnetcse-dec2008-paper2
object-oriented-programming
+
–
0
votes
1
answer
43
UGC NET CSE | December 2008 | Part 2 | Question: 27
A copy constructor is invoked when : a function returns by value an argument is passed by value a function returns by reference none of the above
A copy constructor is invoked when :a function returns by value an argument is passed by valuea function returns by reference none of the above
rishu_darkshadow
4.5k
views
rishu_darkshadow
asked
Sep 25, 2017
Object Oriented Programming
ugcnetcse-dec2008-paper2
object-oriented-programming
constructor
+
–
0
votes
1
answer
44
UGC NET CSE | December 2009 | Part 2 | Question: 15
Which of the statements are true ? I. Function overloading is done at compile time. II. Protected members are accessible to the member of derived class. III. A derived class inherits constructors and destructors. IV. A friend function can be called like a normal function. V. ... class. (A) I, II, III (B) II, III, V (C) III, IV, V (D) I, II, IV
Which of the statements are true ?I. Function overloading is done at compile time.II. Protected members are accessible to the member of derived class.III. A derived class...
rishu_darkshadow
13.6k
views
rishu_darkshadow
asked
Sep 17, 2017
Programming in C
ugcnetcse-dec2009-paper2
object-oriented-programming
+
–
0
votes
1
answer
45
UGC NET CSE | December 2009 | Part 2 | Question: 14
Encapsulation is (A) Dynamic binding (B) A mechanism to associate the code and data. (C) Data abstraction (D) Creating new class
Encapsulation is(A) Dynamic binding(B) A mechanism to associate the code and data.(C) Data abstraction(D) Creating new class
rishu_darkshadow
1.2k
views
rishu_darkshadow
asked
Sep 16, 2017
Programming in C
ugcnetcse-dec2009-paper2
programming
object-oriented-programming
+
–
0
votes
2
answers
46
UGC NET CSE | December 2009 | Part 2 | Question: 14
A __________ is a special method used to initialize the instance variable of a class. (A) Member function (B) Destructor (C) Constructor (D) Structure
A __________ is a special method used to initialize the instance variable of a class.(A) Member function(B) Destructor(C) Constructor(D) Structure
rishu_darkshadow
3.6k
views
rishu_darkshadow
asked
Sep 16, 2017
Programming in C
ugcnetcse-dec2009-paper2
programming
object-oriented-programming
+
–
5
votes
4
answers
47
ISRO2017-44
Which of the following is associated with objects? State Behavior Identity All of the above
Which of the following is associated with objects?StateBehaviorIdentityAll of the above
sh!va
4.6k
views
sh!va
asked
May 7, 2017
Object Oriented Programming
isro2017
object-oriented-programming
non-gate
+
–
5
votes
1
answer
48
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
+
–
7
votes
6
answers
49
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.1k
views
kauray
asked
May 7, 2017
Object Oriented Programming
isro2017
object-oriented-programming
+
–
0
votes
1
answer
50
ISRO 2008-ECE programming
A program having features such as data abstraction, encapsulation and data hiding, polymorphism inheritance is called (a) Structured program (b) Object oriented program (c) Open source program (d) Real time program
A program having features such as data abstraction, encapsulation and data hiding, polymorphism inheritance is called(a) Structured program(b) Object oriented program(c) ...
sh!va
375
views
sh!va
asked
Mar 2, 2017
Programming in C
isro-ece
programming
object-oriented-programming
+
–
0
votes
3
answers
51
UGC NET CSE | January 2017 | Part 3 | Question: 38
Given the array of integers ‘array’ shown below: 13 7 27 2 18 33 9 11 22 8 What is the output of the following JAVA statements? int[] p = new int [10]; int[] q = new int [10]; for (int k=0; k< 10; k++) p[k]=array [k]; q=p; p[4]=20; System.out.println(array[4]+":"+q[4]); 20:20 18:18 18:20 20:18
Given the array of integers ‘array’ shown below:1372721833911228What is the output of the following JAVA statements?int[] p = new int [10]; int[] q = new int [10]; fo...
go_editor
2.9k
views
go_editor
asked
Jan 31, 2017
Object Oriented Programming
ugcnetcse-jan2017-paper3
object-oriented-programming
java
+
–
0
votes
0
answers
52
UML : OBJECT DIAGRAM
Why object Diagram is required if class diagram is available for a system? What extra design details object diagram can give than class diagram? Please explain.. Share any valid link if you know Thanks in advance.
Why object Diagram is required if class diagram is available for a system?What extra design details object diagram can give than class diagram? Please explain..Share any ...
sh!va
547
views
sh!va
asked
Nov 29, 2016
Object Oriented Programming
object-oriented-programming
+
–
–1
votes
0
answers
53
How object based programming is different from object oriented languages?
Choose the correct satatement about how object based programming is differnt from object oriented languages? I. Object based langauges do not support Inheritance II. Object based langauges do not support operator overloading III. Object based langauges do not ... . b. I, II and III c. I, III and IV d. I, II, III and IV
Choose the correct satatement about how object based programming is differnt from object oriented languages?I. Object based langauges do not support InheritanceII. Object...
sh!va
298
views
sh!va
asked
Nov 12, 2016
Programming in C
object-oriented-programming
+
–
1
votes
1
answer
54
UGC NET CSE | August 2016 | Part 3 | Question: 39
Which of the following is a correct statement ? Composition is a strong type of association between two classes with full ownership. Composition is a strong type of association between two classes with partial ownership. ... classes with partial ownership. Composition is a weak type of association between two classes with strong ownership.
Which of the following is a correct statement ?Composition is a strong type of association between two classes with full ownership.Composition is a strong type of associa...
makhdoom ghaya
2.1k
views
makhdoom ghaya
asked
Oct 1, 2016
Object Oriented Programming
ugcnetcse-aug2016-paper3
object-oriented-programming
composition
+
–
1
votes
1
answer
55
UGC NET CSE | August 2016 | Part 3 | Question: 37
Constructors have _____ return type. void char int no
Constructors have _____ return type.voidcharintno
makhdoom ghaya
1.1k
views
makhdoom ghaya
asked
Oct 1, 2016
Object Oriented Programming
ugcnetcse-aug2016-paper3
object-oriented-programming
constructor
+
–
0
votes
1
answer
56
UGC NET CSE | August 2016 | Part 2 | Question: 15
A function template in C++ provides _____ level of generalization. $4$ $3$ $2$ $1$
A function template in C++ provides _____ level of generalization.$4$ $3$ $2$$1$
makhdoom ghaya
1.5k
views
makhdoom ghaya
asked
Sep 24, 2016
Object Oriented Programming
ugcnetcse-aug2016-paper2
object-oriented-programming
c++
function
+
–
0
votes
1
answer
57
UGC NET CSE | August 2016 | Part 2 | Question: 13
If a function is friend of a class, which one of the following is wrong ? A function can only be declared a friend by a class itself. Friend functions are not members of a class, they are associated with it. Friend functions are members of a class. It can have access to all members of the class, even private ones.
If a function is friend of a class, which one of the following is wrong ?A function can only be declared a friend by a class itself.Friend functions are not members of a ...
makhdoom ghaya
3.5k
views
makhdoom ghaya
asked
Sep 24, 2016
Object Oriented Programming
ugcnetcse-aug2016-paper2
object-oriented-programming
friend-function
c++
+
–
0
votes
1
answer
58
UGC NET CSE | June 2010 | Part 2 | Question: 14
Match the following : ... $\text{(a)-5, (b)-4, (c)-3, (d)-1, (e)-2}$
Match the following :$\begin{array}{clcl} \text{(a)}& \text{Garbage collection in} & \text{1.} & \text{Java} \\ \text{(b)}& \text{Nameless Object} & \text{2.} & \text{ge...
makhdoom ghaya
893
views
makhdoom ghaya
asked
Sep 15, 2016
Object Oriented Programming
ugcnetcse-june2010-paper2
object-oriented-programming
+
–
1
votes
1
answer
59
UGC NET CSE | June 2010 | Part 2 | Question: 13
Member of a class specified as ______ are accessible only to method of the class. Private Public Protected Derive
Member of a class specified as ______ are accessible only to method of the class.PrivatePublicProtectedDerive
makhdoom ghaya
2.7k
views
makhdoom ghaya
asked
Sep 15, 2016
Object Oriented Programming
ugcnetcse-june2010-paper2
object-oriented-programming
+
–
3
votes
1
answer
60
UGC NET CSE | June 2011 | Part 2 | Question: 13
The goal of operator overloading is To help the user of a class To help the developer of a class To help define friend function None of the above
The goal of operator overloading isTo help the user of a classTo help the developer of a classTo help define friend functionNone of the above
makhdoom ghaya
1.5k
views
makhdoom ghaya
asked
Aug 22, 2016
Others
ugcnetcse-june2011-paper2
object-oriented-programming
operator-overloading
+
–
Page:
« prev
1
2
3
4
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register