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
Recent questions tagged object-oriented-programming
0
votes
1
answer
1
Object Oriented Programming
Imagine a scenario where new child classes are introduced frequently from a base class. The method calling sequences for every child class are the same but the implementations are different among the child classes. Here which design pattern would you like to apply? Explain the reasons with examples j
rayhanrjt
asked
in
Programming
Dec 16, 2022
by
rayhanrjt
104
views
object-oriented-programming
programming
0
votes
0
answers
2
Java Programming
Suppose, you are implementing Overdraft Account (OD) class using java for a banking app. An OD type account is opened with an approved loan limit (ex 100000/-). The account holder can deposit any amount of money in the OD account at any time. S ... amount of his OD limit. How can u handle the problems mentioned in the question? Write necessary java codes to solve the problem.
rayhanrjt
asked
in
Programming
Dec 15, 2022
by
rayhanrjt
79
views
programming
object-oriented-programming
java
0
votes
0
answers
3
Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be assumed to be either Java or C++, though the syntax is similar. Class P { void f(int i) { print(i); } } Class Q subclass of P { void f(int i) { print(2*i); } } Now consider the following program fragment: P x = new Q(); Q y = new Q(); P z = new Q(); x.f(1); ((P)y).f(1); z.f(1); Here ((P)y) denotes a typecast of y to P. The output produced by executing the above program fragment will be (A) 1 2 1 (B) 2 1 1 (C) 2 1 2 (D) 2 2 2
Jeetmoni saikia
asked
in
Programming
Oct 10, 2022
by
Jeetmoni saikia
328
views
programming
object-oriented-programming
0
votes
1
answer
4
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
rsansiya111
asked
in
Programming
Oct 7, 2022
by
rsansiya111
195
views
object-oriented-programming
1
vote
1
answer
5
Programming Question
An object whose contents cannot be changed once the object is created is called: (a) Immutable object (b) Mutable object (c) Smart object (d) Rich object
rsansiya111
asked
in
Programming
Oct 7, 2022
by
rsansiya111
132
views
java
object-oriented-programming
1
vote
1
answer
6
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
gatecse
asked
in
Object Oriented Programming
Dec 9, 2020
by
gatecse
275
views
nielit-sta-2020
object-oriented-programming
0
votes
0
answers
7
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$
go_editor
asked
in
Object Oriented Programming
Nov 20, 2020
by
go_editor
969
views
ugcnetcse-oct2020-paper2
non-gate
object-oriented-programming
0
votes
1
answer
8
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
Lakshman Bhaiya
asked
in
Object Oriented Programming
Apr 1, 2020
by
Lakshman Bhaiya
674
views
nielit2017oct-assistanta-it
non-gate
object-oriented-programming
0
votes
1
answer
9
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 28
What is ‘Basis of Encapsulation’? object class method all of the mentioned
Lakshman Bhaiya
asked
in
Object Oriented Programming
Apr 1, 2020
by
Lakshman Bhaiya
6.8k
views
nielit2017oct-assistanta-it
non-gate
object-oriented-programming
0
votes
1
answer
10
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(){}
Lakshman Bhaiya
asked
in
Object Oriented Programming
Mar 31, 2020
by
Lakshman Bhaiya
5.0k
views
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
0
votes
1
answer
11
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
Lakshman Bhaiya
asked
in
Object Oriented Programming
Mar 31, 2020
by
Lakshman Bhaiya
577
views
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
0
votes
1
answer
12
NIELIT 2016 DEC Scientist B (IT) - Section B: 24
An operation can be described as: Object behavior Functions Class behavior (A),(B)
Lakshman Bhaiya
asked
in
Object Oriented Programming
Mar 31, 2020
by
Lakshman Bhaiya
2.7k
views
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
0
votes
1
answer
13
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.
Lakshman Bhaiya
asked
in
Object Oriented Programming
Mar 31, 2020
by
Lakshman Bhaiya
3.5k
views
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
0
votes
1
answer
14
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()
Lakshman Bhaiya
asked
in
Object Oriented Programming
Mar 31, 2020
by
Lakshman Bhaiya
854
views
nielit2016dec-scientistb-cs
non-gate
object-oriented-programming
0
votes
2
answers
15
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
Lakshman Bhaiya
asked
in
Object Oriented Programming
Mar 30, 2020
by
Lakshman Bhaiya
992
views
nielit2017july-scientistb-it
non-gate
object-oriented-programming
1
vote
2
answers
16
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 ... Derived's Destructor Derived's Destructor Base$2$'s destructor Base$1$'s destructor Derived's Destructor Compiler Dependent
Lakshman Bhaiya
asked
in
Object Oriented Programming
Mar 30, 2020
by
Lakshman Bhaiya
1.2k
views
nielit2017july-scientistb-it
non-gate
object-oriented-programming
0
votes
4
answers
17
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
go_editor
asked
in
Object Oriented Programming
Mar 24, 2020
by
go_editor
3.3k
views
ugcnetcse-jan2017-paper3
object-oriented-programming
0
votes
6
answers
18
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$
go_editor
asked
in
Object Oriented Programming
Mar 24, 2020
by
go_editor
1.3k
views
ugcnetcse-jan2017-paper3
object-oriented-programming
java
0
votes
3
answers
19
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
7.7k
views
ugcnetcse-jan2017-paper3
object-oriented-programming
java
0
votes
3
answers
20
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
go_editor
asked
in
Object Oriented Programming
Mar 24, 2020
by
go_editor
2.0k
views
ugcnetjan2017ii
object-oriented-programming
functions
0
votes
3
answers
21
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.
go_editor
asked
in
Object Oriented Programming
Mar 24, 2020
by
go_editor
1.1k
views
ugcnetjan2017ii
object-oriented-programming
functions
0
votes
3
answers
22
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
go_editor
asked
in
Object Oriented Programming
Mar 24, 2020
by
go_editor
1.1k
views
ugcnetjan2017ii
object-oriented-programming
0
votes
1
answer
23
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
gatecse
asked
in
Object Oriented Programming
Aug 4, 2019
by
gatecse
845
views
kpgcet-cse-2019
non-gate
object-oriented-programming
0
votes
1
answer
24
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.
gatecse
asked
in
Object Oriented Programming
Aug 4, 2019
by
gatecse
407
views
kpgcet-cse-2019
non-gate
object-oriented-programming
0
votes
0
answers
25
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
gatecse
asked
in
Object Oriented Programming
Aug 4, 2019
by
gatecse
232
views
kpgcet-cse-2019
non-gate
object-oriented-programming
1
vote
6
answers
26
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
Pooja Khatri
asked
in
Object Oriented Programming
Jul 13, 2018
by
Pooja Khatri
4.1k
views
ugcnetcse-july2018-paper2
object-oriented-programming
0
votes
3
answers
27
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
Pooja Khatri
asked
in
Object Oriented Programming
Jul 13, 2018
by
Pooja Khatri
3.1k
views
ugcnetcse-july2018-paper2
object-oriented-programming
java
final
3
votes
2
answers
28
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$
Arjun
asked
in
Object Oriented Programming
Apr 22, 2018
by
Arjun
3.0k
views
isro2018
object-oriented-programming
non-gate
1
vote
0
answers
29
Programming in c plus plus
Give a simple example on inheriting the operator function and using it in programme
anonymous
asked
in
Object Oriented Programming
Apr 22, 2018
by
anonymous
194
views
programming-in-c
inheritance
object-oriented-programming
0
votes
0
answers
30
cplusplus
why did constructor's name is same as class name and it has no return type
kd.....
asked
in
Object Oriented Programming
Mar 21, 2018
by
kd.....
263
views
cpp
programming
object-oriented-programming
Page:
1
2
3
4
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
GO Classes NIELIT Test Series For 2023
Interview Experience : MTech Research(Machine Learning) at IIT Mandi
DRDO Scientist -B
ISRO Scientist-B 2023
BARC RECRUITMENT 2023
Subjects
All categories
General Aptitude
(2.8k)
Engineering Mathematics
(9.7k)
Digital Logic
(3.4k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.7k)
Non GATE
(1.4k)
Others
(2.4k)
Admissions
(667)
Exam Queries
(1.0k)
Tier 1 Placement Questions
(17)
Job Queries
(77)
Projects
(9)
Unknown Category
(867)
Recent questions tagged object-oriented-programming
Recent Blog Comments
Left with 10days, nothing heard back from them,...
I have updated the blog. Thanks for mentioning it.
Mtech(RA) CSE IIT Bombay Project 14 ?
Thanks man @ijnuhb because of u i cleared...
Yes : 720 General