Thursday, June 30, 2011

APTITUDE QUESTIONS AND ANSWERS Infosys 7




1. Mr.Mathurs jewels have been stolen from his bank locker .
    The bank has lockers of 12 people which are arranged in an array of 3 rows 
and 4 columns like:
      1234
      5678
      9101112


  The locker belonging to JONES was to the right of BLACK'S locker and directly 
  above MILLAR'S. 
  BOOTH'S locker was directly above MILLAR'S. 
  SMITH'S locker was also above GRAY's (though not directly). 
  GREEN'S locker was directly below SMITH'S. 
  WILSON'S locker was between that of DAVIS and BOOTH. 
  MILLAR'S locker was on the bottom row directly to the right of HERD'S. 
  WHITE'S locker was on the bottom right hand corner in the same column as 
  BOOTH'S. 
Which box belonged to Mr.Mathurs? 
Ans: Box number 9 belongs to Mr.Mathurs.


2. Fifty minutes ago if it was four times as many minutes past three o'clock,how 
many minutes is it to six o'clock?
Ans: Twenty six minutes.


3. If a clock takes 7seconds to strike 7, how long will the same clock take to 
strike 10?
Ans: The clock strikes for the first time at the start and takes 7 seconds for 6 
intervals-thus for one interval time
        taken=7/6.
        Therefore, for 10 seconds there are 9 intervals and time taken is 
9*7/6=10 and 1/2 seconds.


4. Three criminals were arrested for shop lifting.
    However, when interrogated only one told the truth in both his statements, 
while the other two each told one true   
    statement and one lie.
    The statements were: 
  ALBERT :(a)Chander passed the merchandise.  (b)Bruce created the diversion. 
  BRUCE   :(a)Albert passed the merchandise.      (b)I created the diversion. 
  CLIVE     :(a)I took the goods out of the shop.    (b)Bruce passed them over. 
Ans: Albert passed the goods.Bruce created the diversion..Clive took the goods 
out of the shop.


5. Everyday in his business a merchant had to weigh amounts from 1 kg to 121 
kgs, to the nearest kg.
    What are the minimum number of weight required and how heavy should they be?
Ans: .The minimum number is 5 and they should weigh 1,3,9,27 and 81 kgs.


6. A hotel has 10 storeys.Which floor is above the floor below the floor, below 
the floor above the floor, below the 
    floor above the fifth.
Ans: The sixth floor.


7. Seven members sat around a table for three days for a conference.
    The member's names were Abhishek, Amol, Ankur, Anurag,Bhuwan ,Vasu and 
Vikram.
    The meetings were chaired by Vikram.
    On the first evening members sat around the table alphabetically.
    On the following two nights, Vikram arranged the seatings so that he could 
have Abhishek as near to him as 
    possible and abesent minded Vasu as far away as he could.
    On no evening did any person have sitting next to him a person who had 
previously been his neighbour.
    How did Vikram manage to seat everybody to the best advantage on the second 
and third evenings?
Ans: 
Second evening:Vikram,Ankur,Abhishek,Amol,Vasu,Anurag and Bhuwan.
Third evening   :Vikram,Anurag,Abhishek,Vasu,Bhuwan,Ankur,Amol.


8. Two trains start from stations A and B spaced 50 kms apart at the same time 
and speed.
    As the trains start, a bird flies from one train towards the other and on 
reaching the second train, it flies back to the
    first train.This is repeated till the trains collide.
    If the speed of the trains is 25 km/h and that of the bird is 100km/h.
    How much did the bird travel till the collision.
Ans: 100 kms.


9. Four prisoners escape from a prison.
    The prisoners, Mr East, Mr West, Mr South, Mr North head towards different 
directions after escaping.
    The following information of their escape was supplied: 
  The escape routes were The North Road, South Road, East Road and West Road. 
  None of the prisoners took the road which was their namesake. 
  Mr.East did not take the South Road 
  Mr.West did not the South Road. 
  The West Road was not taken by Mr.East 
What road did each of the prisoners take to make their escape?
Ans: Mr.East took the North Road
        Mr.West took the East Road 
        Mr.North took the South Road
        Mr.South took the West Road.


10. Complete the series:
        5, 20, 24, 6, 2, 8, ?
