OOPS Interview Questions
Questions Answers Views Company eMail

There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1443

string is a class or data type in java?

3 4112

#include using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }

TCS, Wipro,

2 5980

#include using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile

CTS, Wipro,

1 4524

WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 4343

what are the ways in which a constructors can be called?

TCS,

2 5763

what are the ways in which a constructors can be called?

1570

c++ is a purely oop concept?

Google, TCS,

3 5105

what is the advantage in software? what is the difference between the software developer and Engineer

1 2607

#include using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }

1 3625

i^=j; j^=i; i^=j; value of i,j

1 2902

program for insertion ,deletion,sorting in double link list

2269

what is a class

6 5720

• What are the desirable attributes for memory managment?

1714

Can we create object of class with private constructor?

5 6960


Post New OOPS Questions

Un-Answered Questions { OOPS }

officer say me - i am offered to a smoking , then what can you say

1567


Write a c++ program to display pass and fail for three student using static member function

2798


What is the highest level of cohesion?

565


Can you name some types of inheritance?

629


program for insertion ,deletion,sorting in double link list

2269






What are the three main types of variables?

593


What is polymorphism and types?

591


What is object in oop?

669


Why is oop useful?

591


Why do we use oops?

583


What is abstraction in oop?

625


What is destructor give example?

593


What is constructor overloading in oop?

595


What is pointer in oop?

528


What is oops and why we use oops?

564