OOPS Interview Questions
Questions Answers Views Company eMail

WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??

NIIT, MIT, Biocon,

21 21832

In multilevel inheritance constructors will be executed from the .... class to ... class

TCS, ABCO,

2 9673

write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

1570




You attempt to query the data base with this command: SELECT name, salary FROM employee WHERE salary=(SELECT salary FROM employee WHERE last name='Wagner' OR dept no=233) Choose most appropriate option from the following: 1)Sub-queries are not allowed in the where clause. 2)a multiple row sub-query used with a single row comparison operator. 3)a single row query is used with a multiple row comparison operator.

Zycus Infotech,

10 8499

write a function that takes an integer array as an input and finds the largest number in the array. You can not sort array or use any API or searching needs?

IBMS, Zycus Infotech,

2 9194

why c++ is a highlevel language

Satyam, Tech Mahindra,

3 3075

Whatis the difference between oop and object based language

3 3016

whats the difference between c and c++

Syntel,

7 5045




Program to check whether a word is the first word of the sentence.

1 1598

Program to check whether a word is in all capital letters

1 3048

Program to check whether a word starts with a capital letter or not.

Infosys,

1 2775

Program to open a file with First argument

TCS,

1 1681

Program to read a comment string

IBM,

1 1562

can we make a class static without using static keyword?

Aspire,

5 5483

what is the difference between class and structure in C++?

Aspire,

9 8755


Post New OOPS Questions






Un-Answered Questions { OOPS }

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.

496


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

676


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

4506


What is interface? When and where is it used?

628


to find out the minimum of two integer number of two different classes using friend function

673


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

672


what type of question are asked in thoughtworks pair programming round ?

142


Prepare me a program for the animation of train

973


what are the realtime excercises in C++?

1284


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

612


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

706


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?

396


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

1293


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

5072


what is difference between class template and template class?

1128