Ans: 12 (as 5*4=20, 20+4=24, 24/4=6, 6-4=2, 2*4=8, 8+4=12).

APTITUDE QUESTIONS AND ANSWERS Infosys 6


Question # 1
-------------
Professor Kittredge’s literature seminar includes students with varied tastes 
in poetry.All those in the seminar who enjoy the poetry of browing also enjoy 
the poetry of eliot.Those who enjoy the poetry of eliot despise the poetry of coleridge.


Some of those who enjoy the poetry of eliot also enjoy the poetry of Auden.
All of those who enjoy the poetry of Coleridge also enjoy the poetry of Donne.
Some of those who enjoy the poetry of Auden also despise the poetry of Coleridge.
All of those who enjoy the poetry of Donne also enjoy the poetry of Frost.


i.
Miss Garfield enjoys the poetry of Donne.Which of the following must be true?
(A) she may or may not enjoy the poetry of coleridge.
(B) She does not enjoy the poetry of Browing.
(C) She does not enjoy the poetry of eliot.
(D) She enjoys the poetry of Coleridge.


ii. 
Mr.Huxtable enjoys the poetry of Browing.He may also enjoy any of the following 
poets except
(A) Auden.
(B) Coleridge
(C) Donne
(D) Eliot
(E) Frost


iii.
Miss Inaguchi enjoys the poetry of Coleridge.Which of the following must be false?
(A) she does not enjoy the poetry of Auden.
(B) She enjoys the poetry of Donne.
(C) She enjoys the poetry of Frost.
(D) She does not enjoy the poetry of Browning.
(E) She may enjoy the poetry of Eliot.


iv. 
Based on the information provided,which of the following statements concerning 
the members of the seminar must be true?
(A) All the those who enjoy the poetry of eliot also enjoy the poetry of Browning.
(B) None of those who despise the poetry of Frost enjoy the poetry of Auden.
(C) Some of those who enjoy the poetry of Auden despise the poetry of Coleridge.
(D) None of those who enjoy the poetry of Browning despise the poetry of Donne.
(E) Some of those who enjoys the poetry of Frost despise the poetry of Donne.  




(8 Marks)


___________________________________________________________________________________


Question # 2
-------------                                                                                                      
a.Rimmie wears a hat only if goerge wears a tie.
b.George wears a scarf only if Johnie wears a tie.
c.Vickie wears a googles only if Rimmie wears a hat.
d,e,f,g,h


some what like this there are 8 statements,from that we have to determine who wears what.


(8 marks)


___________________________________________________________________________________


Question # 3
-------------
8 Kigs and 14 Ligs can do 510 tors of work in10days. 13 Kigs and 6 Ligs 
can do 484 tors of work in 12 days. 
Then find work done by Kigs and Ligs individually in tors/hr?


(5Marks)


___________________________________________________________________________________


Question # 4
-------------
There is a 3 digited number. 3rd number is the square root of the 1st digit. 
2nd digit is the sum of 1st and 3rd.And that number is divisible by 2,3,6,7.
What is that number?


(3 marks)
___________________________________________________________________________________


Question # 5
-------------
A boy is playing a game. He took totally 55 blocks and kept like placing 
some x number  on the ground,next one less than that  above those blocks 
like that till the topmost one is one,like:


x
x x
       x x x
      x x x x                   
     x x x x x 
    x x x x x x
   x x x x x x x
  x x x x x x x x 
 x x x x x x x x x
x x x x x x x x x x




(They didn’t gave this pictuire,but my explanation is not clear,that’s I gave u this picture)
the question is how many blocks are there at the base level?


(4marks)


___________________________________________________________________________________


Question # 6
-------------
A cyclist is cycling in a circular path.he is at some point on the path,at that 
point 1/5th of the cyclists infront of him and 5/6th back to him gives the total 
number of clyclists participating in the race. What is the total number of cyclists?


(5 marks)


___________________________________________________________________________________


Question # 7
-------------
Regarding ages he gave 6-7some what confusing statements regarding 
3 people’s age.but time time is not sufficient ,so didn’t read that question.


(5 Marks)


___________________________________________________________________________________


