Wednesday, 25 January 2012

Latest Accenture Paper


1) Which of the following numbers is divisible by 4?
a) 1123346
b) 10224
c) 100234

Answer is 10224

2) At 15:15 pm railway time, what will be the angle between minute and hour hand?
a) 0 degree
b) 180 degrees
c) 360 degrees
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) 33.33    
b) 40   
 
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) 25
b) 50
c) 30
Answer is 50

1) Which of the following is not true about C Programming?
a)C provides function oriented programming
b)C program can be compiled on a C++ compiler
c)C supports encapsulation
Answer is C supports encapsulation
2) What will be effect of sizeof operator on Unions?
a) gives the size of the biggest member
b)gives the size of sum of all members
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 Time
c)can be either Run time or Compile time
Answer is Runtime
4)Find the output of the code snippet
   char *S1 = "ABCD";
   char S2[ ] = "ABC";
   printf("%d,%d",sizeof(S1), sizeof(S2));
a)3,4
b)4,4
c)3,3
Answer is 4,4
 
This is the part III of the Accenture solved C Aptitude questions with solutions.
1) Which of the following statements is false?
a)Pointers are designed for storing memory addresses
b)Arrays are passed by value to 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 variables?
b) Only local variables can be defined as static variables
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 of the value
b) value present at the address
c) depends on the actual scenario
Answer: a) Address of the value