GeekInterview.com
Series: Subject: Topic:

Object-Orientation Concepts Interview Questions

 
Sub Categories (+ View)
Subject Name
Questions
Answers
Last updated
15
22
Apr
30th,
2012
85
381
Apr
6th,
2013
25
40
Apr
28th,
2013
Showing Questions 1 - 20 of 23 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Write a C program to reverse the string without using strrev() function?

Asked By: vigneshwaran | Asked On: Jan 18th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Rohan

View all answers by Rohan

Member Since Nov-2005 | Answered On : Feb 18th, 2006

#include <stdio.h>
#include <conio.h>
#include <string.h>

void main()
{
   char *str;
   int i,len;

  //not using any temp variable and assume we can use only string array and   length

   printf("Enter String : ");
   scanf("%s",str);
   len=strlen(str)-1;
   for(i=0;i<strlen(str)/2;i++)
   {
         str[i]+=str[len];
         str[len]=str[i]-str[len];
         str[i]=str[i]-str[len--];
   }
   printf("Reverse String is : %s",str);
   getch();
}

Answered by: Ankur Verma on: May 18th, 2013

Code
  1.  
  2. #include <stdio.h>
  3. #include <string.h>  
  4. void main()
  5. {  
  6. int len=0,i=0;  
  7. char s[16]="virendra";      
  8. while (*(s+len) !=)
  9. {    
  10. len++;
  11. }  
  12. printf("%d",len);      
  13. for (i=0;i<=(len)/2;
  14. i++)
  15. {      
  16. printf("  i:
  17. %d len:%d and s[i]:
  18. %c s[len-1]:%c",i,len-1,s[i],s[len-1]);           s[i]+=s[len-1];    
  19. s[len-1]=s[i]-s[len-1];    
  20. s[i]-=s[len-1];            
  21. len--;  
  22. }  
  23. printf(" ");  
  24. puts(s);
  25. }
  26.  

Answered by: sunny on: Apr 25th, 2013

it is asking for prototype ..???

What is the diff between review and walkthough?

Asked By: suvathi | Asked On: Feb 1st, 2013

1.What is the dif between review and walkthrough? on testing perspective ,who will do review and walkthrough?Clarify with an real example? 2.What is meant by inspection and who will lead the inspection and roles involved in inspection?

Star Read Best Answer

Editorial / Best Answer

Answered by: BA_Apprentise

View all questions by BA_Apprentise   View all answers by BA_Apprentise

Member Since Apr-2013 | Answered On : Apr 18th, 2013

In laymans term walk-through is nothing but running thru the requirements while review is making an analysis of the progress and if the case may be a change has to be recommended

Answered by: anji on: Apr 25th, 2013

Review if more formal than walkthrough .Walkthrough is done with a purpose of gain understanding of system and learning.

Answered by: BA_Apprentise on: Apr 18th, 2013

In laymans term walk-through is nothing but running thru the requirements while review is making an analysis of the progress and if the case may be a change has to be recommended

Define raster and vector data.

Asked By: niamat Faizi | Asked On: Aug 28th, 2011

Define raster and vector data. Explain what is the difference between raster and vector data?

Star Read Best Answer

Editorial / Best Answer

Answered by: Sandhya.Kishan

View all answers by Sandhya.Kishan

Member Since Mar-2012 | Answered On : Jul 4th, 2012

Raster data is a set of horizontal lines composed of individual pixels, used to form an image on a CRT or other screen.Raster data makes use of matrix of square areas to define where features are located. These squares are typically of uniform size, and their size determines the detail that can be maintained in the dataset.Raster data represent square areas, they describe interiors rather than boundaries. Vector data use X and Y coordinates to define the locations of points, lines, and areas (polygons) that correspond to map features, vector data tend to define centers and edges of features.They are excellent for capturing and storing spatial details

Answered by: Sandhya.Kishan on: Jul 4th, 2012

Raster data is a set of horizontal lines composed of individual pixels, used to form an image on a CRT or other screen.Raster data makes use of matrix of square areas to define where features are loca...

Basic elements of a picture in volume graphics

Asked By: Rujul | Asked On: Mar 18th, 2007

The basic elements of a picture in volume graphics is 1. Pixel 2. Volsel 3. Voxel 4. EIther pixel or voxel

Star Read Best Answer

Editorial / Best Answer

Answered by: Sandhya.Kishan

View all answers by Sandhya.Kishan

Member Since Mar-2012 | Answered On : Jul 4th, 2012

The basic elements of a picture in volume graphics is voxel.

Answered by: Sandhya.Kishan on: Jul 4th, 2012

The basic elements of a picture in volume graphics is voxel.

Answered by: sanjayit on: Dec 31st, 2008

pixel

What are application clusters in crm?

Asked By: sumantakshay | Asked On: May 16th, 2007

Star Read Best Answer

Editorial / Best Answer

Answered by: Sandhya.Kishan

View all answers by Sandhya.Kishan

Member Since Mar-2012 | Answered On : Apr 17th, 2012

CRM application cluster is a software that ranges in size and complexity making it possible for an organization to select the type of software needed the most. It consists of how a customer is related to sales,marketing and fulfillment,customer service and support,retention and loyalty program and contact and account management.

Answered by: Sandhya.Kishan on: Apr 17th, 2012

CRM application cluster is a software that ranges in size and complexity making it possible for an organization to select the type of software needed the most. It consists of how a customer is relate...

Stacks task

Asked By: mohit23bisht | Asked On: Aug 8th, 2010

What kind of useful task does stacks support?

Star Read Best Answer

Editorial / Best Answer

Answered by: Sandhya.Kishan

View all answers by Sandhya.Kishan

Member Since Mar-2012 | Answered On : Apr 17th, 2012

Stack supports four major computing areas,they are 1.expression evaluation 2.subroutine return address storage 3.dynamically allocated local variable storage and 4.subroutine parameter passing.

Answered by: Sandhya.Kishan on: Apr 17th, 2012

Stack supports four major computing areas,they are

1.expression evaluation
2.subroutine return address storage
3.dynamically allocated local variable storage and
4.subroutine parameter passing.

Two-dimensional arrays

Asked By: sony24 | Asked On: Jul 7th, 2009

A two-dimensional array x (7,9) is stored linearly column-wise in a computer's memory. Each element requires 8 bytes for storage of the value. If the first byte address of x (1,1) is 3000, what would be the last byte address of x (2,3)?

Star Read Best Answer

Editorial / Best Answer

Answered by: Sandhya.Kishan

View all answers by Sandhya.Kishan

Member Since Mar-2012 | Answered On : Apr 17th, 2012

use the formulae X(i,j)=Base+w[n(i-1)+(j-1)] where m=7 ,n =9 ,i=2 ,j=3 hence 3000+8*[9(2-1)+(3-1)] =3000+8*(9+2) =3000+8*11=3088

Answered by: Sandhya.Kishan on: Apr 17th, 2012

use the formulae

X(i,j)=Base+w[n(i-1)+(j-1)]

where m=7 ,n =9 ,i=2 ,j=3

hence 3000+8*[9(2-1)+(3-1)]

=3000+8*(9+2)

=3000+8*11=3088

Why contructors does not supports visual functions?

Asked By: muzammil | Asked On: Nov 23rd, 2007

Star Read Best Answer

Editorial / Best Answer

Answered by: Sandhya.Kishan

View all answers by Sandhya.Kishan

Member Since Mar-2012 | Answered On : Apr 17th, 2012

Constructor does not support virtual functions because we need an object to invoke a virtual method in the first place and more over constructors are used to initializing objects,which is a static type.Virtual functions are invoked on the dynamic type of the object,hence the object may not be properly initialized when a constructor call is made.Since the derived part of the object would not be initialized during the execution of base class constructor,hence calling any virtual method from base class constructor does not work well.

Answered by: Sandhya.Kishan on: Apr 17th, 2012

Constructor does not support virtual functions because we need an object to invoke a virtual method in the first place and more over constructors are used to initializing objects,which is a static typ...

Race around condition

Asked By: Asnat | Asked On: Jun 4th, 2010

What is race around condition?

Star Read Best Answer

Editorial / Best Answer

Answered by: Sandhya.Kishan

View all answers by Sandhya.Kishan

Member Since Mar-2012 | Answered On : Apr 17th, 2012

A race around condition is a fault in the process or a system where the output or the result of the process is critically and unexpectedly dependent on the timing of other events. Race condition especially occurs in multithreaded or in distributed systems.

Answered by: Sandhya.Kishan on: Apr 17th, 2012

A race around condition is a fault in the process or a system where the output or the result of the process is critically and unexpectedly dependent on the timing of other events.
Race condition especially occurs in multithreaded or in distributed systems.

Static storage class

Asked By: shyamkumar1221 | Asked On: Nov 12th, 2010

Give one real time application where static variables are used.

Star Read Best Answer

Editorial / Best Answer

Answered by: clickankit4u

View all answers by clickankit4u

Member Since Feb-2009 | Answered On : Aug 3rd, 2011

Thinks of a situation where you need to do some work just once in a function irrespective of how many times that function is invoked then u can have a static variable which will keep a track of it. eg int main () { static int once = 0; if (!once) { once++; /*code need to be executed once*/ } /*reset of the code*/ }

Answered by: clickankit4u on: Aug 3rd, 2011

Thinks of a situation where you need to do some work just once in a function irrespective of how many times that function is invoked then u can have a static variable which will keep a track of it. eg...

What is the main difference between portability and platform independent ?

Asked By: deepa | Asked On: May 22nd, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Lecks

View all answers by Lecks

Member Since Feb-2010 | Answered On : Feb 21st, 2010

I agree it is correct to say that Java is platform independent, but it is due to the Java Virtual Machine. Java programs are only intermediately compiled, which allows adaptation to the given environment it needs to run in later.

An example of a portability issue is the creation of Unix. The first version was not portable. It was specific only to that computer's architecture. Unix became portable when it was rewritten in C. The new version written in C was portable because C served as a "translator", if you will, between what underlying architecture or devices were physically in the computer and what unix wanted them to do.

Answered by: Lecks on: Feb 21st, 2010

I agree it is correct to say that Java is platform independent, but it is due to the Java Virtual Machine. Java programs are only intermediately compiled, which allows adaptation to the give...

Answered by: akki21 on: Feb 21st, 2007

"portability" refers to the ability of a system to support a particular software.it depends on the system configurations.

"platform independent"
JAVA is a platform independent software. it need not be installed for the processing of its program

Can we execute any simple program without installing any operating system?

Asked By: Anurag | Asked On: Apr 26th, 2006

I think no,can u suggest?

Star Read Best Answer

Editorial / Best Answer

Answered by: kunal kaushal

Answered On : Jul 24th, 2006

No! we can not run any simple program with out using any interface such as operatin systen or System software. but in some cases like Machine level languge or firmware run without any software because it directlly communicate with hardware and makes the hardware active so other program can run using his platform.

Answered by: kaaka on: Feb 8th, 2008

Havent u guys heard of Assembly Language??? A microprocessor kit?? They dont have OS... But still we execute programs......

Answered by: jana05 on: Jan 11th, 2008

I think the person just wanted to run a simple program on a std PC, possibly due to curiosity.  Well, if the assumption is ok, then the following answer might be of help. A std PC is made of hard...

What is actually meant for buffer? How does it work

Asked By: rohit dwivedi9450 | Asked On: Mar 24th, 2007

Star Read Best Answer

Editorial / Best Answer

Answered by: Ankur

Answered On : Jul 14th, 2007

Buffer is something that is used to hold the data temporarly.
Ex-
If we are watching any thing online,then buffering of data takes place i.e for sometime data get stored in buffer then processed.

Answered by: jana05 on: Jan 11th, 2008

Its a temporary location where you can preserve the data. For example when you want to swap 2 nos like x=2 and y=5, so that after swaping you get x=5 and y=2. One method wud be to use a temporary vari...

Answered by: Ankur on: Jul 14th, 2007

Buffer is something that is used to hold the data temporarly.
Ex-
If we are watching any thing online,then buffering of data takes place i.e for sometime data get stored in buffer then processed.

What is the difference between client response time and server response time

Asked By: Arjun | Asked On: Aug 23rd, 2007

Star Read Best Answer

Editorial / Best Answer

Answered by: amitverma

View all answers by amitverma

Member Since Nov-2007 | Answered On : Nov 14th, 2007

The major difference between the response time between a client & server is of - response time.
Usually client response time is lesser in comparison to the server response time.

Answered by: amitverma on: Nov 14th, 2007

The major difference between the response time between a client & server is of - response time.
Usually client response time is lesser in comparison to the server response time.

How do you implement "queue" functionality by using "2 stacks"

Asked By: Guna S | Asked On: Jul 11th, 2007

Star Read Best Answer

Editorial / Best Answer

Answered by: saradalincoln

View all answers by saradalincoln

Member Since Jun-2007 | Answered On : Jul 17th, 2007

hi,

1. Take 2 empty stacks.
2. Fill the 1st stack with some items (eg: input 100, 101, 102, 103)
3. Now read the items from 1st stack in LIFO order and write to 2nd stack.
    (By this the 2nd stack will get the items in the order .. 103, 102, 101, 100)
4. Now read the items from 2nd stack in LIFO order i.e. the output will be
    100, 101, 102, 103. 
    (this is the queue order FIFO with respect to the actual items entered in 1st
     stack.)


Thanks,
Sarada.

Answered by: saradalincoln on: Jul 17th, 2007

hi,1. Take 2 empty stacks.2. Fill the 1st stack with some items (eg: input 100, 101, 102, 103)3. Now read the items from 1st stack in LIFO order and write to 2nd stack.     (By this the...

Give the complete difference between database, relational database and object database?

Asked By: Sandeep | Asked On: Oct 17th, 2005

Star Read Best Answer

Editorial / Best Answer

Answered by: PKayanan

Answered On : May 14th, 2007

A database is an organized collection of information.  It is structured so you can jump to the information by using a key, and find related infromation by navigating a path.  A sequential (flat)  file is not considered a database. 

A relational database contains one-to-many relationships.

A networked database contains one-to-many and many-to-many relationships.

Answered by: PKayanan on: May 14th, 2007

A database is an organized collection of information.  It is structured so you can jump to the information by using a key, and find related infromation by navigating a path.  A sequential (f...

Answered by: srikanth on: Apr 14th, 2006

Collection of inter-related data is called as database.

A DATABASE WHICH SUPPORTS ALL TYPES OF RELATIONS(one-one,one-many,many-one,many-many)IS CALLED AS RELATIONAL DATABASE.

object database or object oriented database both r same.

object database=relational database+oops

What is the osi model?

Asked By: ramdas baghel | Asked On: May 13th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Gurvinder Singh

Answered On : Dec 28th, 2006

OSI is Open System Interface Model. It is a concept which is used to make data transfer in steps. There are 7 layers and each layer interact with its counterpart. earlier a product made by any abc co was able to communicate with the same company product. to communicate with different co's products it was created. as it's name shows "OPEN System Interface"

Answered by: SachinK on: Feb 8th, 2007

I think its Open System Interconection Model

Answered by: Gurvinder Singh on: Dec 28th, 2006

OSI is Open System Interface Model. It is a concept which is used to make data transfer in steps. There are 7 layers and each layer interact with its counterpart. earlier a product made by any abc co ...

What are the differences between desktop and enterprise application?

Asked By: DarkDawn | Asked On: Jan 7th, 2007

Star Read Best Answer

Editorial / Best Answer

Answered by: Harshit Mistry

Answered On : Feb 1st, 2007

Hi,Desktop application runs on a single machine. It could be a part of network. But Application and database resides on same machine. And only one user can access it at a time.Enterprise application is generally a multi-tier application. Many a concurrent users can access data and application at a time.

Answered by: Harshit Mistry on: Feb 1st, 2007

Hi,Desktop application runs on a single machine. It could be a part of network. But Application and database resides on same machine. And only one user can access it at a time.Enterprise application i...

What is virtual memory under LINUX?

Asked By: Raghavendra | Asked On: Mar 20th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Hitesh

Answered On : Jan 3rd, 2007

Linux supports virtual memory, that is, using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused block of memory to the hard disk so that the memory can be used for another purpose. When the original contents are needed again, they are read back into memory. This is all made completely transparent to the user; programs running under Linux only see the larger amount of memory available and don't notice that parts of them reside on the disk from time to time. Of course, reading and writing the hard disk is slower (on the order of a thousand times slower) than using real memory, so the programs don't run as fast. The part of the hard disk that is used as virtual memory is called the swap space

Answered by: Hitesh on: Jan 3rd, 2007

Linux supports virtual memory, that is, using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused ...

Answered by: Warrior on: Mar 28th, 2006

Virtual Memory in Linux is possible using a swap filesystem rather than using a file for swapping purpose in windows

Stack pointer

Asked By: nitin.goel | Asked On: Apr 8th, 2006

Can anyone give me complete information while performing this situation,a function is running, it has its own stack pointer, memory area now it invokes another function from this point what changes will be in it's memory area and what other changes in data segment, stack segment, heap segment. I want...

Star Read Best Answer

Editorial / Best Answer

Answered by: kalayama

View all answers by kalayama

Member Since Sep-2006 | Answered On : Dec 8th, 2006

There will be a lot of changes in fact. First of all, all the variables the function was suing needs to be pushed into the stack. (we need all these variables when we return from the other function). The Program counter will be pushed to stack too... (When the "return" of second function occurs we should know where to 'return' to)These are the basics which are bound to happen when a function calls another.

Answered by: kalayama on: Dec 8th, 2006

There will be a lot of changes in fact. First of all, all the variables the function was suing needs to be pushed into the stack. (we need all these variables when we return from the other function). ...

Answered by: prasanth on: Nov 27th, 2006

hi,         There will be no change in memory area .And all the major part will be taken by the stack pointer.It depends on the calling conventions like pascals...

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Data Modeling Interview Questions

Data Structures Interview Questions

OLAP Interview Questions

OOPS Interview Questions

UML Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

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.