GeekInterview.com
Series: Subject: Topic:

OOPS Interview Questions

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

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

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

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

Answered by: bhanu on: May 28th, 2014

X=x*y;
y=x/y;
x=x/y;

Answered by: dhruv sood on: Nov 5th, 2012

With output

How do you differentiate between a constructor and normal function?

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

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

Answered by: shamshadali on: Sep 9th, 2013

Compare normal function and constructor

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

Code
  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

Code
  1. #include stdarg.h

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

Stdarg.h

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: hema m on: Apr 29th, 2013

Answer for 1 & 2 are same

Answered by: visiuna on: May 19th, 2008

Hi shilpagore,Thank u for ans's  but there totally 5 questions in that. so if u don't mind pls do read question carefully and can u post the ans's please.Thank you.

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 *, ...);...

what are the different types of polymorphism?

Asked By: Interview Candidate | Asked On: Sep 1st, 2005

Answered by: Have Fun on: Dec 28th, 2012

Two:
Ad-hoc polymorphism and universal polymorphism

Answered by: kutty on: Sep 24th, 2012

How to write a simple java programs for overloading & overriding

How can recover the memory

Asked By: sansiya.hemant7 | Asked On: Aug 23rd, 2011

Answered by: Nitin Havaldar on: Dec 23rd, 2012

In oops memory is released through garbage collection. it will check which objects are not reachable by any part of the code then it will release that object and optimize the memory location for newly created objects.

Function and method differences

Asked By: Anood Hamadeen | Asked On: Aug 3rd, 2012

What is the difference between function and method in c, objective c, and Java?

Answered by: anil on: Nov 23rd, 2012

Functions have independent existence means they are defined outside of the class e.g. in C main() is a function while methods do not have independent existence they are always defined inside class e.g. main() in Java is called method.

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

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.