Sunday

Mistral Placement Paper

C Section

1. What does the following program print?
#include <stio.h>
int sum,count;
void main(void)
{< BR> for(count=5;sum+=--count;)
printf("%d",sum);
}
a. The pgm goes to an infinite loop b. Prints 4791010974 c. Prints 4791001974
d. Prints 5802112085 e. Not sure

2. What is the output of the following program?
#include <stdio.h>
void main(void)
{
int i;< BR> for(i=2;i<=7;i++)
printf("%5d",fno());
}
fno()
{
staticintf1=1,f2=1,f3;
return(f3=f1+f2,f1=f2,f2=f3);
}
a. produce syntax errors b. 2 3 5 8 13 21 will be displayed c. 2 2 2 2 2 2 will be displayed
d. none of the above e. Not sure

3. What is the output of the following program?
#include <stdio.h>
void main (void)
{
int x = 0x1234;
int y = 0x5678;
x = x & 0x5678;
y = y | 0x1234;
x = x^y;
printf("%x\t",x);
x = x | 0x5678;
y = y & 0x1234;
y = y^x;
printf("%x\t",y);
}
a. bbb3 bbb7 b. bbb7 bbb3 c. 444c 4448
d. 4448 444c e. Not sure

4. What does the following program print?
#include <stdio.h>
void main (void)
{
int x;
x = 0;
if (x=0)
printf ("Value of x is 0");
else
printf ("Value of x is not 0");
}
a. print value of x is 0 b. print value of x is not 0 c. does not print anything on the screen
d. there is a syntax error in the if statement e. Not sure

5. What is the output of the following program?
#include <stdio.h>
#include <string.h>
int foo(char *);
void main (void)
{
char arr[100] = {"Welcome to Mistral"};
foo (arr);
}
foo (char *x)
{
printf ("%d\t",strlen (x));
printf ("%d\t",sizeof(x));
return0;
}
a. 100 100 b. 18 100 c. 18 18 d. 18 2 e. Not sure

6. What is the output of the following program?
#include <stdio.h>
display()
{
printf ("\n Hello World");
return 0;
}
void main (void)
{
int (* func_ptr) ();
func_ptr = display;
printf ("\n %u",func_ptr);
(* func_ptr) ();
}
a. it prints the address of the function display and prints Hello World on the screen
b. it prints Hello World two times on the screen
c. it prints only the address of the fuction display on the screen
d. there is an error in the program e. Not sure

7. What is the output of the following program?
#include <stdio.h>
void main (void)
{
int i = 0;
char ch = 'A';
do
putchar (ch);
while(i++ < 5 || ++ch <= 'F');
}
a. ABCDEF will be displayed b. AAAAAABCDEF will displayed
c. character 'A' will be displayed infinitely d. none e. Not sure

MindTree Placement Paper

The Question consist of quant-aptitude , logical reasoning , analytical reasoning , and few puzzles
Every Correct answer carry +3 mark and wrong answer carry -1 mark.

A person losses and gains 10% on selling a object for 200.
ans:he losses

sum of 1 to 100 is divisible by
1. 1,2,4,8
2. 2 & 4
3. 2
4. none
ans: 2

10 consonants and 4 vowels , how many words with 3 consonants and 2 vowels?
1) 720 , 2)7200 ...

complete series

AZX....

ABCEFGIJK......( ver easy )

how many nos start and end with 2 b/w 100 and 300?

If a sphere of dia 3 cm is melted & formed into 3 spheres , the diameter of 1st is 1.5cm and that of second is 2.0 cm , what is the diameter of the third?.

5 logical reasoning like :: All elephants are trained a few animals are trained
..........etc -> refer to IMS material for this

There are 6 steps from 1st floor to 2nd floor A is 2 stes below C B is next to D ONly one step is vacant
NO 2 people are on any step
Q )if a is on the first step , which of the following are true

6 people compete in a race A,b,c,d,e,f b is not in the 1st place there are 2 runners b/w d and e a is ahead of d
( one more condition ) and 2 quesitions --very easy

If prizes are increased by 25% , by how much should i reduce the consumption to keep the expenditure same??

how many factors ( or what nos) divide 6400 1) 24 , 2) 25 3) ....

"COURTESY" - how many words can be constructed with C in the begining and Y at the end

My mother's husband's father in laws son's child->what is the relation?

