Placement paper of Agile Software
There were 45 aptitude question(30 minutes),20 technical(c,c++,data structure) and 50 java questions(30 minutes).
The question from c was basics.c++ questions were a bit tougher than c and data structure.
very few questions were from data structure.
the java questions were really tough(it seemed to me).
Aptitude questions:
1.One of Mr. Horton, his wife, their son, and Mr. Horton's mother is a doctor and another is a lawyer.
a) If the doctor is younger than the lawyer, then the doctor and the lawyer are not blood relatives.
b) If the doctor is a woman, then the doctor and the lawyer are blood relatives.
c) If the lawyer is a man, then the doctor is a man.
Whose occupation you know?
2. in the following figure:
Each of the seven digits from 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 is:
A D
B G E
C F
a) represented by a different letter in the figure above.
b) Positioned in the figure above so that A*B*C,B*G*E, and D*E*F are equal.
Which digit does G represent?
3.Mr. and Mrs. Aye and Mr. and Mrs. Bee competed in a chess tournament.Of the three games played:
a)In only the first game werethe two players married to each other.
b)The men won two games and the women won one game.
c)The Ayes won more games than the Bees.
d)Anyone who lost game did not play the subsequent game.
Who did not lose a game?
4.Of Abdul, Binoy, and Chandini:
a)Each member belongs to the Tee family whose members always tell the truth or to the El family whose members always lie.
b)Abdul says ''Either I belong or Binoy belongs to a different family from the other two."
Whose family do you name of?
5.If the operation,^ is defined by the equation x ^ y = 2x + y,what is the value of a in 2 ^ a = a ^ 3
A.0 B.1 other optins i don't know(the correct option is B)
6.A coffee shop blends 2 kinds of coffee,putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a gm.
If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade,how much will
the shop save in blending 100 gms? A.Rs.1.00 B.Rs.3.00 (the answer is B)
7.There are 200 questions on a 3 hr examination.Among these questions are 50 mathematics problems.It is suggested
that twice as much time be spent on each maths problem as for each other question.How many minutes should be spent
on mathematics problems
A.36
B.72
C.60
D.100
8.In june a baseball team that played 60 games had won 30% of its game played. After a phenomenal winning streak
this team raised its average to 50% .How many games must the team have won in a row to attain this average?
A. 12
B. 20
C. 24
D. 30
9.M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to contribute
towards the purchase of the gift/
A. D/(M-3)
B. MD/3
C. M/(D-3)
D. 3D/(M2-3M)
10.A worker is paid Rs.20/- for a full days work. He works 1,1/3,2/3,1/8.3/4 days in a week. What is the total
amount paid for that worker ?
11. A certain city is served by subway lines A,B and C and numbers 1 2 and 3
When it snows , morning service on B is delayed
When it rains or snows , service on A, 2 and 3 are delayed both in the morning and afternoon
When temp. falls below 30 degrees farenheit afternoon service is cancelled in either the A line or the 3 line,
but not both.
When the temperature rises over 90 degrees farenheit, the afternoon service is cancelled in either the line C or the
3 line but not both.
When the service on the A line is delayed or cancelled, service on the C line which connects the A line, is delayed.
When service on the 3 line is cancelled, service on the B line which connects the 3 line is delayed.
Q1. On Jan 10th, with the temperature at 15 degree farenheit, it snows all day. On how many lines will service be
affected, including both morning and afternoon.
(A) 2
(B) 3
(C) 4
(D) 5
Ans. D
Q2. On Aug 15th with the temperature at 97 degrees farenheit it begins to rain at 1 PM. What is the minimum number
of lines on which service will be affected?
(A) 2
(B) 3
(C) 4
(D) 5
Ans. C
Q3. On which of the following occasions would service be on the greatest number of lines disrupted.
(A) A snowy afternoon with the temperature at 45 degree farenheit
(B) A snowy morning with the temperature at 45 degree farenheit
(C) A rainy afternoon with the temperature at 45 degree farenheit
(D) A rainy afternoon with the temperature at 95 degree farenheit
Ans. B
Five houses lettered A,B,C,D, & E are built in a row next to each other. The houses are lined up in the order A,B,C,D, & E. Each of the five houses has a colored chimney. The roof and chimney of each housemust be painted as follows.
i. The roof must be painted either green,red ,or yellow.
ii. The chimney must be painted either white, black, or red.
iii. No house may have the same color chimney as the color of roof.
iv. No house may use any of the same colors that the every next house uses.
v. House E has a green roof.
vi. House B has a red roof and a black chimney
1. Which of the following is true ?
(a) At least two houses have black chimney.
(b) At least two houses have red roofs.
(c) At least two houses have white chimneys
(d) At least two houses have green roofs
(e) At least two houses have yellow roofs
Ans: (c)
2. Which must be false ?
(a) House A has a yellow roof
(b) House A & C have different color chimney
(c) House D has a black chimney
(d) House E has a white chimney
(e) House B&D have the same color roof.
Ans: (b)
3. If house C has a yellow roof. Which must be true.
(a) House E has a white chimney
(b) House E has a black chimney
(c) House E has a red chimney
(d) House D has a red chimney
(e) House C has a black chimney
Ans: (a)
4. Which possible combinations of roof & chimney can house
I. A red roof 7 a black chimney
II. A yellow roof & a red chimney
III. A yellow roof & a black chimney
(a) I only
(b) II only
(c) III only
(d) I & II only
(e) I&II&III
Ans: (e)
Technical:c,c++
1. what is the output?
main()
{int i=0;
for(i=0;i<20;i++)
{switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
answer is 16,21
2.
main()
{char c=-64;
int i=-32
unsigned int u =-16;
if(c>i)
{printf("pass1,");
if(c
printf("pass2");
else
printf("Fail2");
}
else
printf("Fail1);
if(i
printf("pass2");
else
printf("Fail2")
}
a) Pass1,Pass2
b) Pass1,Fail2
c) Fail1,Pass2
d) Fail1,Fail2
e) None of these
answer is C.
3.In the following code segment what will be the result of the function,
value of x , value of y
{unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
Ans. (a)
4.main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Ans. 57 94
5.
#define MAN(x,y) (x)>(y)?(x):(y) {int i=10; j=5; k=0; k=MAX(i++,++j); }
6.what is the output?
class Sample
{
public:
int *ptr;
Sample(int i)
{
ptr = new int(i);
}
~Sample()
{
delete ptr;
}
void PrintVal()
{
cout << "The value is " << *ptr;
}
};
void SomeFunc(Sample x)
{
cout << "Say i am in someFunc " << endl;
}
int main()
{
Sample s1= 10;
SomeFunc(s1);
s1.PrintVal();
}
Answer:
Say i am in someFunc
Null pointer assignment(Run-time error)
7.what is the o/p?
class base
{
public:
int bval;
base(){ bval=0;}
};
class deri:public base
{
public:
int dval;
deri(){ dval=1;}
};
void SomeFunc(base *arr,int size)
{
for(int i=0; i
cout<bval;
cout<
}
int main()
{
base BaseArr[5];
SomeFunc(BaseArr,5);
deri DeriArr[5];
SomeFunc(DeriArr,5);
}
Answer:
00000
01010
8.what is the output?
class some{
public:
~some()
{
cout<<"some's destructor"<
}
};
void main()
{
some s;
s.~some();
}
/*
Answer:
some's destructor
some's destructor
Note:java questions i don't remember.
Package->5 lacs Gross 50 k performance for both btech and mtech
eligibility criteria-6.0 cgpa
My experience:
They were mainly concentrating if a students know the oop concepts well or not that's why there were many questions from java parts.they asked about the projects.they asked one question regarding client and server architecture.they asked me what is statica means in a class? what is the main difference between C and c++. What is the best sorting algorithm to sort 10,000 numbers.
I said merge sort then he said i was correct? what is the overloading and overriding ? What is polymorphism? what is interface in java?what is final keyword in java? what is copy constructor? how does it different from normal constructor? what is namespace ? what is template? what is STL?
They asked what is BFS and what is DFS and the difference between the two(as i used BFS in my BTP).
The HR person also asked whethere i wanted to sign a bond.He asked about whether i wanted to learn the other foreign language or not.
He asked what do I believe in hard work or smart work.
