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
4
answers
1
C++
Çșȇ ʛấẗẻ
asked
in
Object Oriented Programming
Aug 28, 2023
by
Çșȇ ʛấẗẻ
393
views
non-gate
object-oriented-programming
0
votes
1
answer
2
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 in C
Dec 16, 2022
by
rayhanrjt
310
views
object-oriented-programming
programming
0
votes
0
answers
3
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 in C
Dec 15, 2022
by
rayhanrjt
315
views
programming
object-oriented-programming
java
0
votes
0
answers
4
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 in C
Oct 10, 2022
by
Jeetmoni saikia
564
views
programming
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
rsansiya111
asked
in
Object Oriented Programming
Oct 7, 2022
by
rsansiya111
950
views
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
rsansiya111
asked
in
Object Oriented Programming
Oct 7, 2022
by
rsansiya111
752
views
object-oriented-programming
non-gate
1
vote
1
answer
7
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 in C
Oct 7, 2022
by
rsansiya111
356
views
java
object-oriented-programming
1
vote
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
gatecse
asked
in
Object Oriented Programming
Dec 9, 2020
by
gatecse
691
views
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$
go_editor
asked
in
Object Oriented Programming
Nov 20, 2020
by
go_editor
1.3k
views
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
admin
asked
in
Object Oriented Programming
Apr 1, 2020
by
admin
1.3k
views
nielit2017oct-assistanta-it
non-gate
object-oriented-programming
0
votes
1
answer
11
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
0
votes
1
answer
12
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
0
votes
1
answer
13
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
admin
asked
in
Object Oriented Programming
Mar 31, 2020
by
admin
983
views
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
0
votes
1
answer
14
NIELIT 2016 DEC Scientist B (IT) - Section B: 24
An operation can be described as: Object behavior Functions Class behavior (A),(B)
admin
asked
in
Object Oriented Programming
Mar 31, 2020
by
admin
3.5k
views
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
0
votes
1
answer
15
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.
admin
asked
in
Object Oriented Programming
Mar 31, 2020
by
admin
3.7k
views
nielit2016dec-scientistb-it
non-gate
object-oriented-programming
0
votes
1
answer
16
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()
admin
asked
in
Object Oriented Programming
Mar 31, 2020
by
admin
1.3k
views
nielit2016dec-scientistb-cs
non-gate
object-oriented-programming
0
votes
2
answers
17
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
admin
asked
in
Object Oriented Programming
Mar 30, 2020
by
admin
1.4k
views
nielit2017july-scientistb-it
non-gate
object-oriented-programming
1
vote
2
answers
18
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
admin
asked
in
Object Oriented Programming
Mar 30, 2020
by
admin
1.7k
views
nielit2017july-scientistb-it
non-gate
object-oriented-programming
0
votes
2
answers
19
UGC NET CSE | June 2005 | Part 2 | Question: 13
The data hiding is taken care by : Abstraction Encapsulation Modularity Inheritance
go_editor
asked
in
Object Oriented Programming
Mar 26, 2020
by
go_editor
806
views
ugcnetcse-june2005-paper2
object-oriented-programming
non-gate
0
votes
4
answers
20
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.9k
views
ugcnetcse-jan2017-paper3
object-oriented-programming
0
votes
6
answers
21
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
2.0k
views
ugcnetcse-jan2017-paper3
object-oriented-programming
java
0
votes
3
answers
22
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
3
answers
23
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.4k
views
ugcnetjan2017ii
object-oriented-programming
functions
0
votes
3
answers
24
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.7k
views
ugcnetjan2017ii
object-oriented-programming
functions
0
votes
3
answers
25
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
2.0k
views
ugcnetjan2017ii
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
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)
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 questions tagged object-oriented-programming
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:...