Series: Subject: Topic:

OOPS Interview Questions

Showing Questions 1 - 20 of 357 Questions
First | Prev | | Next | Last Page
Sort by: 

Which class is not inherited from object class?

Asked By: Debdulal | Asked On: Jan 16th, 2007

Answered by: Pongapundit on: Sep 23rd, 2014

The class Class is not inherited from Object.

Answered by: sheetalkamthe on: Mar 16th, 2007

Abstract class

write a program to interchange 2 variables without using the third one.

Asked By: Interview Candidate | Asked On: Jun 24th, 2005

Answered by: Ankesh Singh on: Sep 18th, 2014

X = x+y;
y = x-y;
x = x-y;

Answered by: bhanu on: May 28th, 2014


How do you differentiate between a constructor and normal function?

Asked By: ykbharat | Asked On: Mar 13th, 2007

Answered by: ANKESH SINGH on: Sep 18th, 2014

Constructor is a function which called automatically when a object of class is initialize, but a method is called when its explicit called by object

Answered by: Raviteja on: Apr 25th, 2014

When we create an object, the constructor is invoked and that constructor initializes the object of that class

how do you declare the following: an array of three pointers to chars an array of three char pointers a pointer to array of three chars a pointer to function which receives an int pointer and returns...

Asked By: Interview Candidate | Asked On: Jun 24th, 2005

Answered by: Kunal Wadhwa on: Sep 14th, 2014

An array of three pointers to chars would be char *ptr[3]; Array of three char pointers char *ptr[3]; Pointer to array of three chars char (*ptr)[3]; Pointer to function which receives an int pointer ...

Answered by: hema m on: Apr 29th, 2013

Answer for 1 & 2 are same

Difference between data encapsulation vs abstraction

Asked By: Manpreet kaur | Asked On: Aug 26th, 2006

Answered by: shubhank on: Sep 3rd, 2014

Encapsulation is not abstraction. and vice versa.

Answered by: rajesh.tiet on: Jan 7th, 2011

Abstraction and encapsulation are fundamentals of OOPS. If we are to answer what is oops, then we ll say it is an improvement over structured programming, with the help of its four fundamentals, encap...

What is the use/advantage of function overloading

Asked By: harsha | Asked On: Oct 5th, 2005

Please suggest use of fo

Answered by: sachin on: Aug 13th, 2014

We can Define Multiple Function with same name to perform same task. Compiler can not compile a function separately

Answered by: dharme kalita on: Sep 22nd, 2011

Using the concept of function overloading; we can design a family of functions with one function name but with different argument lists. the function would perform different operations depending on the argument list in the function call.

Basic elements of oop

Asked By: saikianj | Asked On: Jun 10th, 2014

What are the basic elements of oop paradigm? i have browsed the net but I am unable to find a satisfactory answer. Kindly do not down-vote if this question have been asked before or if deemed irrelevant. Thanks in advance.

Answered by: Vinayak Arote on: Jun 23rd, 2014

There are four basic paradigms of OOP they are as follows:-

1) Abstraction
2) Polymorphism
3) Inheritance
4) Encapsulation

what is the similarity between a structure, union and enumeration?

Asked By: Interview Candidate | Asked On: Jun 24th, 2005

Answered by: HET on: Jan 16th, 2014

Both of them let you define new data types

Answered by: yogeshpanda on: Sep 21st, 2005

They all are User defined data types not the standered data types.

are the expressions arr and &arr same for an array of integers?

Asked By: Interview Candidate | Asked On: Jun 24th, 2005

Answered by: ruphaensil on: Dec 31st, 2013

Error...because a is undefined

Answered by: Mohamed on: May 8th, 2013

