Anda di halaman 1dari 12

2011 Bitwise Placement Papers - II with Answers, Solutions:1.

one bottle is half-full of oil and another bottle with twice the capacity is one quarter full of oil. if water is added so
that both the bottles are full and the contents of both are then poured into a third bottle that is empty and large
enough to hold the contents of both, what fractions of the contents in the third bottle is oil?
a)1/4 b)1/3 c)3/8 d)2/3
ans:b)1/3
2. don and his wife each receive an 8 percent annual raise. if don receives a raise rs.800 and his wife receives a
raise of rs. 840, what is the difference between their annual income after their raises?
a)40 b)460 c)500 d)540
ans:d)540
3. Snehs age is 1/6th of her fathers age. Snehs fathers age will be twice of Vimals age after 10 years. If Vimals
eighth birthday was celebrated two years before, what is Snehs present age?
a) 24 years b) 30 years c) 6 2/3 years d) None of these
4. Three years ago the average of A and B was 18 Years. With C joining them now, the average becomes 22 years.
How old is C now?
a) 24 years b) 27 years c) 28 years d) 30 years
5. A train traveling at 42 kms/ hr passes a cyclist going in the same direction in 9 secs. If the cyclist had been going in
the opposite direction, the train would have passed him in 5 secs. Find the length of the train.
a) 75 meters b) 60 meters c) 90 meters d) 80 meters
6. A person walks a distance of 18 kms at a particular speed. For the next 30 kms he increases his speed by 2 kmph.
Had he walked the entire distance at 3 kmph more than his initial speed, he would have reached 4 hours earlier. Find
his initial speed.
a) 3 kms/hr b) 2 kms/hr c) 4 kms/hr d) None of these
7. A man starts from B to K, another starts from K to B, at the same time. After passing each other they complete their
journeys in 3.33 and 4.80 hours respectively. Find the speed of the second man if the speed of the first is 12 km/ hr
a) 12 kms/hr b) 10 kms/hr c) 14 kms/hr d) Data inadequate
8. A train traveling at 40 kms / hr while inside the tunnel meets another train of half its length traveling at 60 kms / hr
and passes it completely in 4.5 seconds. Find the length of the tunnel if the first train passes completely through it in
4 minutes 37.5 seconds.
a) 2000 meters b) 3000 meters c) 4000 meters d) 5000 meters
9 Lucia is a wonderful grandmother. Her age is between 50 and 70.Each of her sons have as many sons as they
have brothers. Their combined number gives Lucia?s age. What is the age?
Ans: 64

10. There are two towers A and B. Their heights are 200ft and 150ft respectively and the foot of the towers are 250ft
apart. Two birds on top of each tower fly down with the same speed and meet at the same instant on the ground to
pick a grain. What is the distance between the foot of tower A and the grain?
Ans:90ft
11. What would be the output of the following program?
main()
{
char near * near *ptr1;
char near * far *ptr2;
char near * huge *ptr3;
printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3));
}
a) 1 1 1 b) 1 2 4 c) 2 4 4 d) 4 4 4
12.void main()
{
struct a
{
char ch[10];
char *str;
};
struct a s1={"Hyderabad","Bangalore"};
printf("\n%c%c",s1.ch[0],*s1.str);
printf("\n%s%s",s1.ch,s1.str);
getch();
}
Ans: HB, HyderabadBangalor
13. main(int argc,int *argv[])
{
int i;
for(i=1;i<argc;i++)
printf("\n%s%s",argv[i],(i<argc-1)?"":"");
return 0;
getch();
}
Ans: I work for oracle
14.void main()
{
int i,j,k;
for(i=0;i<3;i++)
k=sum(i,i);
printf("\n%d",k);
getch();
}
sum(s,t)
{
static int m;
m+=s+t;
return m;

}
Ans: 6
15.void main()
{
int i;
clrscr();
for(i=1;i<6;++i)
switch(i)
{
case 1:
case 2: printf("%d,",i++);break;
case 3: continue;
case 4: printf("%d,",i);
}
printf("%d",i);
getch();
}
Ans: 1,4,6
16.Which of the storage class(es) becomes the global variables for the entire Program
(A) Extern
(B) Static
(C) Auto
(D) Register
Ans: A
17. What is the output of the program
void main()
{
char s[]="oracle is the best";
char t[40];
char *ss,*tt;
while(*tt++=*ss++);
printf("%s",t);
getch();
}
// A. oracle is the best
// B. Core dump
// c. Error Message
// D. Goes into infinite loop
Ans: B. core dump (Garbage value)

