Monday, May 12, 2008

WIPRO


WIPRO IN PSG COLLEGE OF TECHNOLOGY
Date: 13/06/04

1. to enter one’s club the guard asks some password. For the first man the guard told “twelve”, then the man replied “six” and he was let in. then the second man came and guard told “six” and the man replied “three” and he was le in. then another man came, the guard told “ten” and the man replied “five”, but he was not let in. What the man should have told to enter?
A) 2 b) 3 c) 6 d) 1 ans: b)
2. 1,2,5,10,17,26,__ ans: 37
3. two friends starts to ride motor bike opposite to each other and are separated by 36 km. they both ride with the speed of 6 kmph. A fly travels with the speed of 18 kmph to and fro between two friends. The starts to travel from one of the friends. What is the distance traveled by the fly when the friends meet? Ans: 54 km
4. a frog climbs a wall of 15 ft. it takes 1 hr to climb 3 ft. then it takes rest for 30 min. but while taking rest it slips 2 ft. what is the time taken by the frog to reach the top? Ans: 19hrs
5. the total no. of squares present in



6. total tickets 105, adults---- 2.50/ticket, student------ 1.10/ticket. Total amount = 221.90. find number of adult ticket sold?///76
7. there are 8 flowers and it gets doubled at each temple. To each temple 4 flowers are given. How flowers will be there at the visiting of third temple?
8. there are certain number of apples. If one puts 10 per packet then last packet contains 9, if he puts 9 per packet then last packet contains 8 and so on…. Find the total number of apples? Ans: 2159
9. there was a age and probability problem which I don’t remember


TECHNICAL:
two c programs using pointers
2’s complement of 1
java platform based
when should while loop used
friend function of c++
fscanf get its i/p from which library ?
collection of files in database is called?
which is not a keyword in C a) static b) dynamic c)none
binary representation of hexa number A1 is:
10. the operator which divides number by pow of 2 is: a) >> b) <<
11. the windows componet which manages files and folders is: ans: windows explorer

SATYAM

Place :Dr. L.B.College,visakhapatnam.date :16,17 of july
constraints: 2006 outgoing batch 65% in BE/MCA
No. of Applicants: 1738No. of App. shortlisted in written test:238No. of App. shortlisted in GD:74No. of ppl selected after HR/TECH : 22
The process went as follows I am mentioning it cause ithought it will be some use to u.
date-16=======
On 16 there was only written test. I consisted of 15questions and lasted for 30 min.
It was conducted in 3 batches with 3 diffrent sets ofpapers. (I was in the first batch)
Correct answer : +1wrong answer : - 1/4
some questions I can remember
1. one man was sitting on a pavement and lookin atcarsthe first one was red,second was orange, third wasyellow so what will be the next car?
a: green(vibgyor in reverse)
2. mother and six children combined average age is 22if only children considered the average age get 5 lessso what is the age of mother?
3. Rita's mother is the only daughter of mohan.Samatha is Rita's cousin what is the relation withmohan.(blood relations)
4. some pattern matching
5. 256 20 x 10 12 10 y 6 4 9 8 7 z 5 4 3
what is the values of x,y,z
6. (a)x+y=20 (b)2x+y=y+10what is the value of x
(i) is statement a alone is sufficient(ii) is statement b alone is sufficient(iii) statement a or b is sufficient(iv) statements a and b combined is sufficient(v) given info is not sufficient.
sorry cant rem more
I've answered 14
Exam time : 9.30Results : 4 PM
day = 17========
Today was the second day
==>2nd round is Group discussion ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
duration : 10 minno. of participants: 10
Topic: computer usage by children below 12 good or bad
other gd topics:2)Cell phones ban in colleges3)If a lumpsome of money given how would u spend them4)Is china threat of India
No of ppl selected from our batch: 2
there were 4 girls and 6 boys
one guy immediately started the discussion without anyintroduction(hmm i thought of introducing myself butas it had been already started I recited) then two orthree ppl started to argue then (I was the fourth) Ihad some good points so I have put forward but in meanwhile one guy(who initiated) started shouting at everyone. No one was listening to any, so kept mum, everyone is sayin "order in group" one guy was not givingany chance to others, After I put forward thestrongest points I asked a girl who was tryin to speakto put forward her point and lated one guy asked me tospeak(tryin to show his leadership skills i guess)then I talked for a while and asked some other tospeak. every one was arguing and were blunt. It wastotal chaos I did'nt knew what to do 'cause if I shoutit will have a negative impact if I dont no pointswill be awarded. so I have put many of my points Ithought to every one especially those who werelistening.Later the invigilator asked each one of us to conclude
so every one had their chance. each one of us did thatin a sentence One guy who did'nt allowed any one tospeak did it in a paragraph :)that was it.
Me and the guy who spoke long ie the paragraph guywere selected.
time of gd: 9.30time of results: 1.30
Those who were selected in GD were asked to fill aapplication(actually a resume in their format) of allthe details.
==> third round was TECH & HR:

CARITOR

