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.

1447

string is a class or data type in java?

3 4120

#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 5987

#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 4529

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

2 4349

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

TCS,

2 5770

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

1571

c++ is a purely oop concept?

Google, TCS,

3 5111

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

1 2613

#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 2905

program for insertion ,deletion,sorting in double link list

2274

what is a class

6 5722

• What are the desirable attributes for memory managment?

1718

Can we create object of class with private constructor?

5 6975


Post New OOPS Questions

Un-Answered Questions { OOPS }

Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2566


What is difference between polymorphism and inheritance?

611


How is class defined?

573


Why do while loop is used?

568


What is oops with example?

559






What is basic concept of oop?

690


Why do we need oop?

656


What is encapsulation selenium?

549


What is the highest level of cohesion?

566


What are properties in oop?

595


What is polymorphism give a real life example?

550


Can enum be null?

581


What is encapsulation oop?

568


Why is oop better than procedural?

599


What is balance factor?

575