18. What is the output of the program


void main()
{
int j[10]={9,7,5,3,1,2,4,6,9};
int i=1;
clrscr();
for(;i<9;i++)
printf("%d ",--j[i++]);
getch();
}

// A. 6,2,1,5
// B. 6,2,1,5,7
// c. Error Message
// D. core dump
Ans: A. 6,2,1,5
19. What is the output of the program
void main()
{
int i,j,k,n=5;
clrscr();
for(i=5;i>0;i--)
{
j=1<i;
k=n&j;
k==0?printf("0"):printf("1");
}
getch();
}
// A. 00011
// B. 11110
// c. 11001
// D. 11100
Ans: B. 11110
20 /What is the output of the program, if integer occupies 2 bytes memory?
union
{
int a;
char b;
char c[10];
}u1;
void main()
{
int l=sizeof(u1);
printf("%d",l);
getch();
}
// A. 13
// B. 10
// c. 16
// D. None of the above
Ans: B. 10

2011 Bitwise Placement Papers - I with Answers, Solutions:1. a man buys postage stamps of denomination of 30ps. and 50 ps. for rs.10.00. he buys 22 stamps in all. find the no
of 30ps. stamps bought by him.
a.5(ans) b.6 c.17 d.8
2. the ages of a and b are in the ratio 9:4. after 7 years the ratio of their aghes will be 5:3.find b's present age.

a.18 b.8(ans) c.7 d.16


3. if 28 is divided into two parts such that one fourth of the greater part is equal to one third of the lesser part,then the
greater part is
a.16(ans) b.18 c.20 d.24
4.a man and a woman, walking together start out by both taking a step with the left foot. in order to keep together, the
man whose stride is longer, takes two steps while the woman takes three. how many steps will the woman have
taken they are both about to step out on the right foot for the first time together?
5. for communicating with its satellite,NASA has only two codes is equal to 2 and<= is equal to 3.whenever the two
symbols appear together the value is taken as sum of each symbol. for example <=<=*** is equal to
3+3+2+2+2=12.which of the following is equal to <=<=<=** minus <**?
a.<=* b.<=** c.<=**** d.<=<=(ans)
6. if i sell two articles, one at 20% profit for rs.100 and the other at 20% loss for rs.100, what is my net profit/loss?
a.4.16 profit b.4.16 loss c.8.33 profit d.8.33 loss(ans)
7. if 85% of the population of an ant colony is red, and of these 45% are females, then what % of the total ant
population are male red ants?
a.46.75(ans) b.40 c.33.66 d.66.66
8. what is the cost price of an article sold at rs.199 after two successive discount of 10% and 15%?
a.260(ans) b.200 c.234 d.220
9. Jhaveri invested in Upendra&Upendra,Celco and Winger shares at Rs. 300,Rs.200 and Rs.5 per share
respectively. He bought 100 shares for Rs.1000.The number of Upendra&Upendra and Celco shares he bought are
respectively
a)23.17 b)17,23 c)17,60 d)15,25
ans:b)17,23
10. a certain organization has three committees. only two persons are members of all committees, but every pair of
committees have three members in common. what is the least possible no of member of members on any one
committee?
a)4 b)5 c)6 d) none of these.
ans:a)4

11. what is the data type of FILE?


a. integer
b. union
c. pointer
d. structure

12. if "a" is an array of 5*5 dimension, a[2][4] is same as


a. **(a+2+4)
b. *(a+2) + *(a+4)
c. **(a+2)+4
d. *(*a+2)+4)
13. what is the output of ..
#include
void main()
{
char buffer[10]={"Genesis"};
printf("%d",&buffer[4]-(buffer));
}
a. 3
b. 4
c. 0
d. illegal pointer subtraction
14. what is the output for
#include
main()
{
static int a[]={5,10,15,20};
int * ptr=a;
int ** ptr_ptr=&ptr;
printf("\n %d",**ptr_ptr++);
}
a. 5
b. 10
c. 15
d. 6
15. what is the value of expr..
1+2/3*4+1
a. 2
b. 3
c. 4
d. 4.666666
e. 5