Question # 8
-------------
A boy is at 250yards south to the hare.the hare is running towards east.
Instead of going in North-east direction .if the follows the hare with 
1 and 1/3rd (1+1/3)the speed of hare,what is the total distance travelled 
by him to overcome the hare?
And what is the distance traveled by hare before the boy overcomes it?


(6 Marks)
___________________________________________________________________________________


Question # 9
-------------
There are two dice painted on their sides.A and B are playing with those dice.
A will win if  the colour on the two faces of dice is same and b wins if color 
is different.
First die is painted 5faces with red and 1 with blue.how is second die painted,
if their chances of winning the game is even.


(6 Marks)
___________________________________________________________________________________


Question # 10
-------------


A manager declared like this in the meeting. Normally we give 6% interest 
on common stock,but the total income this time is Rs 400000 with 7 1/2 interest,
we are giving only 5%interest on common stock.
What is the worth of Comon stock? 


(5marks)

APTITUDE QUESTIONS AND ANSWERS 4 (infosys)


1. If a coin is so unbalanced that there are 2 consecutive Heads as to 1 Tails. What is the probability of getting Tails in a single toss?
( 6 marks) 


2. Continue the series
0, 1, 10, 11, 100, 101, 110, 111, ......
(4 marks)


Ans: binary series, 1000, 1001, 1010, 1011, .....


3. A boy visits a shop and purchases something. The girl at the shop gives him the change against the purchase.
Placing some money on the table, Boy says "This is all she gave everything but 35 cents which is the cost of the item that i purchased"
Mother says " She wont last in that shop for long. She has given you exactly twice the amount that should have been given. She has made dollars into cents and cents into dollars."
What is the exact amount written on the check?
(6 marks)


4. A and B have certain number of dollars. If you square the number of dollars present with A and add to that of B you get 62. If you square the number of dollars present with B and add to that present with A you  get 176. Find the exact number of dollars present with A and B.
(6 marks)


Ans. 7 and 13


5. 1 problem on hockey matches. 4 teams are there, given the points table, and some other data like goals for, goals against, etc, you need to find the outcome of the match A vs C. 
(8 marks)


6. 1 question of analytical arrangements. in a hostel there are 5 5 students in 5 rooms who study 5 subjects . Tabulate all the data in order, given the clues.
(10 marks)


7. 4 pple are playing with a ball and they break the glass of a house. 4 pple make four comments. one of them speaks the truth. Identify the culprit.
(5 marks)


8. Husband made a purchase of certain drapes for some money less that 10$ at a discouted rate. Wife also makes a purchase in cents and she pays $2 and 35 cents more. How many items did each of them purchase.
(this question was very difficult to understand and formulate)
(5 marks)

APTITUDE QUESTIONS AND ANSWERS MBT



1. #include
 * What is wrong in the following problem


main() {
int i,j;
j = 10;
i = j++ - j++;
printf("%d %d", i,j);
}
ans: 0, 12


2.#include
 *  What is the output of the following problem
main() {
int j;
for(j=0;j<3;j++)
 foo();
}
foo() {
static int i = 10;
i+=10;
printf("%d\n",i);
}


/*  Out put is   (***since static int is used i value is retained between
 *  20            function calls )
 *  30
 *  40
 *
/


3.#include
#include
#include
/* This is asked in PCS Bombay walk-in-interview
 * What is wrong in the following code
 */
main()
{
  char  *c;
  c = "Hello";
  printf("%s\n", c);
}
/*ans:- Hello,  The code is successfully running  */


4.   #include
/* This problem is given in PCS BOMBAY walk-in-interview.
 * What is the final value of i and how many times loop is
 * Executed ?
 */


main()


{
  int i,j,k,l,lc=0;
  /* the input is given as 1234 567  */
  printf("Enter the number string:<1234 567 >\n");
  scanf("%2d%d%1d",&i,&j,&k);
  for(;k;k--,i++)
  for(l=0;l
  printf("%d %d\n",i,l);}
printf("LOOPS= %d\n", lc-1);
}
/*  Ans:  i = 16, and loop is executed for 169 times */


5.#include
/* This is given in PCS Bombay walk-in-interview   */
/* What is the output of the following program     */


main() {
        union {
                  int a;
                  int b;
                  int c;
                } u,v;
        u.a = 10;
        u.b = 20;
        printf("%d %d \n",u.a,u.b);
      }