APTITUDE
1.a cube object 3" * 3" * 3" is painted with green in all the outer surfaces. If the cube is cut into cubes of 1"*1"*1", how many 1" cubes will have at least one surface painted.
a. 8 b.26 c.27 d. none ans.b
2. single table tennis tournament is held at IT solutions in which 32 players participated. If a single player is eliminated as soon as the player loses a match. How many matches are required to determine the winner. A. 32 b. 16 c. 31 d. 15 ans.c
3. there are 200 employees in a company. An external vender is chosen to serve coffee twice a day. 100 coffee cups were offered by the company , but as an incentive to have the cups in fact at the end of the day, the company offered 30 paise for every cup remained safely and charged 90 paise for every broken cup. At the end of the day , the vender received RS.24 . how many cups did the vender break.
a. 20 b.5 c.10 d.14 ans.c
4. a box contains 16 balls of 4 different colors green blue yellow &red each. if you were to close your eyes and pick them at random , how many marbles must you take out to be sure that there at least two of one colour among the marbles picked out.
A. 4 b. 5 c. 6 d. 14 ans.b
5. if 8 tyres were used on a bus (6 tyres ) which has traveled 16000 km , how many km did each tyre sustain .if all the tyres were used equally in sustaining this distance .
a. 2000 b.16000 c.12000 d.10000 ans.c
6. a company purchased 3 computer tables in 1995. as the company wanted to renovate the office , sold those tables at RS.2400 each making a profit of 20% of one , no profit on second table and 20%loss on third table. What is the company get in this transaction.
A. no loss no profit b.RS.200 loss c.RS.800profit d. RS.400 loss ans.b
7. a farmer owns a square field of side with a pole in one of the corners to which he tied his cow with a rope whose length is about is 10 m . what is the area available for the cow to grace .
assume pi=3.
A.150 sq.m b.125sq,m c.75sq.m d. not enough data. ans.c
8.the average of x & y is 12.if z=9 what is the average of x ,y, z
a.11 b.6.5 c.5 d. not enough data ans.a
9.in a certain shop note books that normally sell for 59 cents each or on sale at 2 for 99cents.how can be saved by purchasing 10 of these note books at the sale price.
a.$0.85 b.$1.0 c.$0.95 d.$1.15 ans. c
10.the cost in $ of manufacturing x fridges is 9000+400x . the amount received when selling these x fridges is 500x $ , what is the least no of fridges that must be manufactured & sold so that the amount received is at least equal to the manufacturing cost.
a. 10 b.18 c.15 d.90 ans. d
11.the sides of the right triangular field containing the right angle are x &x+10. its area is 5500sq.m.the equation to determine is
a. x(x+10)=5500 b. x(x+10)=2750 c. x(x+10)=11000 d. x(x+20)=5500
ans.c
12.the length and breadth of a rectangular plot are in the ratio of 7:5. if the length is reduced by 5 m& breadth is increased by 2 m then the area is reduced by 65 sq.m. the length and breadth of the rectangular plot are
a.25,35 b.21,15 c.35,25 d.49,35 ans.c
13. 6 men earn as much as 8 women ,two women earn as much as 3 boys&4 boys earn as much as 5 girls . if a girl earns RS.50 a day then the earning of the man would be
a.115 b.125 c.135 d.150 ans.b
14.a & b can separately do a piece of work in 10 & 15 days respectively. They work together for sometimes and b stops. If a completes the rest of work in 5 days ,then b has worked for
a.5 b.4 c.3 d.2 (days). Ans.c
15.A Farmer owns a square land of 15 m each side with a pole in one of the corners to which he tied his cow with a rope whose length is about 10 m. What is the area available for the cow to graze. (Assume pi = 3)
Ans.75
16.Logical Reasoning
Five friends Lokesh, Manoj, Neeraj, Raveesh and Rohit have agreed to work together on a part-time job offered by a local restaurant. The restaurant works five days a week and this group has the following schedule when they can work:
1.Neeraj and Raveesh can work on Monday, Tuesday and Wednesday
2.Raveesh and Rohit can work on Monday, Wednesday and Thursday
3.Rohit and Lokesh can work on Monday, Friday and Thursday
4.Lokesh and Manoj can work on Friday, Tuesday and Thursday
5.Neeraj and Manoj can work on Friday, Tuesday and Wednesday Which one of the five friends cannot work on Thursdays?
17.A Fraction has the denominator greater than its numerator by 4. But if you add 10 to the denominator, the value of the fraction would then become 1/8. What is the fraction.
1/5,3/7,1/3,2/6
18. Concentrations of three wines A, B and C are 10, 20 and 30 percent respectively. They are mixed in the ratio 2 : 3 : x resulting in a 23% concentration solution. Find x.
Ans.4
19.

In the figure below , marked triangles are equilateral congruent triangles. If the area of the shaded region is A, Find the remaining area
Ans:A
1.A(3+4√2)
2.A(3+4√2)
3.6A
4.A(3+2√3)

