OOPS Interview Questions
Questions Answers Views Company eMail

write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation

College School Exams Tests, HCL, IBM, TCS,

1 5328

write knight tour problem which is present in datastructure

2154

write string class as your own class in java without using any built-in function

1965

how does a main() in C++ is different from main() in C?

7 24721

How do you make derived class as an abstract class?

Convergys, TCS,

1 4437

Write a program to find out the number of palindromes in a sentence.

TCS,

1 3852

what is static?

4 4526

The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

TCS,

6 9060

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1 3982

write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

Wipro,

1777

what is overloading

MindCracker,

3 4108

what is the diffrence between c# and c++

5 6674

How compiler selects(internally) required overridden function in inheritance?

CSC, Infinite Computer Solutions,

2 5399

They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1399

There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

2 3486


Post New OOPS Questions

Un-Answered Questions { OOPS }

Why we use classes in oop?

567


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1764


What is the difference between inheritance and polymorphism?

579


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4227


What is the renewal class?

2155






What is the fundamental idea of oop?

622


What is the difference between abstraction and polymorphism?

604


What is difference between inheritance and polymorphism?

557


Why multiple inheritance is not possible?

588


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

1566


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6131


What makes a language oop?

589


Why is polymorphism used?

573


What is encapsulation with real life example?

558


What is oops in simple words?

570