/* Ans :  The latest value assigned to any of the union member
           will be present in the union members so answer is
           20 20
*/
6.#include
main()
{
  float i, j;
  scanf("%f %f", &i, &j);
      printf("%.2f %.3f", i, j);
}


/Ans:- 123.34 3. 234  */


7.#include
/* This is given in PCS Bombay walk-in-interview
 * What is the out put of the following problem  ?
 */


main()
{
   char *str = "12345";
   printf("%c %c %c\n", *str, *(str++), *(str++));
}
/*  Ans:  It is not 1 2 3
 *        But it is 3 2 1 Why ??
 */


8.#include
/* This problem is asked in PCS Bombay Walk-in-interview
 * Write a macro statement to find maximum of a,b
 */
#define max(a,b)  (a>b)?a:b
main()
{
    int a,b;
    a=3;
    b=4;
    printf("%d",max(a,b));
}
/* Ans is very simple the coding is just for testing it
 and output is 4 */


~
9.#include
/* This problem is asked in PCS Bombay
 * What is the output of the following coding
 */


main()
{
  int len=4;
  char *st="12345678";
  st = st -len;
  printf("%c\n",*st);
}
/* Ans : It will print some junk value */
~
10.#include
main()
{
  func(1);
}
func(int i){
static char *str ={ "One","Two","Three","Four"};
printf("%s\n",str[i++]);
return;
}
/* Ans:- it will give warning because str is pointer to the char but
   it is initialized with more values
   if it is not considered then the answer is Two  */


11.
 #include
main()
{
  int i;
  for (i=1;i<100; i++)
  printf("%d %0x\n",i,i);
}
/* Ans:- i is from 1 to 99 for the first format,
         for the second format 1to9, ato f, 10 to 19,1ato1f, 20 to 29, etc */




12.#include
/*  This problem is asked in PCS Bombay walk-in-interview
 *  In the following code please write the syntax for
 *  assing a value of 10 to field x of s and id_no 101 of s
 */
struct {
          int x;
          int y;
          union {
                  int id_no;
                  char *name;
                }b;
        }s,*st;
main()
{
    st = &s;
    st->x=10;
    st->b.id_no = 101;
    printf("%d %d\n",s..x,s.b.id_no);
}
/*  Ans: The answer is st->x=10;
 *                     st->b.id_no=101;
 */
13.#include
/*   This problem was asked in PCS Bombay in a walk-in-interview
 *   Write a recursive function that calculates
 *   n * (n-1) * (n-2) * .......  2 * 1
 */


main() {
int factorial(int n);
int i,ans;
printf("\n Enter a Number:");
scanf("%d",&i);
ans = factorial(i);
printf("\nFactorial by recursion = %d\n", ans);
}
int factorial(int n)
{
  if (n <= 1)  return (1);
  else
   return ( n * factorial(n-1));
}


~
14.#include
/* This problem is asked in PCS Bombay walk-in-interview
 * What is the output of the following problem
 */
main(){
int j,ans;
j = 4;
ans = count(4);
printf("%d\n",ans);
}
int count(int i)
{
 if ( i < 0) return(i);
 else
 return( count(i-2) + count(i-1));
}


/*  It is showing -18 as an answer */


15.#include
main()
{
 int i=4;
 if(i=0)
 printf("statement 1");
 else
 printf("statement 2");
}
/* statement 2 */




This is pcsb paper.


1. #include
 * What is wrong in the following problem


main() {
int i,j;
j = 10;
i = j++ - j++;
printf("%d %d", i,j);
}
ans: 0, 12


2.#include
 *  What is the output of the following problem
main() {
int j;
for(j=0;j<3;j++)
 foo();
}
foo() {
static int i = 10;
i+=10;
printf("%d\n",i);
}


/*  Out put is   (***since static int is used i value is retained between
 *  20            function calls )
 *  30
 *  40
 *
/


3.#include
#include
#include
/* This is asked in PCS Bombay walk-in-interview
 * What is wrong in the following code
 */
main()
{
  char  *c;
  c = "Hello";
  printf("%s\n", c);
}
/*ans:- Hello,  The code is successfully running  */


4.   #include
/* This problem is given in PCS BOMBAY walk-in-interview.
 * What is the final value of i and how many times loop is
 * Executed ?
 */