16. main()
{
int I;
for(;;)
{
printf(%d,I++)
if(I>10)
break;
}
}
a. condition in a for-loop is mudt
b. no error

c. 2 ; should be dropped
17.void goop ( int z[]);//prototype
int x[10];
which o is the correct way to call goop
a. goop(x);
b. goop(x[]);
c. goop(x[10]);
d. goop(&x);
e. goop(&x[]);
15. int a=3,b=17;
a=b%a;
b=++a+5;
printf(a,b);
a. 2 8
b. 2 7
c. 3 7
d. 2 8
e. none
18. How many time shell o will be printed?
FILE *fp=fopen (test.txt, w)
Fprintf (fp,hello);
Fork();
a. 1
b. 2
c. 0
d. none
17. int a;
int b=0;
while(a)
{
{ a&=a-1;
b++;
}
a &b
a. 0 & 15
b. 1 & 16
c. 0 & 16
d. none
19. class A
{
public:
static int a;
A() {a=10};
};
int main()
{
A b;
Printf(%d,b.a);
Return 0;

}
Will the program compile?
a yes
b. no
20. What would be the output of the following program?
main()
{
int y=128;
const int x=y;
printf("%d",x);
}
a) 128 b) Garbage value c) Error d) 0

BitWise Placement Paper December 2012:Q. 01: Find out synonyms:


Implode
Q. 02: Fill In The Blank
The .. nature of internet and in the its increasing of users because of its
underlying ..has made enhancements in its.. and compatible for
Q. 03: Find sum of series: 1+ 0.1+0.001+0.0001+. Ans: 10/9
Q. 04: Find loal max & min of 2 + f(2x2+ 3X +1)?
Q. 05: In an interview, the probability of appointing Husband is 1/5 while that of wife is
.find probability that only one of them get selected in interview?
Ans: 1/4
Q. 06: Two commodities have cost per kg is 4.75Rs & 3.20Rswere mixed in a certain ratio
so as to make cost price of mixture as 17.75 Rs. Find the ratio?
Ans: 4:1
Q. 07: Answer the following question on the basis of the information given below:
Mathematicians are assigned a number called Erdos number (named after the famous
mathematician, Paul Erdos). Only Paul Erdos himself has an Erdos number of zero. Any
mathematician who has written a research paper with Erdos has an Erdos number of 1. For
other mathematicians, the calculation of his/her Erdos number is illustrated below:
Suppose that a mathematicians X has co-authored papers with several other
mathematicians. From among them, mathematician Y has the smallest Erdos number. Let
the Erdos number of Y be y. Then X has an Erdos number y +1.Hence any mathematician
with no co-authorship chain connected to Erdos has an Erdos number of infinity.

In a seven day long mini-conference organised in memory of Paul Erdos, a close group of
eight mathematicians, call them A,B,C,D,E,F,G,and H, discussed some research problems. At
the beginning of the conference, A was the only participant who has an infinite Erdos
number. Nobody had an Erdos number less than that of F.
On the third day of the conference F co-authored a paper jointly with A and C. This reduced
the average Erdos number of the group of eight mathematicians to 3.The Erdos numbers of
B, D, E, G, and H remained unchanged with the writing of this paper. Further, no other coauthorship among any three members would have reduced the average Erdos number of the
group of eight to as low as 3.
At the end of the third day, five members of this group had identical Erdos numbers while
the other three had Erdos numbers distinct from each other.On the fifth day, Eco-authored a
paper with F which reduced the groups average Erdos number by 0.5.The Erdos numbers of
the remaining six were unchanged with the writing of this paper.No other paper was written
during the conference.
1) How many participants in the conference did not change their Erdos number during the
conference?
a) 2
b) 3
c) 4
d) 5
e) 2
2) The person having the largest Erdos number at the end of the conference must have had
Erdos number (at that time)?
a) 5
b) 7
c) 9
d) 14
e) 15
3. How many participants had the same Erdos number at the beginning of the conference?
a) 2
b) 3
c) 4
d) 5
e) cannot be determined
4. The Erdos number of C at the end of the conference was?
a) 1
b) 2
c) 3
d) 4

