Accenture Solved Placement Papers: Answer Is 10224
Accenture Solved Placement Papers: Answer Is 10224
Accenture Solved Placement Papers: Answer Is 10224
2) At 15:15 pm railway time, what will be the angle between minute and hour hand? a) b) c) d) both a and c Answer is both a and c 3) Let Raj be 3 years older than Ravi and Hema be two years younger than Ravi. Raj is three times as old as Rahul who is Hema's brother. The ratio of the ages of Hema and Her brother is 3:2. Find by how much percentage Raj's age is more than Hema's when Raj will be 20 years old. a) b) c) 60 Answer is 33.33 4) A hat vendor bought hats at Rs 5 per 3 hats. He sold them at Rs 10 per 4 hats. What was his profit percentage? a) b) c) 30 Answer is 50 25 50 33.33 40 0 180 360 degree degrees degrees
program
be
on
C++
2) What will be effect of sizeof operator on Unions? a) gives the size of of sum the of biggest all member members
b)gives the size c)gives the size of the smallest of the members
Answer is gives the size of sum of all members 3) Divide by Zero is a common exception of type a)Runtime b)Compile c)can be either Run time or Compile time Answer is Runtime 4)Find the char char printf("%d,%d",sizeof(S1), sizeof(S2)); a)3,4 b)4,4 c)3,3 Answer is 4,4 S2[ output of *S1 ] the = = code snippet "ABCD"; "ABC";
Time
storing value
memory to
addresses functions
c)Both of the above are false Answer: Both of the above are false 2) Which of the following statements is true regarding static variables? a) Which of the following statements is true regarding static static variables? variables
b) Only local variables can be defined as c) Scope and life of global variables is limited to the function to which they are declared Answer: Both local and global variables can be defined as static variables
3) An ampersand in front of a pointer variable gives a) address present of at the the value address
3,4 4,4
1;
This is because, scanf reads and input and returns the number of items read. Hence 23 would be stored in i and 1 would be stored in v 3) What is the default size of a integer variable ? a) b) c) can be 2 or 4 depending on the operating system 2 4 bytes bytes
C supports encapsulation is false. Only C++ supports encapsulation 2) What will be effect of sizeof operator on Unions? gives the size of the biggest member gives the size of sum of all members gives the size of the smallest of the members Correct Answer: gives the size of the biggest member 3) Divide by Zero is a common exception of type Run Compile can be either Run time or Compile time Answer: Run Time Time Time
the additional
remaining 4 litres
b) Find the value of (999 - 1)(999 - 2)........(999 - n). Where maximum number of digits in n is 4 Answer zero. When n = 999, the entire product becomes zero
c) In a classroom the average height of all the boys was 170 cm. Rahim recently joine the class which originally had 20 boys increased the average to 171cm. Then find the height of Rahim. Before Rahim joined the total height of all the boys = 170 X 20 = 3400. New average = (Total height of all students + height of rahim)/21 = 180 Therefore (3400 + height of rahim)/21 = 171 Therefore height of Rahim = 3780 - 3400 = 191 cms.
d) Find the sum of all terms in the series 1, 1/2,1/4 ..... This is a GP with a = 1, and r = 1/2. Since r < 1 this is an infinite geometric series. Hence sum of all terms = a/(1 - r) = 1/(1 - 1/2) = 2