main()


{
  int i,j,k,l,lc=0;
  /* the input is given as 1234 567  */
  printf("Enter the number string:<1234 567 >\n");
  scanf("%2d%d%1d",&i,&j,&k);
  for(;k;k--,i++)
  for(l=0;l
  printf("%d %d\n",i,l);}
printf("LOOPS= %d\n", lc-1);
}
/*  Ans:  i = 16, and loop is executed for 169 times */


5.#include
/* This is given in PCS Bombay walk-in-interview   */
/* What is the output of the following program     */


main() {
        union {
                  int a;
                  int b;
                  int c;
                } u,v;
        u.a = 10;
        u.b = 20;
        printf("%d %d \n",u.a,u.b);
      }
/* Ans :  The latest value assigned to any of the union member
           will be present in the union members so answer is
           20 20
*/
6.#include
main()
{
  float i, j;
  scanf("%f %f", &i, &j);
      printf("%.2f %.3f", i, j);
}


/Ans:- 123.34 3. 234  */


7.#include
/* This is given in PCS Bombay walk-in-interview
 * What is the out put of the following problem  ?
 */


main()
{
   char *str = "12345";
   printf("%c %c %c\n", *str, *(str++), *(str++));
}
/*  Ans:  It is not 1 2 3
 *        But it is 3 2 1 Why ??
 */


8.#include
/* This problem is asked in PCS Bombay Walk-in-interview
 * Write a macro statement to find maximum of a,b
 */
#define max(a,b)  (a>b)?a:b
main()
{
    int a,b;
    a=3;
    b=4;
    printf("%d",max(a,b));
}
/* Ans is very simple the coding is just for testing it
 and output is 4 */


~
9.#include
/* This problem is asked in PCS Bombay
 * What is the output of the following coding
 */


main()
{
  int len=4;
  char *st="12345678";
  for(i=0; i<6; i++)
  st = st -len;
  printf("%c\n",*st);
}
/* Ans : It will print some junk value */
~
10.#include
main()
{
  func(1);
}
func(int i){
static char *str ={ "One","Two","Three","Four"};
printf("%s\n",str[i++]);
return;
}
/* Ans:- it will give warning because str is pointer to the char but
   it is initialized with more values
   if it is not considered then the answer is Two  */


11.
 #include
main()
{
  int i;
  for (i=1;i<100; i++)
  printf("%d %0x\n",i,i);
}
/* Ans:- i is from 1 to 99 for the first format,
         for the second format 1to9, ato f, 10 to 19,1ato1f, 20 to 29, etc */




12.#include
/*  This problem is asked in PCS Bombay walk-in-interview
 *  In the following code please write the syntax for
 *  assing a value of 10 to field x of s and id_no 101 of s
 */
struct {
          int x;
          int y;
          union {
                  int id_no;
                  char *name;
                }b;
        }s,*st;
main()
{
    st = &s;
    st->x=10;
    st->b.id_no = 101;
    printf("%d %d\n",s.x,s.b.id_no);
}
/*  Ans: The answer is st->x=10;
 *                     st->b.id_no=101;
 */
13.#include
/*   This problem was asked in PCS Bombay in a walk-in-interview
 *   Write a recursive function that calculates
 *   n * (n-1) * (n-2) * .......  2 * 1
 */


main() {
int factorial(int n);
int i,ans;
printf("\n Enter a Number:");
scanf("%d",&i);
ans = factorial(i);
printf("\nFactorial by recursion = %d\n", ans);
}
int factorial(int n)
{
  if (n <= 1)  return (1);
  else
   return ( n * factorial(n-1));
}


~
14.#include
/* This problem is asked in PCS Bombay walk-in-interview
 * What is the output of the following problem
 */
main(){
int j,ans;
j = 4;
ans = count(4);
printf("%d\n",ans);
}
int count(int i)
{
 if ( i < 0) return(i);
 else
 return( count(i-2) + count(i-1));
}


/*  It is showing -18 as an answer */


15.#include
main()
{
 int i=4;
 if(i=0)
 printf("statement 1");
 else
 printf("statement 2");
}
find yourself

great blogger is comming up with new updates on Mysore city Local city bus numbers and routes -------------------------------

Amazing:)

Amazing:)