3 glasses containing mixture of water and alco in ratio 2:3 , 3:4 , 5:9 when all 3 are mixed what is the new ratio??

There is a meeting organized, every person shake hands with the other only once. If there are 60 shake hands,how many persons are there in the meeting?.

A fater has 8 children ,he takes 3 at a time to a zoo.probability of a child going to the zoo.

A father has six children .all the children are born at regular intervels.if the sum of their ages of all the children and father is 186. calculate the age of the elder son, when the younger sons age is 3.

count the numbers between 100 and 300, that starts with 2 and ends with 2.
Ans: 10.

Some reasoning questions There are six steps,5 people a,b,c,d,e . conditions are , a is two steps below c,no two people are on same step,b is next to d. 4 Questions based on this

5 people participating in the race .conditions are given about the positions.

A ball is dropped from a height of 10 feet.Every time it rebounces to half of the height. how many feet it traveled?

There are 3 jars. The ratio of spirit to water in each of these jars is 3:2,4:5,5:7. the three jars are mixed into a single jar. What is the ration of spirit to water in single jar.

What is the relation with your mothr's sister's brother's wife's child with you.?

what is the relation with your mother's husband's father-in-law's son's child with you?

There is one programing question. We have to write program(This program will be evaluated if you are qualified forInterview).you will be given choice(ie write one out of two given)

GD topics.

If both husband and wife are working in the same organization.

coordination between educational institutions and companies.

Linux Vs Microsoft . Which will perish?.

Microsoft Placement Paper

Algorithms & Coding : Microsoft Examination Papers

(Avg. of 25 ) : You have b boxes and n dollars. If I want any amount of
money from 0 to n dollars, you must be able to hand me 0 to b boxes so
that I get exactly what I request." The two questions were "What are
the restrictions on b and n, and how is money distributed among the
boxes?

(Avg. of 49 ) : What is the sum of the numbers from 1 to 1000?

(Avg. of 39 ) : You are an employer. You have ten employees. Each
month, each one of your ten employees gives you ten bags of gold. Each bag
of gold has ten pieces of gold in it. Each piece of gold weighs one
pound. One of your employees is cheating you by only putting nine pieces of
gold in each of his ten bags of gold. You have a scale (not a balance,
a scale), and you can only take one measurement from the scale, only
one (1) reading.

How can you tell which of the ten employees is cheating you by using
this scale and only taking one measurement?

(Avg. of 38 ) : How many points are there on the globe where by walking
one mile south, one mile east and one mile north you reach the place
where you started.

(Avg. of 23 ) : How would go about finding out where to look for a book
in a library? (You do not know how the books are organized beforehand)

(Avg. of 25 ) : Imagine you are standing in front of a mirror, facing
it. Raise your left hand. Raise your right hand. Look at your
reflection. When you raise your left hand your reflection raises what appears to
be his right hand. But when you tilt your head up, your reflection does
too, and does not appear to tilt his/her head down. Why is it that the
mirror appears to reverse left and right, but not up and down?

(Avg. of 21 ) : You have a bucket of jelly beans. Some are red, some
are blue, and some green. With your eyes closed, pick out 2 of a like
color. How many do you have to grab to be sure you have 2 of the same?

(Avg. of 18 ) : You are given a scale which you are to use to measure
eight balls. Seven of these balls have the same weight: the eigth ball
is heavier than the rest. What is the minimum number of weighs you could
perform to find the heaviest of the eight balls?. Remmber it's a scale
not a balance. (i.e. It can just tell you if one side is heavier than
the other it can't give you the exact weight).

(Avg. of 13 ) : How would you design a toaster?

(Avg. of 10 ) : How would you design an universal remote control?

(Avg. of 22 ) : How would you design a clock for a blind person?

(Avg. of 30 ) : How many miles of road are there in the US

(Avg. of 64 ) : There are n couples attending a party. Each one shakes
hands with the persons he doesn't know. (Assuming each person knows
his/her partner) Mary and John are a couple. John asked the rest of the
party-attenders how many times he has shaken hands. Each one gives a
unique answer. How many times does Mary shake hands?

Databases : Microsoft Examination Papers
What are two methods of retrieving SQL?

(Avg. of 588 ) : What cursor type do you use to retrieve multiple
recordsets?

(Avg. of 35 ) : What action do you have to perform before retrieving
data from the next result set of a stored procedure?