Four towers in a commercial complex are connected by a network of escalators in the manner shown below. Determine the number of ways you can go from one tower to the other and back, without using the same escalator more than once and not using any other means of transportation? Ans:10






-----------------------------------------------------------------------
A partly true or follows logically.
B partly untrue or opposite follows logically .
C can't say anything
The big economic difference between nuclear and fossil fueled power stations is that the nuclear reactors are more expensive to build and decommission, but cheaper to run. So disputes over relatively of the two systems revolved not just around the prizes of coal and uranium today and tomorrow, but also around the way in which the future income should be compared with income.
7. the main difference between nuclear and fossil fueled is an economic one.
A B C
8. the price of coal is not relevant to discussions to about the efficiency of nuclear reactors.
A B C
9. if nuclear reactors were cheaper to build and decommission than fossil fueled power stations, they could definitely have economic advantage.
A B C
At any given moment are being bombarded by physical and psychological stimuli computing for one attention. Although our eyes are capable of handling more than 5 millions of data per sec, our brains are capable of interpreting only about 500 bits per sec. with similar disparities between other senses and brain it is easy to see that select visual, auditory or tactile stimuli that we wish to compute at any specific time.
10.physical stimuli usually win the competition for our attention.
A B C
11.the capacity of human brain is sufficient to interpret nearly all the stimuli the senses can register under optimum condition.
A B C
12.eyes are able to hope with greater input of information than ears.
A B C
C QUESTIONS:

1. Struct x
{
int i;
char c;
}

union y{
struct x a;
double d;
};

printf("%d",sizeof(union y));

a)8 ans:8
b)5
c)4
d)1


2. struct x{
char c1;
char c2;
int i;
short int j;
};

struct y{
short int j;
char c1;
char c2;
int i;
};

printf("%d %d",size of (struct x),size of (struct y));

a)12 12
b)8 8 ans:a
c)12 8
d)8 12


3. enum x {a=1,b,c,d,f=60,y}
printf("%d",y);
a)5
b)61
c)6
d)60
ans:b

4.
#include
void main(){
{
# define x 10

}
printf("%d \n",++x);
}

a)11
b)10
c)compile error ans:c
d)runtime error

5. #include
void main()
{
int k=2,j=3,p=0;
p=(k,j,k);
printf("%d\n",p);

}
a)2
b)error
c)0
d)3

ans:a
6. How to typedef a function pointer which takes int as a parameter
and return an int
a)Is not possible
b)typedef int *funcptr int;
c)typedef int * funcptr( int);
d)typedef int (*funcptr)(int);
ans:d

7. #include
void main()
{
int k=10;
k<<=1;
printf("%d\n",k);
}
a)10
b)0
c)20
d)compilation error ans:c

8. #include
void main()
{
int i=-10;
for(;i;printf("%d\n",i++));
}
a)error
b)prints -10 to -1
c)infinite loop
d)does not print anything
ans:b

9.
#include
void main()
{
int I=65,j=0;
for(;j<26; i++,j++){
printf("%s\n", i);
}
}
a)compilation Error
b)prints A to Z
c)prints a to z
d)runtime error
ans:b
10.
#include
void main()
{
unsigned int i=-1;
printf("%d\n",i);
printf("%u\n",i*-1);
}

a)runtime error
b)compilation error
c)prints -1 to 1
d)prints 1 and 1
ans:c
11.
#include
void main()
{
int **I;
int *j=0;
i=&j;
if (NULL != i&& NULL != *i){
printf("I am here");
}
}

a)prints I am here
b)does not print anything
c)compilaton error
d)runtime error

ans:b
12
#include
void main()
{
int *j=(int *)0x1000;
printf("%p",j);

}
a)prints-1000
b)runtime error
c)compilation error
d)none of the above

ans:d
13
#include
void main()
{
int a[2][2]={{2},{3}};
printf("%d",a[0][0]);
printf("%d",a[0][1]);
printf("%d",a[1][0]);
printf("%d",a[1][1]);
}
a) 2300
b)2000
c)0030
d)2030
ans:d

14) #include
void main(int x)

{
printf("%d",x) ;

}
if the name of the executable file is abc and the command line is
given as
abc xyz
what is the output
a)compilation error
b)1
c)2
d)undefined
ans:2

15. #include
void main(int argc)
{
char a[]={'1','2','3',0,'1','2','3'};
printf(a);
}

a) compilation error, b) 123, c) 123 123, d) 1230123
ANS:b

16. #include
void func(int *x)
{
x=(int *) malloc(sizeof(int));
printf("in func: %p\n",x);
}

void main(int argc)
{
int **pp;
int *p;
pp=(int **) malloc(sizeof(int *));
p=(int *) malloc(sizeof((int));
*pp=p;
printf("first:%p \n",*pp);
func(*pp);
printf("last %p \n",*pp);
}

assuming the p is equal to 1000 and x is equal to 2000 atfer malloc
calls

a) 1000,2000,1000, b) 1000,2000,2000, c) 1000,1000,1000 d)
2000,2000,2000
ANS:a

