Object-Orientation Concepts Interview Questions

Sub Category
Questions
Last Updated
0
0
Sep 17th, 2019
0
0
Sep 17th, 2019
49
130
Dec 8th, 2018
269
671
Jan 16th, 2021
0
0
Sep 17th, 2019
0
0
Sep 17th, 2019
17
22
Dec 17th, 2015
358
1122
Jul 25th, 2018
0
0
Sep 17th, 2019
25
44
Apr 19th, 2016

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

How can I use Structure padding and I want to re-use the remaining memory further?
ex: struct num {
char ch;
int i;
char s;
};

Editorial / Best Answer

• Dec 6th, 2017

By using #pragma pack(1) we can reduce the size of structure.

```Code#pragma pack(1)

struct num {
char ch;
int i;
char s;
} n1;

printf("Size of num structure is %d ", sizeof(n1));
```

Mantu

• Dec 6th, 2017

By using #pragma pack(1) we can reduce the size of structure.

```Code#pragma pack(1)

struct num {
char ch;
int i;
char s;
} n1;

printf("Size of num structure is %d ", sizeof(n1));
```

•

Decode and Case

What is the difference between Decode and Case with examples?

Manohar

• Oct 4th, 2017

Decode is a function I used it way back in Oracle 6 and 7. Slower than Case.
Case is statement I think it is introduced in 9i, you can use Case instead of Decode, I feel Case is faster when compared to Decode as it jumps to end when condition is met and simpler to understand

VAIBHAV GUPTA

• Apr 9th, 2016

Decode is used in a select statement where as case is a independent statement which occur in where clause.
decode is used for static value but we can use the case for range and can enable complex business logic.
Case is faster than decode.

•

Percentage Increase

If 250 is increased to 300, what is the percentage increase?

Basaraba Roman

• Aug 21st, 2017

Enlarge on 20%

Jeff Rodgers

• Jul 19th, 2017

20%

•

Editorial / Best Answer

Rohan

• Member Since Nov-2005 | 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();
}

naveen

• Jun 17th, 2017

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

void main()
{
char str[10],temp;
int i,len;
printf("enter string: ");
scanf("%s",str);
len=strlen(str)-1;
for(i=0;i<strlen(str)/2;i++)
{
temp=str[i];
str[i]=str[len];
str[len--]=temp;
}
printf("reverse string : %s" ,str);
getch();
}
```

Gurjyot Singh

• Dec 5th, 2016

```Code#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char A[20];
int i;int C=0;
printf("Enter String :
");
gets(A);
for(i=0;A[i]!=;i++)
{
C++;
}
for(A[C]=;C>=0;C--)
{
printf("%c",A[C]);
}

getch();
return 0;
}
```

•

Editorial / Best Answer

• 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

maureenash

• Aug 17th, 2016

Virtual Memory Usage from Java under Linux, too much memory used. It is using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write th...

Hitesh

• 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 ...

•

Editorial / Best Answer

• 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.

sathiyapriya

• Feb 8th, 2015

It is like a storage area

Avinash kumar

• Jan 23rd, 2015

A buffer is a memory space that is used to hold different data items temporarily. its used for communication of different processes.I.e. Interprocess communication. The most relevant example is , play...

•

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

I think no,can u suggest?

Editorial / Best Answer

Answered by: kunal kaushal

• 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.

Siba Ranjan Biswal

• Feb 11th, 2014

Yes a program can be executed with out operating system..for example the boot executable program runs in systems while no operating system is available prior to it.

kaaka

• Feb 9th, 2008

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

•

What is the Diff between Review and Walkthough?

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?

Editorial / Best Answer

BA_Apprentise

• Member Since Apr-2013 | Apr 19th, 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

anji

• Apr 25th, 2013

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

BA_Apprentise

• Apr 19th, 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

•

aswini

• Apr 2nd, 2013

Cannot execute 13,000 FTS faster. First need to analyse the severity and priority of the functionality wise and then the selected test alone have to execute

kumar

• Mar 3rd, 2013

Cannot execute 13,000 FTS faster. First need to analyse the severity and priority of the functionality wise and select the test cases.

•

Define Raster and Vector Data.

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

Editorial / Best Answer

Sandhya.Kishan

• Member Since Mar-2012 | 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

Sandhya.Kishan

• 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...

•

Manual tester

Hi I am planning to start a career as a manual tester ,is taking a course compulsory or can I get the subject by referring through information on internet?,Does manual testers use any tools in real time ?

Vinayak82

• Jul 4th, 2012

Not necessary that you have to take any course provided if you are not fresher. Suppose if you are working in any company as design engineer, then as you have the domain knowledge working as end user....

•

Editorial / Best Answer

Sandhya.Kishan

• Member Since Mar-2012 | 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.

Sandhya.Kishan

• 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...

•

What kind of useful task does stacks support?

Editorial / Best Answer

Sandhya.Kishan

• Member Since Mar-2012 | 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.

Sandhya.Kishan

• 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

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)?

Editorial / Best Answer

Sandhya.Kishan

• Member Since Mar-2012 | 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

Sandhya.Kishan

• 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

•

Editorial / Best Answer

Sandhya.Kishan

• Member Since Mar-2012 | 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.

Sandhya.Kishan

• 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

What is race around condition?

Editorial / Best Answer

Sandhya.Kishan

• Member Since Mar-2012 | 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.

Sandhya.Kishan

• 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.

•

mfsi_chinmayb

• Dec 13th, 2011

Mutation testing is like testing the tester... Under Mutation testing technique we need to check the working of the test suite. Basically we introduce some kind of change in the program source code i...

vijay_321

• Feb 9th, 2006

Mutation testing is an one in which we first assume a certain fact and also a mutated fact which opposes the fact is also defined.Our testing succeed only if the mutated fact fails.

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