Accenture Solved Placement Papers: Answer Is 10224

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

1) Which of the following numbers is divisible by 4?

a) b) c) Answer is 1123346 10224 100234 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

Accenture solved Placement Papers


Here are some solved questions from Accenture Placement Papers 1) Which of the following is not true about C Programming? a)C b)C provides can function compiled oriented a programming compiler

program

be

on

C++

c)C supports encapsulation Answer is C supports encapsulation

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

Accenture C aptitude - Solved Paper III - 3 questions


This is the part III of the Accenture 1) Which of the following statements is false? a)Pointers b)Arrays are are designed passed for by solved C Aptitude questions with solutions.

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

b) value c) depends on the actual scenario Answer: a) Address of the value

Accenture C aptitude - Solved Paper II - 3 questions


1) Find the output of the code snippet char char printf("%d,%d",sizeof(S1), sizeof(S2)); a) b) c) 3,3 Output: 4,4. S1 is a character pointer giving the size of the pointer variable. Second one is a character array with size 4. (Including the terminating character '\0'). 2) Find the output of the code snippet int scanf("%d",&i); i // Lets say the input is ; 23 S2[ *S1 ] = = "ABCD"; "ABC";

3,4 4,4

int printf("%d",v); a)23 b)1 c)Junk Anwer: Output

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

Answer: can be 2 or 4 depending on the operating system

Accenture C aptitude - Solved Paper I - 3 questions


Below are few C Aptitude questions compiled from Accenture Placement Papers. 1) Which of the following is function not true about oriented C Programming? programming

C provides C program can be compiled on a C++ compiler Solution

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

Accenture Placement Papers - Quantitative Aptitude


a) A 20 litre solution conatins oil and kerosene in the ratio 3:5,replace 4 litres of mixture with 4 litres of kerosene what will be the ratio of oil and kerosene? When Hence Now 4 liters are taken out of 20ml, of of amount 10 of oil in remaining would added = 16 lt to = be the 14 3/8 * 16 = 6

the additional

remaining 4 litres

litres kerosene is kerosene

kerosene solution litres

So total quantity Ratio of oil:kerosene = 6/14 = 3/7

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

You might also like