Actually arr and &arr are different. arr holds the base address of the array arr[], but &arr holds the address of the entire array. but both expressions points to the same base address.{geshibot langu...

What is an abstraction?

Asked By: sravan reddy | Asked On: Aug 13th, 2013

Does the C supports abstraction?With example...And what is the diff. B/w abstraction and encapsulation?

Answered by: Anamika on: Oct 2nd, 2013

It is concept which only requires essential features and hides all background details of the system.

What is overloading at oop ?

Asked By: dipak43 | Asked On: May 21st, 2012

Answered by: chitra on: Oct 2nd, 2013

Overloading means assigning different meaning to an operator,depending on the context.c++ permits overloading of operator thus allowing us to assign multiple meaning to an operator.

Answered by: sugumar on: Jul 10th, 2013

The overloading is mainly defined as same function name and different parameter . its called as overloading

Write a C++ program to accept three digits (i.E 0-9)and print all possible combinations fro these digits.(for exanple if the three digits are 1,2,3 then all possible combinations are 123,132,231,213,312,321...

Asked By: Chinmayee Satapathy | Asked On: Sep 13th, 2006

Answered by: sreerag on: Jul 3rd, 2013

  1. #include<iostream.h>
  2. void main()
  3. {
  4.         int z,a,b,c,q,w,e,r,t;
  5.         cout<<"enter a three digit number";
  6.         cin>>z;
  7.         a=z/100;
  8.         c=z%10;
  9.         b=(z-(a*100+c))/10;
  10.         z=a*100+b*10+c;
  11.         cout<<"first="<<z<<"
  12. ";
  13.         q=a*100+c*10+b;
  14.         cout<<"second="<<q<<"
  15. ";
  16.         w=b*100+c*10+a;
  17.         cout<<"third="<<w<<"
  18. ";
  19.         e=b*100+a*10+c;
  20.         cout<<"fourth="<<e<<"
  21. ";
  22.         r=c*100+a*10+b;
  23.         cout<<"fifth="<<r<<"
  24. ";
  25.         t=c*100+b*10+a;
  26.         cout<<"sixth="<<t;
  27. }

Answered by: manochasunil on: Feb 12th, 2007

Int a[3]; a[0] = 1; a[1] = 2; a[2] = 3; // Print all the permutations of a three digit number for (int i = 0; i

Difference between object-oriented programming and procedure oriented programming

Asked By: Manpreet Kaur | Asked On: Oct 24th, 2006

Answered by: chaitanya on: Jul 3rd, 2013

In procedure oriented programming more emphasis is given to code rather to data.The given large program is divided in to a number of functions.Those functions are again dived in to sub-functions and s...

Answered by: shalini on: May 10th, 2012

The main difference b/w pop and oops is ...

pop is based on function and oops is based on classes and objects.

difference between composition and aggregation.

Asked By: Interview Candidate | Asked On: Aug 9th, 2005

Answered by: giridhar on: Jun 18th, 2013

Aggregation: Its dependence on each other. Means if one is off then other should be off[No changed].
Composition: Its not dependence on each other. Means if one is off then other still be there with help of other thing or change.

Answered by: charan03 on: Dec 14th, 2010

Composition : - Two objects are same life time is called composition.Aggregation :- Two objects are different life time is called aggergation.

which header file should you include if you are to develop a function which can accept variable number of arguments?

Asked By: Interview Candidate | Asked On: Jun 24th, 2005

Answered by: hema mathivanan on: Apr 29th, 2013

  1. #include stdarg.h

Answered by: Ajay Kanse on: Jul 1st, 2007


What is the difference between implicit function & explicit function.

Asked By: nameetapani | Asked On: Jul 25th, 2007

Answered by: qaisar badshah on: Mar 22nd, 2013

Is the equation of circle is explicit function or not

Answered by: Sandhya.Kishan on: Jun 13th, 2012

A function in which the dependent variable has not been given in terms of the independent variable is known as implicit function.Ex: 2x-y = 3 A function which determines the output value in terms o...

What is OOPS?

Asked By: Interview Candidate | Asked On: Jul 19th, 2005

Oop is the common abbreviation for object-oriented programming. 

Star Read Best Answer

Editorial / Best Answer

Answered by: shahistha

Answered On : Dec 5th, 2005

OOPs is an Object Oriented Programming language,which is the extension of Procedure Oriented Programming language.OOps reduce the code of the program because of the extensive feature of Polymorphism.OOps have many properties such as DataHiding,Inheritence,Data Absraction,Data Encapsulation and many more.

Answered by: pooja odhekar on: Feb 28th, 2013

OOPS provides features like polymorphism, inheritance, abstraction.

Answered by: K SURESH on: Feb 18th, 2013

OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class. Class is a collection of the o...

What is memset, and why it is used, when it is used?

Asked By: psunitha | Asked On: Aug 31st, 2007

I need a simple example progam for this with clear definition

Answered by: Vinay on: Jan 22nd, 2013

This code gives warnings which is not the good sign while dealing with the network programming.

Answered by: vignesh1988i on: Oct 4th, 2009

How will this memset() function willl handle the worst case (ie) when the string is lesser than the given length If my string is   char string[]="i love my india";If I use the function memset(string, '*' , 20);Will it handle these type of complexities?

explain working of printf.

Asked By: Interview Candidate | Asked On: Jun 24th, 2005

Answered by: praveen on: Jan 1st, 2013

Printf means it prints the user statements

Answered by: unrealvicky on: Aug 17th, 2010

Printf is a Variadic function. Variadic functions are functions which may take a variable number of arguments and are declared with an ellipsis in place of the last parameter. int printf(char *, ...);...

First | Prev | | Next | Last Page





twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.