(Avg. of 36 ) : What is the basic form of a SQL statement to read data
out of a table?

(Avg. of 29 ) : What structure can you have the database make to speed
up table reads?

(Avg. of 16 ) : What is a "join"?

(Avg. of 17 ) : What is a "constraint"?

(Avg. of 11 ) : What is a "primary key"?

(Avg. of 11 ) : What is a "functional dependency"? How does it relate
to database table design?

(Avg. of 15 ) : What is a "trigger"?

(Avg. of 7 ) : What is "index covering" of a query?

(Avg. of 42 ) : What is a SQL view?

MBT Placement Paper

This
I) Distribution of workers in a factory according to the no.of
children they have
Figure
1. Total no. of workers in the factory.
Ans : 200
2. Total no. of children that all the workers that have between them is
Ans : 560
3. The total no. of literate workers is
Ans : 105
4. The ratio of literate & illiterate is
Ans - 1:2
5. The no. of literate workers with atleast 3 children is
Ans : 45
6. The no. of illiterate workers with less than 4 children is
Ans : 60
7. The rate of literate to illiterate workers who have 3 children is
Ans - 3:4
II) Which of the following statement(s) is(are) not true

a. Literate workers have small families than illiterate workers.
b. Families with 2 or less than 2 children are commoner than families
with 3 or more children.
c. 2 children families constitute 60% of the families of workers.
d. More the no. of children a worker has the more illiterate he is.
e. None the above statement is true.
Ans : e
III) ---- of a mutual instrument vibrate 6,8 & 12 intervals
respectively. If all three vibrate together what is the time
interval before all vibrate together again?
LCM of NR
--------- Ans : 1/2 sec
HCF of DR
12) Certain no. of men can finish a piece of work in 10 days. If
however there were 10 men less it will take 10 days more for the
work to be finished. How many men were there originally.
Ans : 110 men
10) In simple interest what sum amounts of Rs.1120/- in 4 years and
Rs.1200/- in 5 years.
Ans : Rs.800/-
vi) Sum of money at compound interest amounts of thrice itself in 3
years. In how many years
will it take 9 times itself.
Ans : 6
vii) Two trains in the same direction at 50 & 32 kmph respectively. A
man in the slower train observes the 15 seconds elapse before the
faster train completely passes him.
What is the length of faster train ?
Ans : 75m
16) How many mashes are there in a sq. m of wire gauge. Each mesh
being 8mm long X 5mm width
Ans : 25000
17) x% of y is y% of ?
Ans : x
11) The price of sugar increases by 20%, by what % house-wife should
reduce the consumption of sugar so that expenditure on sugar can be
same as before
Ans : 16.66
? ) A man spending half of his salary for house hold expenses, 1/4th
for rent, 1/5th for travel expenses, a man deposits the rest in a
bank. If his monthly deposits in the bank amount 50. What is his
monthly salary ?
Ans : 1000
? ) The population of a city increases @ 4% p.a. That is an additioanl
annual increase of 4% of the population due to this influx of job
seekers, the % increase in population after 2 years is
Ans :
? ) The ratio of no. of boys & girls in a school is 3:2 Out of these
?% the boys & 25% of girls are scholarship holders. % of students who
are not scholarship holders.?
Ans :
? ) 15 Men take 21 days of 8 hrs. each to do a piece of work. How many
days of 6 hrs. each would do if 21 women take. If 3 women do as much
work of 2 men.
Ans : 30
?) a cylinder ingot 6cms in diameter and 6 cms in height is and
spheres all of the same
size are made from the material obtained.what is the diameter of each
sphere?
Ans :3cms
5) rectangular plank of sqrt(2)meters wide can be placed so that it is
on either side of the diagonal of a square shown below.what is the
area of the plank?
Ans :7sqrt(2)
fig no-
7) the difference b/w the compound interest payble half yearly and
the simple interest on a
certain sum cont out at 10% p.a for 1 year is Rs 25 what is the sum
Ans:10,000
8) what is the smallest n0 by which 2880 must be divided in order to
make it a
perfect square ?
Ans : c
a)3 b)4 c)5 d) 6 e)8
9)a father is 30 times more than his son however he will be only
thrice as old as the son
what is father's present age ?
Ans : 40
10) An article sold at a profit of 20% if both the c.p & s.p were to
be Rs.20/- the profit would be 10% more. What is the c.p of that
article?
Ans : 1% loss