e) 5
5. The Erdos number of E at the beginning of the conference was?
a) 2
b) 5
c) 6
d) 7
e) 8
Q. 08: He knows all the ins and outs of the political system?
a) loopholes
b) details
c) problems
d) pressures
e) None of these
Q. 09: ASCII
Ans: American Standard Code For Information Interchange.
Q. 10: find the odd man out:
a) OS/2
b) CMOS
c) MSDOS
d) Unix
Ans: CMOS

Q. 01: Find out synonyms:


Impervious
Q. 02: A rhombus has area 432 sq m, one diagonal is 36 cm. find other diagonal?
Ans: 24 cm
Q. 03: If price of t.v set is reduced by 20%, then its sale increases by 80%, find net effect
on sale value?
Ans: 44%more
Q. 04: Find the point which is nearest to (1,2,3)?
Q. 05: Integration of which is maximum for ?f(x),lim(0,1) ? a) 2x b) 2x2 c) 2x3 d)2 const
fn?
Ans: d

Q. 06: Find the probability that a five digit no formed by 1,2,3,4,5 ( not repeated) are
divisible by 4?
Ans: 3/20.
Q. 07: Answer the following questions on the basis of the information given below:
Two traders, Chetan and Michael, were involved in the buying and selling of MCS shares
over five trading days. At the beginning of the first day, the MCS share was priced at
Rs.100, while at the end of the fifth day it was priced at Rs.110. At the end of each day, the
MCS share price either went up by Rs.10, or else, it came down by Rs.10. Both Chetan and
Michael took buying and selling decisions at the end of each trading day. The beginning price
of MCS share on a given day was the same as the ending price of the previous day. Chetan
and Michael started with the same number of shares and amount of cash, and had enough
of both below are some additional facts about how Chetan and Michael traded over the five
trading days.Each day if the price went up, Chetan sold 10 shares of MCS at the closing
price. On the other hand, each day if the price went down, he bought 10 shares at the
closing price.
If on any day, the closing price was above Rs.110, then Michael sold 10 shares of MCS,
while if it was below Rs.90, he bought 10 shares, all at the closing price.
1) If Chetan sold 10 shares of MCS on three consecutive days, while Michael sold 10 shares
only once during the five days, what was the price of MCS at the end of day 3?
a) Rs.90
b) Rs.100
c) Rs.110
d) Rs.120
e) Rs.130
2) If Chetan ended up with Rs.1300 more cash than Michael at the end of day 5, what was
the price of the MCS share at the end of day 4?
a) Rs.90
b) Rs.100
c) Rs.110
d) Rs.120
e) Not uniquely determinable
3) If Michael ended up with 20 more shares than Chetan at the end of days 5, what was the
price of the shares at the and of day 3?
a) Rs.90
b) Rs.100
c) Rs.110
d) Rs.120
e) Rs.130
Q. 08: In the following questions, the symbol @, $, @, ? and ? are used with the following
meanings: P @ Q means P is greater than Q. P $ Q means P is equal to Q. P @ Q means P is

neither greater than nor equal to Q. P ? Q means P is either smaller than or equal to Q. P ?
Q means P is either greater than or equal to Q. Now in each of the following questions
assuming the given statements to be true, find which of the two conclusions I and II given
below them is/are definitely true? Give answer 1) if only conclusion I is true; 2) if only
conclusion II is true; 3) if either I or II is true; 4) if neither I nor II is true; and 5) if both I
and II are true;
1) Statement: M@ K, P ? K, K $ T
Conclusions: I. P $ T II. M @ T
2) Statements: R @ M, M $ P, P ? T
Conclusions: I. R @ T II. R $ T
3) Statements: T ? N, R @ N, R ? K
Conclusions: I. N @ K
II. T ? K
4) Statements: M @ R, R $ A, A ? K
Conclusions: I. K @ M
II. K ? R
5) Statements: P ? M, M @ K, K $ T
Conclusions: I. P $ M
II. T @ P
Q. 09: ANSI
Ans: American National Standard Institute
Q. 10: What is lagging in DBMS?
Ans: Reduced Redundancy

Anda mungkin juga menyukai