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 20832

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

TCS, ABCO,

2 8466

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

1468

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 7784

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 8490

why c++ is a highlevel language

Satyam, Tech Mahindra,

3 2697

Whatis the difference between oop and object based language

3 2711

whats the difference between c and c++

Syntel,

7 4730

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

1 1462

Program to check whether a word is in all capital letters

1 2920

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

Infosys,

1 2624

Program to open a file with First argument

TCS,

1 1527

Program to read a comment string

IBM,

1 1458

can we make a class static without using static keyword?

Aspire,

5 5250

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

Aspire,

9 8249


Post New OOPS Questions


Un-Answered Questions { OOPS }

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.

4438


• What are the desirable attributes for memory managment?

500


Templates mean

484


what is the 3 types of system development life cycle

1216


#include #include #include #include void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

650


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

562


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

366


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

698


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?

351


what is different between oops and c++

844


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?

1128


write knight tour problem which is present in datastructure

1078


How to call a non virtual function in the derived class by using base class pointer

2695


Prepare me a program for the animation of train

919


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

552