17. #include
#define const const
void main(int argc)
{
const int x=0;
}

a) compilation error, b) runs fine, c) runtime error, d) none
of these
ANS:b

18. #include
void main(int argc)
{
int d=1234.5678;
printf("%d",d);
}

a) error, b) 1234.5678, c) 1234, d) 1235
ANS:c

19. #include
void main(int argc)
{
int a[]={5,6};
printf("%d",a[1.6]);
}

a) 5, b) runtime error, c) compilation error, d) 6
ANS:d

20. #include
struct x
{
int i=0; /*line A*/
};
void main(int argc)
{
struct x y; /*line B*/
}

a) error due to B,
b) no problem with option A and B,
c) error somewhere other than line A and B,
d) error due to line A
ANS:d

21. #include
void main(int arg c)
{
int x=1111;
printf(“%d”,!x);
}
a.prints 1111
b.compilation error
c.prints 0
d.is not a valid option
ans:c
22. struct {
int len;
char *str
}*p;
++p -> len

a.increments p
b. increments len
c.compilation error
d.nothing happens with either of p and len
ans:b
23. int i=10;
a.declaration
b.definition
c.both
d.none
ans:c

24. #include
void main(int arg c)
{
char a[]=abcdefghijklmnopqrstuvwxyz;
printf(%d,sizeof(a));
}
a.25 b.26 c.27 d.28
ans:c
25. #include
void main(int arg c)
{
char a[]=abcdefghijklmnopqrstuvwxyz;
char *p=a;
printf(%d,strlen(p));
p+=10;
printf(%d,strlen(a));
}
a.26 26
b.26 16
c.compilation error
d.16 26
ans:a

26. if a file contains the IT solutions Inc.rn then on reading this
line the array str using fgets() what would str contain?
a. IT solutions Inc.
b. IT solutions Inc.r0
c. IT solutions Inc.rn0
d. IT solutions Inc.n0

27. if the following program (myprog)is run from the command line as
myprog 1 2 3
what would be the output?
Main(int argc , char *argv[])
{
int I ,j=0;
for (I=0;I j=j+atoi(argv[i]);
printf(%d.j);
}

a. 123 b.6 c.error d.123
ans:6
28. when pointers declared initialized to :
a. null
b.newly allocated memory
c)nothing,its random
d)none of the above
ans:c

29. what is the output of the following code?
#include
void main()
{
printf("%d",printf(" hello world "));
}

a) 13, b) hello world 13, c) hello world, d) error
ANS:b

30. what is the output of the following code, assuming that the array
begins at location 5364875?
#include
void main()
{
int a[2][3][4]={
{2,1,4,3,6,5,8,7,0,9,2,2}
{1,2,3,4,5,6,7,8,9,0,1,2}
};
printf("%u %u %u %u",a,*a,**a,***a);
}
a) 5364875,5364876,5364877,5364878
b) 5364875,5364876,5364877,2
c) 5364875,5364875,5364876,5364876
d) 5364875,5364875,5364875,2
ANS:d
31. are null statements in c null pointers.
32. is cinst int *p same as int const* p
find similar words
beaker:chalice
formulas:constituents
time and work problem.

APPTITUDE
1.
Answer the following questions based on the information given in the graph below:
Sales Price:


Standard Quality Screws
Rs. 5.70
Per 100
Sub Standard Quality Screws
Rs. 2.85
Per 100
By how much did the total sales value of November's Screw production vary from October's?
Rs. 285.00 (Increase)
No change
Rs. 142.50 (Decrease)
Rs. 28.50 (Decrease)

2.) Five friends Lokesh, Manoj, Neeraj, Raveesh and Rohit have agreed to work together on a part-time job offered by a local restaurant. The restaurant works five days a week and this group has the following schedule when they can work:
Neeraj and Raveesh can work on Monday, Tuesday and Wednesday
Raveesh and Rohit can work on Monday, Wednesday and Thursday
Rohit and Lokesh can work on Monday, Friday and Thursday
Lokesh and Manoj can work on Friday, Tuesday and Thursday
Neeraj and Manoj can work on Friday, Tuesday and Wednesday
Which one of the five friends cannot work on Thursdays?

3.)

The cost, in dollars, of manufacturing x refrigerators is 9,000 + 400x. The amount received when selling these x refrigerators is 500x dollars. What is the least number of refrigerators that must be manufactured and sold so that the amount received is at least equal to the manufacturing cost?

10
18
90
50

4.)
Select A - If you think the statement is patently true or follows logically given the information or opinions contained in the passage
Select B - If the statement is patently untrue or the opposite follows logically, given the information or opinions contained in the passage
Select C - If you cannot say whether the statement is true or untrue or follows logically without further information
The big economic difference between nuclear and fossil-fueled power stations is that the nuclear reactors are more expensive to build and decommission, but cheaper to run. So dispute over the relative efficiency of the two systems revolve not just around the prices of coal and uranium today and tomorrow, but also around the way in which the future income should be compared with current income.

If nuclear reactors were cheaper to build and decommission than fossil fuelled power stations, they would definitely have the economic advantage.

5.) In this test, you are given two words outside the brackets. You have to fill in the brackets with a word which has a similar meaning (maybe in a different context) as that of the words on the right and left hand side of the brackets. FINAL ( ) ULTIMATE
end
Last
Finish
Dead
A takes 4 days to finish a job and B takes 5 days. If both of them work together on the same job, what proportion of the work is done by A?
5/9
4/9
6/9
7/9
7.)
In the right angled triangle below, if tan Ө + sin Ө = 32 / 15 and all sides are whole numbers, find cos Ө .
12/13
4/5
5/13
3/5
Bottom of Form
8.)

A and B can separately do a piece of work in 10 and 15 days respectively. They work together for some time and then B stops. If A completes the rest of the work in 5 days, then B has worked for

5 days
4 days
2 Days
3 days



9.)
Which of the following circles contains letters in a different order?


10.) Five friends Lokesh, Manoj, Neeraj, Raveesh and Rohit have agreed to work together on a part-time job offered by a local restaurant. The restaurant works five days a week and this group has the following schedule when they can work:
Neeraj and Raveesh can work on Monday, Tuesday and Wednesday
Raveesh and Rohit can work on Monday, Wednesday and Thursday
Rohit and Lokesh can work on Monday, Friday and Thursday
Lokesh and Manoj can work on Friday, Tuesday and Thursday
Neeraj and Manoj can work on Friday, Tuesday and Wednesday
Which is the one who cannot work on Tuesdays?

11.) There are 200 employees in a company. An external vendor is chosen to Serve coffee twice a day. 100 coffee cups were offered by the company but as an incentive to have the cups in tact at the end of the day, the company offered 30 paise for every cup remained safely and charged 90 paise for every broken cup. At an end of a day, the vendor received Rs. 24. How many cups did the vendor break?
10
20
8
5

12.)
Each problem in this test consists of a series of diagrams, which follow a logical sequence. You are to choose the next diagram in the series from the four options on the right. Then indicate your answer by choosing the correct one (A B C D) .

13.) 1.a cube object 3" * 3" * 3" is painted with green in all the outer surfaces. If the cube is cut into cubes of 1"*1"*1", how many 1" cubes will have at least one surface painted.
a. 8 b.26 c.27 d. none ans.b

14.) 14.a & b can separately do a piece of work in 10 & 15 days respectively. They work together for sometimes and b stops. If a completes the rest of work in 5 days ,then b has worked for
a.5 b.4 c.3 d.2 (days). Ans.c


C-QUESTIONS

1. Struct x
{
int i;
char c;
}
union y{
struct x a;
double d;
};
printf("%d",sizeof(union y));

a)8
b)5
c)4
d)1
ans:8

2. struct x{
char c1;
char c2;
int i;
short int j;
};

struct y{
short int j;
char c1;
char c2;
int i;
};

printf("%d %d",size of (struct x),size of (struct y));

a)12 12
b)8 8
c)12 8
d)8 12


3. enum x {a=1,b,c,d,f=60,y}
printf("%d",y);
a)5
b)61
c)6
d)60
ans:b

4. #include
void main()
{
int k=2,j=3,p=0;
p=(k,j,k);
printf("%d\n",p);

}
a)2
b)error
c)0
d)3

ans:a
10.
#include
void main()
{
unsigned int i= -1;
printf("%d\n",i);
printf("%u\n",i*-1);
}

a)runtime error
b)compilation error
c)prints -1 to 1
d)prints 1 and 1

6. How to typedef a function pointer which takes int as a parameter
and return an int
a)Is not possible
b)typedef int *funcptr int;
c)typedef int * funcptr( int);
d)typedef int (*funcptr)(int);
ans:d

7. #include
void main()
{
int k=10;
k<<=1;
printf("%d\n",k);
}
a)10
b)0
c)20
d)compilation error
ans:c


8.) #include
void main()
{
int a[2][2]={{2},{3}};
printf("%d",a[0][0]);
printf("%d",a[0][1]);
printf("%d",a[1][0]);
printf("%d",a[1][1]);
}
a) 2300
b)2000
c)0030
d)2030
ans:d

14) #include
void main(int x)

{
printf("%d",x) ;

}
if the name of the executable file is abc and the command line is
given as
abc xyz
what is the output
a)compilation error
b)1
c)2
d)undefined
ans:2

18. #include
void main(int argc)
{
int d=1234.5678;
printf("%d",d);
}

a) error, b) 1234.5678, c) 1234, d) 1235
ANS:c

19. #include
void main(int argc)
{
int a[]={5,6};
printf("%d",a[1.6]);
}

a) 5, b) runtime error, c) compilation error, d) 6
ANS:d

21. #include
void main(int arg c)
{
int x=1111;
printf("%d",!x);
}
a.prints 1111
b.compilation error
c.prints 0
d.is not a valid option
ans:c
23. int i=10;
a.declaration
b.definition
c.both
d.none
ans:c
25. #include
void main(int arg c)
{
char a[]=abcdefghijklmnopqrstuvwxyz;
char *p=a;
printf(%d,strlen(p));
p+=10;
printf(%d,strlen(a));
}
a.26 26
b.26 16
c.compilation error
d.16 26
ans:a
27. if the following program (myprog)is run from the command line as
myprog 1 2 3
what would be the output?
Main(int argc , char *argv[])
{
int I ,j=0;
for (I=0;I j=j+atoi(argv[i]);
printf(%d.j);
}

a. 123 b.6 c.error d.123
ans:6

29. what is the output of the following code?
#include
void main()
{
printf("%d",printf(" hello world "));
}

a) 13, b) hello world 13, c) hello world, d) error
ANS:b

IT solutions ---- caritor India ltd.
TECHNICAL ROUND C TIME:30 MIN
There is technical round 0f 30 questions its optional between c or c++.choose c its very easy. Most of the questions are from yeshwant kanitkar’s TEST YOUR C SKILLS
Book. Buy this book and prepare its, very nice.

NOTE;1>QESTIONS ARE NOT IN ORDER.
2> DATA MAY VARY, BUT QUESTIONS LIKE THIS.
main
{
int a[5]={2,3};
printf(“%d%d%d”,a[2],a[3],a[4]);
}


extern int I;
is it a declaration or definition?



3>MAIN()
{int i=-3,j=2,k=0,m;
m= ++j&&++i++k;
printf(“%d%d%d”,i,j,k,m);
}

4>
main()
{int i=-3,j=2,k=0,m;
m= ++j&&++i&&++k;
printf(“%d%d%d”,i,j,k,m);
}

5.>main()
{
const int i=7;
printf(“%d”,++i);
}



6>
#define I 6
main()
{
printf(“%d”,++I);
}




7>if array begins at position 1002
main()
{
int a[2][3][4]={{1,2,3,4,5,6,7,8,9,1,1,2},{2,3,4,7,6,7,8,9,0,0,0,0}};
printf(“%d%d%d%d”,a,*a,**a,***a);
}

ANS:

8>
MAIN()
{
printf(“%c”,7[“sundaram”]);
}




ANS:


9>struct name
{
int a;
char b;
char n;
short s;
}n1;
main()
{
printf(“%d”,sizeof(n1));


10>
main()
{
enum{ m=2,n,o=60,p};
printf(“%d”,p);
}


11>
IF A file contains the line “I am a boy\r\n” then on reading this line into the array str using fgets()
What would str contain?



12>
in command line enter myprog 1 2 3 what is output?
Main(int argc , char * argv[])
{
int I,j=0;
for(i=0;ij=j+atoi(argv[i]);
printf(%d”,j);
}

13>
in command line enter myprog Friday Tuesday Thursday what is output?
Main(int argc , char * argv[])
{
printf(“%c”,**++argv):
}



14>
main()
{printf(“%d”,-1>>4);
}

CISCO 2








Cisco

Written Test
The written test consists of three sections based on the MCQ pattern. Each section has 30 questions. There is a choice between Section 2 and Section 3 and only one has to be done.Section 1 is based on basic digital electronics. Section 2 is software orientedSection 3 is advanced digital electronics with questions on setup,hold time,clock violation etc.

Interview
The written test is followed by a lengthy technical interview. The interview may last upto 1 hour or more. It is entirely technical with questions on all basic fundamentals

Profile
Cisco Systems is the worldwide leader in networking for the Internet. Cisco provides end-to-end networking solutions. Cisco sells its products in approximately 115 countries .Cisco is one of America's greatest corporate success stories. Since shipping its first product in 1986, the company has grown into a global market leader that holds No. 1 or No. 2 market share in virtually every market segment in which it participates. Since becoming a public company in 1990, Cisco's annual revenues have increased from $69 million in that year to $12.2 billion in fiscal 1999. As measured by market capitalization, Cisco is among the largest in the world.

CISCO SELECTION PROCEDURE
WRITTEN TEST + ONE INTERVIEW

WRITTEN TEST
============
* Total Duration : 1 hour
* NO NEGATIVE MARKING

Total 3 sections
----------------
* First section is COMPULSORY for both Electronics and Computer Science
students.

* Second Section is of Software.

* Third is of Hardware.

* I M P O R T A N T :: ONLY ONE SECTION AMONG 2nd OR 3rd need to be
answered like for you, you will give the answers of Section 2.

* 30 questions in each section

* There was no bound of time for a particular section. You can
devote any amount of time to any section but max. limit is 1 hr for
the whole paper.

DETAILS OF SECTIONS
-------------------
First Section : 1. Common to both cs and elec people.
2. total 30 questions and NO negative marking
3. Simple questions on digital logic design, 2's
complement, number representations, flipflops,
microprocessors(8085), Architecture[virtual memory
and small numerical like what will be the size of the
memory if we have given the no. of address bits and
other necessary details].
One question of formal method.

Second Section: 1. Software Section
2. total 30 questions and NO negative marking
3. OS(3-4 qns), Compilers(2-3 qns. on basics),
maximum qns. were of C and Data Structures[trees,
preorder,post,inorder traversals,complexity of
search/sort, suitable data structures etc.]

Third Section : devoted to hardware. i do not have any details as no
computer sc. student appeared for this section.

INTERVIEW
=========
Regarding CISCO interviews...... they asked about project and some C and
data structures and to some students some basics of networking and OS
questions..... there were 3 panels....... 2 panels for Software and 1 for
hardware....

Student has to give only one interview in any panel....There was no
separate HR interview.... interview was of generally 25-30 minutes
duration.... 2/3 persons in an interview panel....

CISCO 1



Cisco paper held in ISI on 5th august.
20 questions - analytical
40 questions - system concepts and c.
analytical section.
1.12 quantative questions
2.4 meanings
3.4 matching(like goat::rat)

1.what is the length of the largest diagonal in a cube of 1unit.
ans:2*sqrt(3).
2.if 0 ans:s>-1 and t>-1
3.one of the digits of a two digit number is 6,whose sum is half of there
product and whose product of the half of the reverse order number.what is
the number.
ans:63
4.how many times 0.01 is larger than (0.0001)*(0.0001)
ans:10**6.
5.a train of length 200mts is moving with a velocity of 100km/hr towards
east.a car is comming with a velocity of 72km/hr in the opposite
direction.how much time the car takes to cross the train.
6.canibalism-
7.humino::static
ans:human::--
8.concrete::abstract
ans:matter::mind
9.elevator-above
10.ramesh,robert,ravi,rahul r doing newpaper business.....
ans:ramesh,either ravi/rahul



system concepts:

1.int a[5,6]
how much memory will be allocated
2.char p[6];
char *d[10];
ans:d=(char*)p
3.using LFU algorithm,how many page faults will occur of the pages r
1,2,1,3,4.
ans:1,4
4.in which layer the bridges r used.
a)data link layer
b)session layer
c)physical layer
d)network layer
5.#define d 10+10
main()
{ printf("%d",d*d);
}
6.in a complete binary tree if the number of levels r 4 then the number of
nodes will be,
7.if we delete a node from a balanced binary tree,how can we retain the
properties of balanced binary tree.
ans: by rotation at the nodes.
8.in a k-way search tree with N keys, the number of node/no. of leaves=
9.s->A0B
A->BB1
B->AA0
how many string can be constructed with length 5.
10.in which of the following regular expression the srting contains
atleast 2 concetive 1's.
ans:(0+10)*(0+1)*
11.int i,j=1;
for(i=0;i<10;i++);
{
j=j+1;
}
printf("%d %d",i,j);

ans:10 11
12.static char *i;
i=malloc(sizeof(char));
find the error;
ans:malloc returns void
13.virtual memory address capacity depends on--
14.main()
{ int i=1;
fork();
fork();
fork();
printf("%d",i);
}
how many times i will be printed
ans:8
15.question on threads
16.int i=0xaa
char *p;
p=(char *)i;
p=p>>4;
printf("%x",p);
ans:0x000000a;
17.union
{ char *p;
int i;
char b;
}
main()
{
--
p=(char*)malloc(8*sizeof(char));
}
what is the size of union?
18.enum{sunday=-1,monday,...saturday}
printf("%d %d",sizeof(wednesday),wednesday);
19.struct x{
struct{
struct{
char ch;
} x;
}};
ans:definition wrong
20.struct *s;
s=(struct *)malloc(10*sizeof(struct)+90*sizeof(int));
free(s);
ans:total memory deallocated
21.one alogrithm is given:
ans:10395
22.func()
{ int x=1;
if(x=1)
x=1000;
else
x=10;

return x;
}
what is the return value?
ans:1000



Interview Questions
-------------------
0. M.E. Project

1. If you are not having a sizeof operator in C, how will you get to know
the size of an int ?

2. Write a macro to set the nth bit ?

3. Can you use a variable in a file using extern which is defined as
both static and global in base file?

4. When we declare union in C, how is the size of union allocated in the
memory?

5. What is the boundary problem in allocation of size of structures?

6. Data Structures:-

a. Write a program to reverse a linked-list.
Uma, before interview, practise it on a paper as many here couldn't
write the code at the time of interview.

b. Some trees question...what is balanced binary tree?..etc..

To Some students, one software panel asked about the courses they had done
here in IISc.

To some people, they have asked some OS and networking questions like

OS Questions:
1. What is the difference between user and kernel space?
2. What is real time OS and how it's different from other OS?
3. signal and interrupt handling.

Networking Questions:-
1. Sliding window protocol.
2. TCP And IP differences.
=

SECTION 1 -- BASIC DIGITAL SECTION 1. In order to find out stack fault of a three input nand gate how many necessary input vectors are needed ?2. What is parity generation ?
3. A nand gate becomes ___ gate when used with negative logic ?4. What is the advantage of cmos over nmos ?5. What is the advantage of syncronous circuits over asynchronous circuits ?6. What is the function of ALE in 8085 ?7. A voice signal sample is stored as one byte. Frequency range is 16 Hz to 20 Hz. What is the memorysize required to store 4 minutes voice signal? 8. What will the controller do before interrupting CPU?9. In a normalised floating point representation, mantissa is represented using 24 bits and exponent with 8 bits using signed representation. What is range ?10. The stack uses which policy out of the following-- LIFO, FIFO, Round Robin or none of these ?11. Where will be the actual address of the subroutine is placed for vectored interrupts?12. Give the equivalent Gray code reprasentation of AC2H.13.What is the memory space required if two unsigned 8 bit numbers are multiplied ?
14. The vector address of RST 7.5 in 8085 processor is _______.Ans. 003C (multiply 7.5 by 8 and convert to hex)
15. Subtract the following hexadecimal numbers--- 8416 - 2A16
16. Add the following BCD numbers--- 1001 and 010017. How much time does a serial link of 64 Kbps take to transmit a picture with 540 pixels.18. Give the output when the input of a D-flip flop is tied to the output through the XOR gate.
19. Simplify the expression AB + A( B + C ) + B ( B + C )
20. Determine the logic gate to implement the foolowing terms--ABC, A+B+C
21. Implement the NOR gate as an inverter.
22. What is the effect of temperature on the Icb in a transistor
23. What is the bit storage capacity of a ROM with a 512*4 organisation?
24. What is the reason of the refresh operation in dynamic RAM's ?25. Suppose that the D input of a flip flop changes from low to high in the middle of a clock pulse.Describe what happens if the flip flop is a positive edge triggered type?
26. How many flip flops are required to produce a divide by 32 device ? 27. An active HIGH input S-R latch has a 1 on the S input and a 0 on the R input. What state is the latch in?28. Implement the logic equation Y = C^BA^ + CB^A + CBA with a multiplexer. (where C^ stands for C complement)29.Equivalent Gray code reprasentation of AC2H.
30. What does a PLL consist of ?
SECTION 2 - SOFTWARE SECTION
1. The starting location of an array is 1000. If the array[1..5/...4] is stored in row major order, what is the location of element [4,3]. Each word occupies 4 bytes.2. In a tertiary tree, which has three childs for every node, if the number of internal nodes are N, then the total number of leaf nodes are 3. Explain the term "locality of reference" ?4. What is the language used for Artificial Intelligence
Ans: lisp
5. What is the character set used in JAVA 2.0 ?
Ans: Unicode
6. char a =0xAA ; int b ; b = (int) a ; b = b >> 4 ; printf("%x",b);What is the output of the above program segment ? 7. struct s1 { struct { struct { int x; } s2 } s3 }y; How does one access x in the above given structure definition ? 8. Why there is no recursion in Fortran ?Ans. There is no dynamic allocation. 9. What is the worst case complexity of Quick sort?Ans. O(n2)10. What will be sequence of operating system activities when an interrupt occurs ?11. In a sequential search, what is the average number of comparisons it takes to search through n elements ?Ans: (n+1)/2.12. What is the size of the array declared as double * X[5] ?Ans. 5 * sizeof ( double * )13. A binary search tree with node information as 1,2,3,4,5,6,7,8 is given. Write the result obtained on preorder traversal of the binary search tree ?Ans : 5312476814. If size of the physical memory is 232-1, then what is the size of the virtualmemory ?15. S -> A0B A-> BB0 B-> AA1 How many strings of length 5 are possible with the above productions?16. (3*4096+15*256+3*16+3). How many 1's are there in the binary representation of the result ?Ans. 1017. In memory mapped I/O how is I/O is accessed ?18. What is the use of ALE in 8085 ?Ans To latch the lower byte of the address.19. If the logical memory of 8 X 1024 is mapped into 32 frames, then the number of bits for the logical address are____ ?Ans. 1320. Context free grammar is useful for which purpose ?21. In ternary number representation, numbers are represented as 0,1,-1.(Here -1 is represented as 1 bar.) How is 352/9 represented in ternary number representation?22. There are processes which take 4,1,8,1 machine cycles respectively. If these are executed in round robin fashion with a time quantum of 1, what is the time it take for process 4 to complete ?Ans. 9 23. The minimum frequency of operation is specified for every processor because...... a)for interfacing slow peripheralsb)dynamic memory refreshing.c)to make compatible with other processor.24. For linked list implementation , which search is not applicable ?Ans: Binary search.25. Each character is represented by 7 bits, 1 bit is used to represent error bit and another bit for parity. If total number of bits transmitted is 1200 bits, then what is the number of symbols that can be transmitted ?Ans: 13326. Explain set associativity of cache ?27. Write the postfix form of the following expression . A+[[(B+C)+(D+E)*F]/G] 28. What is the function of the linker?29. void f(int y) { struct s *ptr; ptr = malloc (sizeof (struct)+99*sizeof(int)); } struct s{ int i; float p; };when free (ptr) is executed, then what will happen?30. To concatenate two linked lists strings, the order is O(1) is obtained for what kind of list?

 
Google