Publish your: Interview/placement Paper or an Ebook you have


SELECT YOUR BRANCH

PLACEMENT PAPERS OF




Accenture cpp papers :

Accenture cpp papers


1.------stores a log of changes made to db,which are then written to _,which are then written to _,which is used if db recovery is necc.
a) db buffer share pool
b) program global area,shared pool
c) system global area,large pool
d) redo log buffer,online redo log

2.----means allowing objects of difference types to be considered as examples of a higher level set :
ans: Generalization






3.The primary characteristic of key field is that it must be unique

4. Manager-------------- --emp managed by ans:one of many recursive relationship

5.If a member initialiser is not provided for a member object of a class .The object - is called
a) static fn
b) non static fn
c) default constructor
d) none

6.class constest
{
private:
const int i;
public:
constest():i(10)
}

7.Inheritance
b) abstract base class
c) specifies a way to to define a const member data
d) none

8.Iimplement polymorphism when by object belonging to different class can respond to the same message in diff ways.
a) late binding
b)dynamic binding
c) dynamically created object
d) virtual fun

9.Member function---------- and ----------- set and reset the format state of flags.
a) set,reset
b) set,get
c) set, unset
d) set ,unsetf

10.#include
struct abc
{
int i;
abc(int j)
{ i=j;}
public:
void display()
{ cout< class sample { public : sample(int **pp) { p=pp;} int **p; int **sample:: *ptr=&sample ::p;


11. In a file A...Z characters are written.if we open the file using fopen and
lseek(fp,-10,2);
c=getc(fp);
printf("%c",c);
what will be the output.?
Ans . Y.(please verify Here last parameter is the integer value to seel_end

12.Same question with
lseek(fp,10,0);
c=getc(fp);
printf("%c",c);
ans. 11th character will be printed "K" verify.

13.Theory question about far pointers.

Hint: Far pointers are 4 bytes in size and local pointers are 2 bytes in size. important: i saw in a previous question paper of accenture which is in the chetana database, some lady wrote that size of an integer in C is 2 bytes and for C++ it is 4 bytes. This is absurd.The size of types is entirely dependent on the compiler used.for DOS Turbo C sizeof int is 2 and float is 4 bytes for windows borland C,C++ size of int is 4 bytes for linux gcc, size of int is 2 bytes. All these depends on the Operating system.Please keep this in mind.

14.#include
main()
{
char str[]={"hell"};
int i;
for(i=0;i<5;i++) printf("%c%c%c%c\n",str[i],i[str],*(str+i),*(i+str)); getch(); }
ans. hhhh eeee llll llll note that str[i] and i[str] are the same.in the question paper, the original word is "hello".


15.Which of the following is not defined in string.h strtod,memchr,strspn,strchr
ans . strtod.(defined in STDLIB.H) it is used to convert a string to double.


16.Questions on macros with arguments .same pattern given in TEST UR C SKILLS
eg.#define SQUARE(x) x*x
main()
{
.......
y=SQUARE(2+3);
printf("%d",y);
}
ans. when the macro expands we get 2+3*2+3 = 2+6+3 =11.11 is the correct answer not 25.
Remember an inline function does type checking and so it is better than a macro a question on this.

17.Some memory is allocated using memalloc and then realloc is called. and now to write the size of the variable.better learn memalloc and realloc. what it does and syntax.

Courtesy Numanshu Sinha,questions and anserws as provided by him .He's currently placed in Accenture,IBM,Infosys and Bosch



Spread The Love, Share Our Article


Related Posts


Be the first to comment on "Accenture cpp papers :"

Most Popular posts

Trending posts


About Us

Free engineering materials and courseware for all is our motto . Besides we provide free Placement Orientation and Training.
Move ahead >>>>>
Email : careerncampus@gmail.com

Publish your


Keep Yourself Updated

Get the latest posts delivered on your mail box for free. Enter your email address below and press submit

You can also keep in touch via

Subscribe via RSS Feed Subscribe via Google SMS Channel


Recent Posts

Facebook



Our Partners : link directoryWeb Directory Visit blogadda.com to discover Indian blogsAcademicsTop Blogs