Saturday, June 7, 2008

Accenture Placement Paper 2

Accenture Placement Paper 2

Accenture Paper 2

1) Question about the project you were

thoroughly grilled.

2) List the various types of storage classes and explain the scope & lifetime of each one.


3) Right shift/Left shift + 1's complement concepts and give the output of this:

i = 10;

int j = i >> 10;

cout< j;



4) Difference b/w



char *str = "Hello";

char arr[] = "Hello";

The following statements get complied or not?

arr++; // ERROR..its like a pointer constant

*(arr + 1) = 's';

cout< < arr; // o/p: Hsllo



5) struct Date

{

int yr;

int day;

int month;

} date1,date2;



date1.yr = 2004;

date1.day = 4;

date1.month = 12;



How will you initialize date2 (without member by

member assignment)



ans: date2 = date1;



6) Explain Primary Memory, Secondary Memory, Virtual

Memory.



7) What happens when you run a program?



8) Virtual functions/ Abstract classes/ Pointer

functions



9) Write a recursive factorial program.



10) How can you invoke a base class member

function using derived class pointer?

No comments: