tIER 1 pAPER
tIER 1 pAPER
tIER 1 pAPER
==================
APTITUDE TEST
D.E.shaw 1997
===============
if(n<1)return n;
else return(n+sum(n-1))
a 10 b 16 c 14 d 15
14. when a function is recursively called all ,
automatic variables are
a. stored in stack b . c. d
15) #define MAN(x,y) (x)>(y)?(x):(y)
{ int i=10;j=5;k=0;
k= MAN(i++,++j)
printf(%d %d %d %d,i,j,k)}
16) a=10;b=5; c=3;d=3;
if(a<b)&&(c=d++)
printf(%d %d %d %d a,b,c,d)
else printf("%d %d %d %d a,b,c,d);
: .............................................
19. what is o/p
#include<stdarg.h>
show(int t,va_list ptr1)
{
int a,x,i;
a=va_arg(ptr1,int)
printf("\n %d",a)
}
display(char)
{int x;
listptr;
va_star(otr,s);
n=va_arg(ptr,int);
show(x,ptr);
}
main()
{
display("hello",4,12,13,14,44);
}
a) 13 b) 12 c) 44 d) 14
.............................................
17. if the following program (my prog)
main(int size of ,char *arg[])
{ while(size of arg) printf("%s",arg[--size of arg)
}
is run from the command line as myprog jan feb mar apr
what would be the o/p
a)myprog jan,feb,mar,apr
b)rev
c)jan,feb,mar,apr
d)error
ans:- if there is no error then answer is mar
.............................................
18.what is o/p
main()
{int i=3;
while(i--)
{
int i=100
i--;
printf("%d..",i);
}
}
a) infinite loop
b) error
c) 99..99..99..99
d) 3..22..1..
.............................................ans:-c
20)what is the o/p of the program
main()
{
int rows=3,colums=4;
int a[rows][colums]={1,2,3,4,5,6,7,8,9,10,11,12};
i=j=k=99;
for(i=0;i<rows;i++)
for(j=0;j<colums;j++)
if(a[k][j]<k) k=a[i][j];
printf("%d\n",k);
........................................................
=09=09Ans :7sqrt(2)
=09=09fig no7+ the difd2NO
O 4@ tnlA
:\C
#B `
G#E(jhl
q@\ qBRf" V" 2'2#Rv B 2F R7V 3 v B 2F R6W7B' v 6 #
who said each statement.
10 marks.
ok!!!!!
infosys paper 1997.
paper code q/c.
-----------------------------------------------------------------------1)
be * be = acb
a,b,c,e are non zero numbers find b,e.
ans) b=1 e=9
a,b,c,d,e are having numerical values. there are some conditions
2)
given
a) a=c <===> b!=e
b) difference between a and c as same as difference between c and b
as same as difference between a and d
c) c<a and c>d
then find a,b,c,d,e
3) there are six cards in which it has two king cards. all cards are
turned down and two cards are opened
a) what is the possobility to get at least one king.
b) what is the possibility to get two kings.
4) a person went to a shop and asked for change for 1.15paise.
but he said that he could not only give change for one rupee.
but also for 50p,25p,10p and 5p. what were the coins he had
ans) 1-->50 4--->10p
1--->25p
5) there are 3 nurses and they work altogether only once in a week.
no nurse is called to work for 3 consecutive days.
nurse 1 is off on tueseday,thursday and sunday.
nurse 2 is off on saturday.
nurse 3 is off on thursday,sunday.
no two nurses are off more than once a week.
find the day on which all the 3 nurses were on work.
6) there are 5 persons a,b,c,d,e and each is wearing a block or white
cap on his head. a person can see the caps of the remaining 4 but can't
see his own cap. a person wearing white says true and who wears block
says false.
i) a says i see 3 whites and 1 block
2. There is six letter word VGANDA . How many ways you can arrange the
letters in the word in such a way that both the A's are together.
Ans : 120
(5x4!)
3. If two cards are taken one after another without replacing from
a pack of 52 cards what is the probability for the two cards be
queen.
Ans : (4/52)*(3/51)
(1/17)*(1/13)
4. 51 x 53 x ... x 59 ; symbols ! - factorial
^ - power of 2
(a) 99!/49! (b) (c) (d) (99! x 25!)/(2^24 x 49! x 51!)
5. The ratio fo Boys to Girls is 6:4. 60% of the boys and 40% of girls
take lunch in the canteen. What % of class takes lunch in canteen.
Ans : 52%
(60/100)*60 + (40/100)*40
Data Sufficiency : a)
b)
c)
d)
only
only
both
both
6. X is an integer. Is X dvisible by 5?
A) 2X is divisible by 5.
B) 10X is divisible by 5.
Ans : A)
7. (A) Anna is the tallest girl
(B) Anna is taller than all boys.
(Q) . Is Anna the tallest in the class
Ans : c
8. maths question
9, 10 Analytical
Zulus always speak truth and Hutus always speak lies. There are 7 3 three persons A,B&C
. A met B and says " I am a Zulu or I am Hutu".
We don't know what exactly he said. then B meets C and says to c
that " A is a Zulu ". Then C replied " No, A is a Hutu ".
9. How many Zulus are there ? Ans 2( check)
10) Who must be a Zulu ? Ans B (check)
11,12.13,14.
----------A father F has 5 sons, p,q,r,s,t. Not necessarly in this order.
Two are of same age. The eldest and youngest cannot be twins. T is elder
to r and younger to q and s has three older brothers
q) who are the twins? s,t
q) who is the oldest and youngest?
q)
q)
q, (s&t)
15,16,17,18
---------There are 7 people who take
disqualified, P and S obtain
less than P, N scores higher
Ans : N P S T Q R M (may be,
C & UNIX
-------19. What does chmod 654 stand for.
Ans : _rw_r_xr__
20. Which of following is used for back-up files?
(a) compress (b) Tar (c) make (d) all the above Ans : b
21 what does find command do ? Ans : search a file
22. what does " calloc" do?
Ans : A memory allocation and initialising to zero.
23 what does exit() do?
Ans : come out of executing programme.
24. what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
Ans : 1
25. i=2
printf("%old %old %old %old ",i, i++,i--,i++);
Ans : check the answer.
26. Using pointer, changing A to B and B to A is Swapping the function
using two address and one temperory variable. a,b are address, t is
temporary variable. How function look like?
Ans : swap(int *, int *, int )
27. In 'o' how are the arguments passed?
ans : by value.
28. Find the prototype of sine function.
Ans : extern double sin(double) 7 3 29. Scope of a global variable which is declared
as static?
ans : File
30. ASCII problem
i=..
ans : 6
31 .
32. what is the o/p
}
Ans : 3267
---------------------------------------------7) If A>B then
F=F(G);
else B>C then
F=G(G);
in this , for 75% times A>B and 25% times B>C then,is 10000 instructions
are there ,then the ratio of F to G
[a] 7500:2500 [b] 7500:625 [c] 7500:625 if a=b=c else
7500:2500
-------------------------------------------------8) In a compiler there is 36 bit for a word and to store a character 8bits are
needed. IN this to store
a character two words are appended .Then for storing a K characters string,
How many words are needed.
[a] 2k/9 [b] (2k+8)/9 [c] (k+8)/9 [d] 2*(k+8)/9 [e] none
Ans: a
--------------------------------------------------------9) C program code
int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
[a] 8 [b] 9 [c] 6 [d] 12 [e] 15
Ans: b
--------------------------------------------------------------PART-B
------1) Virtual memory size depends on
[a] address lines
[b] data bus
[c] disc space
[d] a & c
[e] none
Ans : a
----------------------------------------------2) Critical section is 7 3
[a]
[b] statements which are accessing shared resourses
Ans : b
------------------------------------------------3) load a
mul a
store t1
load b
mul b
store t2
mul t2
add t1
then the content in accumulator is
Ans : a**2+b**4
--------------------------------------------------4) question (3) in old paper
>
>
gain
7. 2-3 qns on scope of static variables in C. Qn to view o/p odf a C stati
>
>
>
>
var
8. Qn to print a value of a pointer
9.resistance increases with temperature in a) Metal b) semiconductor
10. A qn to find the physical address from a given virtual address, virtua
>
to physical address table was provided
> 11. 16 bit mantissa and 8 bit exponent can present what maximum value?
> 12. 4 bit window size in sliding window protocol, how many acknowledements
can be held? 7 3 > > 13. Security functionality is provided by which layer of OSI
> > 14. Frequency spectrums for AM, FM and PM (figure given, u'veto tell which
> >
Kind of modulation it belongs to)
> > 15. Among AM and FM which is better and why?
> > 16.LASt stage of TTL NAND gate is called: Ans: Totem Pole Amplifier
> > 17. SR to JK flip flop conversion. Ans: S=JQ', R=KQ
> > 18. LSB of a shift register is connected to its MSB, what is formed: Ans:
> >
RING Counter
> > 19. 2-3 Qns based on Demorgan's laws (identiies: (A+b)' = A'b', etc)
> > 20. 2 qns on Logic gates (O/p of logic gates)
> > 21. Diff in IRET and RET statements of 8086
> > 22. How many address bytes are required to address an array of memory chip
s
> >
(4 * 6), each chip having 4 memory bits and 8k registers.
> >
23. Diff. in memory mapped and I/P O/P mapped Input/Output (Refer a book
on Microprocessor)
> >
24. Qn on pipeline architecture
> >
25 QN on LAPB protocol
1]. The following variable is available in file1.c
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
---------------------------------------------------------------------int x;
main()
{
int x=0;
{
int x=10;
x++;
change_value(x);
x++;
Modify_value();
printf("First output: %d\n",x);
}
x++;
change_value(x);
printf("Second Output : %d\n",x);
Modify_value();
printf("Third Output : %d\n",x);
Modify_value()
{
return (x+=10);
}
change_value()
{
return(x+=1);
}
---------------------------------------------------------------------------main()
{
x = y++ + x++;
----------------------------------------------------------------------main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
---------------------------------------------------------------------main()
{
}
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
--------------------------------------------------------------------#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
-----------------------------------------------------------------
#include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
1.const char *
char * const
What is the differnce between the above two?.
2.In Unix inter process communication take place using?.
ermission
---
ermission
Verifone
1.const char *
char * const
What is the differnce between the above two?.
2.In Unix inter process communication take place using?.
3.What are the files in /etc directory?.
4.About i-node numbers
5.Max relaxable permisssion value with out giving write p
to others?.
6.About ln(linking)
7.A question on until
until (who |grep mary)
do
sleep(60)
done
8.Linking across directories?.
9.process id for kernell process
10.very first process created by kernell
11.function to repaint a window immediately?.
12.Function entry for DLL in win3.1
13.win 3.1 is a
14.win 3.1 supports which type of multi tasking?.
15.Message displayed when a window is destroyed
16.About fork()?
17.About send message and post message
18.Message to limit the size of window
19.System call executable binary file intoa process
20.About GDI object?.
o/p is
a)a=2;b=3;
b)a=3; b=2;
c)a=5; b=10; 7 3 d)none
19) for the above program answer the following q's
main()
base da;
derv1 d1;
derv2 d2;
printf("%d %d %d",da.function1(),d1.function1(),d2.function1());
o/p is
a)100,200,200;
b)200,100,200;
c)200,200,100;
Now MailCity offers forwarding so you can check your MailCity messages and other
e-mail all in one place. Go to http://www.mailcity.com
TECHNICAL TEST (MASCOT)
--------- ---Total 6 sections.
1)Computer Fundamentals
2)Algorithms
3)Hardware
4)Software
5)General Awareness
6)Languages
* All together 60 questions with each section containing 10 questions.
* All are multiple choice questions
1.
2.
3.
4.
One Nibble = ?
Hexadecimal and Octal representation of 1024 ?
What a compiler does ?
DOS ? (whether Graphical interface or Character interface and two more
choices are given)
5. CPU - abbrevation
6. Fortran used as ( Ans : Scientific Language)
7. ASCII character set ? (total number)
8. Windows NT- What NT stands for?
9. Which is not an input device ? (keyboard, Disk, Mouse,Lightpen)
10. Which is not a pointing device ?( mouse,Joy stick,lightpen none)
11. Microsoft Chief ?
12. 4GL ? (Fortran,SQL,ADA, ....)
13. Father of Computers?
14. Which of them is Object Oriented Language.?
15. Power PC is the product of ? (Microsoft,IBM,Apple,Motorola,Intel)
(A combination of any correct 3 companies)
16. Latest processor used ? (Pentium, Power PC, Pentium pro,none)
17. MS Word is ?
18. First Super Computer built in India. (Ans : param)
19. Which of the following companies donot manufacture chips?
(Microsoft, Motorola, Intel, HP)
20. LAN - abbrevation
21. WAN - abbrevation
22. Modem is ? (related to electrical hardware.- Like Modulator &demodulator) 7 3 23. FD
D - abbrevation ( floppy disk drive)
24.
25.
26.
27.
28.
29.
30.
31.
BIT - abbrevation
Information is ? (message, data,processed data,none)
Which is not networking ?(internet,ethernet,arcnet,none)
One Gigabyte =?( 2 power30 , 2 power 20 ,2 power 10 none)
Which of the following is not RDBMS ? (sybase, SQL,Acess,none)_
Oracle is ? (Ans : Relationasl Data Base Management System)
In Oracle, Table means ( Ans : Collection of records)
DMA - abbrevation (Direct Memory Access,Discrete memory Access,
Disk memoryaccess)
32. What is meant byStatic Variable ?
33. What is meant by QUEUE? {refer any data structures text}
34. What is meant by STACK? {refer any data structures text}
35. The processor used in first IBM PC? (8086,8088,zig4,intel)
36. Difference between 80286 and 80287
37. In bubble sort , no. of comparisons required ?(ans : formula : N*(N-1)/2)
38. No. of comparisons of an item in 100 items by binary comparison?
( 10,25,50 100)
39. CRT - (Cathode Ray Tube)
40. No. of entryvalues are there in ideally in a subroutine.
41. Binary tree?
42. Flow in one direction ? (Single linked list,Double linked
list,.......,....)
43. Electron screen size ? (here, 2 lines of algorithm is given.
Name the algoirithm)
44. Which is not storage device.? (printer,CD ROM,Disk,none)
45. A question regarding memory ? ( least used memory,recently unused
memory,..)
46. ISO - (International Standard Organisation)
47. HTML - (Hyper Text Makeup Language)
48. Flow chart for factorial N? (ans :choice a)
49. What is meant by Recursion ?
50. Struct(s)
{
int a;
long b;
}
Union (u)
{int a;
long b;
}
Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4
51.Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
( ans : 1,2,3,none)
case 3
--i;
Output of i after executing the program
7 3 52. char S;
char S[6]= " HELLO";
printf("%s ",S[6]);
output of the above program ? (0, ASCII 0, I,unpredictable)
53. Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ? (127,128,256,infinitely)
54. int i;
i=0;
repeat
i=i+1;
<====== PASCAL PROGRAM
print i;
until(i<10)
end
No. of times the loop is executed?
55. Convert (int A,var ,int B;int c)
{
A=10;
B=4-;
C=120;
}
Convert (inta,b,c)
{
<====== PASCAL PROGRAM
a=1;
b=4;
c=12;
}
convert (A,B,c) ? (10,40,120
10,40,12,..........,............)
56. Procedure A
Begin
-------end
Procedure B
Begin
----------end
57. int i;
i=2;
i++;
if(i=4)
{
printf(i=4); 7 3
}
else
{
printf(i=3);
}
output of the program ? (4,3,unpredictable,none)
58. what is FAT?.
File allocation table
QUANTITATIVE APPTITUDE TEST :
---------------------------
= log(x)/log(y)
Antonyms :
11. AUSPICISIOUS
12. REHALISHLY
13. & 14. - Sentence correction
15, 16 , 17 Spelling Mistakes
18, 19 - Two Questions
6 letters are assigned certain numbers.
In each qusetion , 4 combination of digits are given . Of which , which gives
a meaningful word.
20 & 21. - 4 sentences will be given in each question. Arrange them in
logical order .
22. 5 straight lines are cut in a circle. A question regarding this.
Reasoning :
a) If statement A alone is required
b) If statement B alone is required
c) If bothe statements A & B are required
d) Neither
7 3 23. Does Mr. Mathew give tution ?
A) MAthew is a teacher
B) In school, the teacher is not expected to give tutions.
24. There is no power cut in advanced country
If T is a city, Is there power cut in that city?
A) Z is a advanced country
B) T ia a capital city of country Z
25. Tanzanians are in East Africa. Tanzanizns are good in either Education ,
Dance or Music
A) Tanzanians are good at Education
B) East Africa are good at dance & Music.
Remaining questions 26 - 29 are of the same type.
30. On onw day, 14 children are admitted in a school by their mothers.
2 are sisters, 3 are brothers,2 are brother and sister and 2 are twins.
The rest are singles. How many mothers came? (5 , 7, 9, 14)
-----------------------
40. If the ticket costs Rs.1.50, how much is the profit in Backward journey.
Remaining 4 questions may be fron English.
---------------------------------------------------------
>
ARTHAMATIC SECTION
>(1) if a boat is moving in upstream with v1 km/hr and in the down
stream
> it is moving with v2 km/hr then what is the speed of the stream.
> ans: 13 check the values of v1 and v2 are given
> to find ans (v+s = v1, v-s = v2 find the boat velocity)
>
> (2)
0.75 * 0.75 * 0.75 - 0.001
>
------------------------------->
0.75*0.75-0.075+0.01
>
> (3) A can work done in 8 days
>
B can work three timesfaster than the A;
>
C can work five times faster asthe A;
>
ans : 8/9 it is correct place blindly.
>
> (4)
one answer is 200/3 % it is perfectly correct wecannot recollec
> the prob. so place it blindly.
> (5) A car is journied a certain distance in 7 hrs in forward journey
> in the return journey increased speed 12km/hr takes the times 5 hrs.
> what is the distance
ans:210 it is perfect place blindly.
> (6) instead of multiplying by 7 to a number dividing by 7 what is 7 3 > the percent
age of error
> ans we dont know but he has gived 14 18 25 andsome answers less than
>
>(7) x + 4 y
> ---------relation between x and y is x/2y = 3/2 ie x = 3y find
the
>
x - 2y
ratio ans: 7 place it blindly.
>(8) a man buy a liquid by 12 lts and the mixture is of 20% liquid in
water
>then he makes it in 30% mixture then what is the % of liquid with
water.
>(9) if a man byes 1lt of milk for 12rs and mixes with 20% of water and
>sels it for rs15 thgen what is percentage of gain
>(10) A pipe can fill a tank in 30 min B can fill in 28 min then if 3/4
th
>of tank can be filled by B pipe and after wards both are opened then
>how much time is required by both the pipes to fill the tank
completely.
>note: the values of A and B may slitely vary be ware.
>(11) on an item a company gave 25% discount then they get 25% profit
>if it gives 10% discount then what is the profit.
>ans: 30% it is correct place blindly.
>(12)
>
>i will send the remaining problems if i get remembered o.k this section
>contain 29 questions.
>
>in fourth section.
>1. All chairs laugh.
System software:
- Open to all
Written test of 90 minutes duration
* Computer awareness section
-Questions from Computer Science (network, windows, OLE,
Internet, OSI)
* C Prgramming fundamentals (c/c++/java) (Comparision of c and
java)
* Analysis of program code (c/c++/java) (only one question from
java)
* General aptitude (quantitative aptitude, analytical ability)
********************************************************************* 7 3 Questions from
systems:
Section 1:
1. Piggy backing refers to....
2. OSI emulation layer ?
3. Parity error checking is used for.........?
4. In a 20 Mhz computer, the time taken for a 3clock cycle
instruction is:........
ans: 120 ns (check)
5. convert 0xFFE into radix 7
6. Internet IP address is unique for..
ans: domain of the node (check)
Section 2:
1. Comparision of java and C
The feature present in C but not in java
(a) recursion (b)Passing variable arguments (c).... (d)...
Programs
1.
main()
{
int y = 10;
if(y++ == 10 && y++ != 10 && y++ > 11)
printf("%d",y);
else
printf("2y = %d",2*y);
}
2.
void funca(p)
int *p;
{
*p += 20;
}
void funcb(m)
int *m;
{
int n;
m = &n;
*m += 10;
}
main()
{
int var = 25;
int *varp;
varp = &var;
funca(varp);
*varp += 10;
funcb(varp);
printf("%d...%d",var,*varp);
}
3.
main()
{
static int *p = 100; 7 3 char *q = p;
p++;
q++;
printf("%d...%d",p,q);
}
/* don't run it. Its a Java program */
/* find the error if any */
class A
{
static final int var = 10;
private :
int obj1;
public :
char obj2[]="some string";
func()
{
var = 15;
system.out.obj1;
system.out.obj2;
}
}
choices:
1) There is no semicolon at the end of the class
2) The variable var cann't be changed after declaration
3) Class A has not been declared as of public type
4) string can not be printed directly
ans: ?
5.
/* declare static int i; globally
1) the variable is available for all the functions after its
declaration
2) the variable is not available for other than the current program
3) .....
4) .....
*/
static int i;
main()
{
void fun1();
printf("%d\n",i);
fun1();
}
void fun1()
{
printf("%d\n",i);
}
Aptitude:
GRE book, page no. 300 range, anlaytical ability question
A causes B or C but not both....
7 3
GSSL
ITest : General Intelligence
II test : Technical test
III test : C-language
I Test
Some of the questions what I have Iam sending.
1. 5,5,,13,13,21,21
2.0,7,26,63,124,
3. 1,3,5,7, Ans: 9
Ans: 29
Ans: 215 i.e.n**3-1 rule following
'1' is not a prime number
Monday
Aug25, 96
Mr A,
Ans:-1/3
24.When an object like cube or sphere is seen along x,y,z,axes we get the
same.Apart from these suggest another which has similar characteristics?
Ans:you have to draw the figure
triangular prism.
25. When an object is seen from front side we can see two concentric
squares and topview also without any hidden lines. Draw the side view.
Ans: I know ans but I canot draw.
26. Convert 251 decimal to base 8(i.e. octal)?
Ans: similar question
a= a+b;
b= a-b;
a= a-b:
YI
\
3H`3
w 3h PPPPSj
5h S
t/ 54
58
5t
P
PSQR ujVjR a ZY[XPSQRjjjVjQP ` ZY[XPSQR jjQSR ^ ZY[X " }Q \tmf@QRQ =
fJtfJY
ZYQ 54
432 z{J
fJtfJY
0ufY
fE
M,
uu
\
2
tlW
Q Pj
ju|$
PSR
u^_X,
Y@SW
\
fE
=d
X `[Pt f_[u
Sf+\$
]!
\[s%l V t$ ~^t%h
lW=H
=p
u3?%t
3
9Es%T +
|
LoadHi x a new subject ?
How do U prepare for exams ?
Suppose in a project meeting, somebody fires U, how will U react ?
Are U patient enought to wait in long queues ?
Still some more which I don't rememebr.....
VWS UB
;,
s
[_^%P B=t=tB B= =
B
O W
;t"w ;t;s+ V
G
;F
v F
G
F
t p 3j
FN NM N
M M ]K
;t M ; M ]t
]+)] MKB J
+lY[_^`3 `3 =
r
L
= V ^ <fu |t <fu |u TY
l+ L
T+DLVD
^ f<'= <8C|uu |Ht$? <8Cuu |HufD f < 5 G |E 9 T d
& < ~f |
pQ L |.f |2 AYux T t
t
R+ LD T6 x
a+D1 L2 < A | |B
pQ k L fuT AYuG T t
t
R+ LD x
a+ $ < Au# | Bu |'
06, 0t/H
=QsPjjjP r 5@XuYP$5DqXYr@ j&`
j 43 =r=
8w t
H
lW |$ ing the truth.
>>b) 1. no of persong telling the truth is greater than no of
>>persons telling lies
>>
2. person 5 is telling the truth.
>>7. there are N coins on a table. there are two players A&B.
>>you can take 1 or 2 coins at a time. the person who takes the
>>last coin is the loser. a always starts first
>>--1. if N=7
>>
a) A can always win by taking two coins in his first chanse
>>
b) B can win only if A takes two coins in his first chance.
>>
c) B can always win by proper play
>>
d) none of the above
>>--2. A can win by proper play if N is equal to
>> a) 13 b) 37 c) 22 d) 34 e) 48
ans. e.
>>--3. B can win by proper play if N is equal to
>>a) 25 b)26
c) 32 d) 41 e) none
>>--4. if N<4, can A win by proper play always
>>
>>8. Two turns have vertain pecular charcteristics. One of them
>>always lies on Monday, Wednesday, Friday. \the other always lies
>>on Tuesdays, thursdays and saturdays. On the other days they tel
>>the truth. You are given a conversation.
>>
person A-- today is sunday my name is anil
>>
person B-- today is tuesday, my name is bill
>>
>>
>>answers for selected questions
>>2. equal
1. 150
>>3. 8
2. 60 kmph
>>4. 37(M),41(S)
3. Mukherjee
>>5. 45 min.
8. today is tuesday
>>6. 0.8
>>7. 18
>>11. T max value = 4
>>
>>
3. Anil kumar Mukherjee
>>
Kumar Misra dev
>>
Mohan iyer dev
>>
kumar patil mohan
>>
mohan sharma kumar
>>
>>
>>What is a finite Automata.
8
>>what is a turing machine.
>>how many processors are there in a pentium microprocessor. in Sparc.
>>difference between risc and cisc.
>>is risc always fast.
>>what is a real time system.
>>name some real time OS
>>what are the characteristics of Real time OS.
>>is DOS a real time OS.
>>what is a kernel,shell.
>>
>>what is binary search, traversal, hashing etc.
>>given a scenario what is the suitable data structure.
>>write a code to count the no. of 1's in a binary rep. of a number.
>>memory taken for char *, int * etc.
>>char *cp; int *ip; cp++,ip++ - what is the result.
>>compare the no. of bytes in unix and Dos for long char short int.
5P
_.
>>4. Given 10000 nos. and 48MB Memory. What is the complexity of the
>>efficient sorting algo.? (the algo. is not mentioned)
>>
O(N)
>>
>>5. Given a C code and ask what it does?
>>
code was something similar to Bubble sort and that
>>particular code does the sorting in Desending order and the complexity
>>is O(n^2)(which is the next question).
>>
>>
>>6.
>>
A code like this is given.
>>
a. for(i=0;i<num;i++)
>>
b. for(i=num;i>0;i--)
>>
Assuming no code optimization and assume that the microprocessor
>>
has flags etc. which one is correct.
>>
>>
b will execute faster.
>>
>>7. If there are too many page faults what is the problem?
>>
>>8.. To ensure one pgm. doesnt corrupt other pgm. in a Multi-pgm
>enviornment
>>
what you should do?
>>
>>9. Which one you will use to implement critical section?
>>
Binary Semaphore
>>
>>10. Which one is not needed for Multi-processing. enviornment?
>>
options are: virtual memory,security,time sharing,none of the
>>
above.
>>
>>11. Which one is not done by Data link layer ?
>>
bit stuffing, LRC,CRC,parity check
>>
>>12. Which one is not related to Data link layer?
>>
>>13. Which one is not suitable for client-server application?
>>
tcp/ip,message passing,rpc,none of the above.
>>
>>14. What is SQL.
>>
Procedural Relational DB Query Language.
>>
>>15. Indexing in databases give you
>>
options were like 1.efficient deleting and inserting
>>
2.efficient deleting.
>>
etc.
>>16. int a=1,b=2,c=3;
>> printf("%d,%d",a,b,c);
>>
What is the output?
>>17. Scope of Static Variable .............
>>
in a file.
>>
>>18. for(i=0; i<=10;i++,printf("%d",i)); +- (+- is there in the
>questions)
>>
>>20. Real Time Os should have
>> a)fast context switch
>> b)Virtual memory etc.
>>
>>
>>
>>21. Messages are transferred in some E71 code, where after 7 bits of
>data,
>>1 bit of stopping data is to be transferred. what should be done.
>>
options were like
>>
a) send directly
>>
b) send after encoding
>>
etc.
>>22. There are three processes A, B, C. A sends data to B. B removes
the
>>header stores it and sends the data to C. C returns it to B. B
receives
>the
>>message, identifies the message and adds the header that was stored
and
>>sends to A.B receives the messages from C such that atmost 'm'
messages
>>B
>>are pending.
>>
Identify the best Data Structure.
>>
>>23. A question in compiler about the heap and stack allocation of
>memory.
>>
>>24. struct
>>
{
>>
char a[3];
>>
int b;
>>
}x;
>>
char *cp;
>>
>>
a) size of x is 7.
>>
B
>>
b)
>>
c)
>>
d) cp takes the size of a pointer.
>>
(d ) is the ans.
>>
>>
ORACLE
9
>>
----->>
>>section 2:
>>
>> 1. what is sparese matrices?. give (at least) two methods for
>implemetation
>>
rather than two dimentional array.
>> 2.what are cheap locks/latches?.
>> 3.what is two phase locking?. Name two locks.
>> 4. What are volatile variables in C?. What is their significance ?.
>> 5. will these two work in same manner
>>
#define intp int *
>>
typedef int * inpp;
>> 6. what are binary trees?. what is its use?.
>> 7.
>>
>> section 3 :
>>
>> A). write header file containing functions used, etc (C),
>>
problem is to maitain a Queue. user has to give size and type of
>Queue.
>>
This problem is like this I don't remember exactly.
>> B). C++
>> 1. What is polymorphism?
>> 2. What is Inheritence?.
>> 3. Mention four Object Oriented Programming Languages?>
>> 4. Mention basic concepts of OOP.
>> 5. What are messages in OOP?.
>> 6. What is garbase collection?.
>> 7.what is object?.
>> 8. what is a class?.
>>
>> section 4:
>> 1. expand the following:
>>
a.SEI b. ISO
>> 2. what are different levels of SEI?.
>> 3. What is significance of ISO?>
>> 4. Expand the following:
>>
a. WWW
>>
b. HTTP
>>
c. HTML
>>
d. TCP/IP
>> 5. what is Black box testing?.
>> 6. explain the following:
>>
1. white box testing
>>
2. white box testing
>>
3. boundary testing
>>
4 stress
>>
5. negative
>>
6. system
>>
7. unit
>>
8.module
>>
9.destructive
>>
>>------------------------------------------------------------------------>>
>>
SIEMENS INFO
10
>>----------------------------------------------------------------------->>
>> THIS PAPER CONSISTS 6 PARTS.
all are multiple choice q's
>> 1)general
>> 2)c/unix
>> 3)c++/motif
>> 4)database
>> 5)x-windows
>> 6)ms-windows
>> we have written q's not acc. to each part.total 50. q's. time is
>>sufficient.
>>if u have basic idea about all of the u can easily answer the paper.
>> paper
>>----->>1)which of following operator can't be overloaded.
>>a)== b)++ c)?! d)<=
>>2)#include<iostream.h>
>> main()
>>{
>>printf("Hello World");
>>}
>>the program prints Hello World without changing main() the o/p should
>>be
>> intialisation
>> Hello World
>> Desruct
>> the changes should be
>>a)iostream operator<<(iostream os, char*s)
>>os<<'intialisation'<<(Hello World)<<Destruct
>>b) c) d)none of the above
>>3)CDPATH shell variable is in(c-shell)
>>a) b) c) d)
>>4) term stickily bit is related to a)kernel
>>b)undeletable file
>>c) d)none
>>5)semaphore variable is different from ordinary variable by
>>6)swap(int x,y)
>>{
>>int temp;
>>temp=x;
>>x=y;
>>y=temp;
>>}
>>main()
>>{
>>int x=2;y=3;
>>swap(x,y);
>>}
>>after calling swap ,what are yhe values x&y?
>>7) static variable will be visible in
>>a)fn. in which they are defined
>>b)module " "
"
"
>>c)all the program
>>d)none
>>8)unix system is
>>a)multi processing
>>b)multi processing ,multiuser
>>c)multi processing ,multiuser,multitasking
>>d)multiuser,multitasking
>>9)x.25 protocol encapsulates the follwing layers
>>a)network
>>b)datalink
>>c)physical
>>d)all of the above
>>e)none of the above
>>10)TCP/IP can work on
>>a)ethernet
>>b)tokenring
>>c)a&b
>>d)none
>>11)a node has the ip address 138.50.10.7 and 138.50.10.9.But it is
>>transmitting data from node1 to node2only. The reason may be
>>a)a node cannot have more than one address
>>b)class A should have second octet different
>>c)classB "
"
"
"
"
>>d)a,b,c
>>12) the OSI layer from bottom to top
>>13)for an application which exceeds 64k the memory model should be
>>a)medium
>>b)huge
>>c)large
>>d)none
>>14)the condition required for dead lock in unix sustem is
>>15)set-user-id is related to (in unix)
>>16) bourne shell has
>>a)history record
>>b)
>>c)
>>d)
>>17)wrong statement about c++
>>a)code removably
>>b)encapsulation of data and code
>>c)program easy maintenance
>>d)program runs faster
>>18)struct base {int a,b;
>>base();
>>int virtual function1();
>>}
>>struct derv1:base{
>>int b,c,d;
>>derv1()
>>int virtual function1();
>>}
>>struct derv2 : base
>> {int a,e;
>>}
>>base::base()
>>{
>>a=2;b=3;
>>}
>>derv1::derv1(){
>>b=5;
>>c=10;d=11;}
>>base::function1()
>>{return(100);
>>}
>>derv1::function1()
>>{
>>return(200);
>>}
>>main()
>>base ba;
>>derv1 d1,d2;
>>printf("%d %d",d1.a,d1.b)
>>o/p is
>>a)a=2;b=3;
>>b)a=3; b=2;
>>c)a=5; b=10;
>>d)none
>>19) for the above program answer the following q's
>>main()
>>base da;
>>derv1 d1;
>>derv2 d2;
>>printf("%d %d %d",da.function1(),d1.function1(),d2.function1());
>>o/p is
>>a)100,200,200;
>>b)200,100,200;
>>c)200,200,100;
>>d)none
>>20)struct {
>>int x;
>>int y;
>>}abc;
>>you can not access x by the following
>>1)abc-->x;
>>2)abc[0]-->x;
>>abc.x;
>>(abc)-->x;
>>a)1,2,3
>>b)2&3
>>c)1&2
>>d)1,3,4
>>21) automatic variables are destroyed after fn. ends because
>>a)stored in swap
>>b)stored in stack and poped out after fn. returns
>>c)stored in data area
>>d)stored in disk
>>22) relation between x-application and x-server (x-win)
>>23)UIL(user interface language) (x-win)
>>24)which is right in ms-windows
>>a)application has single qvalue system has multiple qvalue
>>b) "
multiple "
"
single
"
>>c)"
"
"
multiple "
>>d)none
>>25)widget in x-windows is
>>26)gadget in x_windows is
>>27)variable DESTDIR in make program is accessed as
>>a)$(DESTDIR)
>>b)${DESTDIR}
>>c)DESTDIR
>>d)DESTDIR
>>28)the keystroke mouse entrie are interpreted in ms windows as
>>a)interrupt
>>b)message
>>c)event
>>d)none of the above
>>29)link between program and out side world (ms -win)
>>a)device driver and hardware disk
>>b)application and device driver
>>c)application and hardware device
>>d)none
>>30)ms -windows is
>>a)multitasking
>>b) c) d)
>>31)dynimic scoping is
>>32) after logout the process still runs in the background by giving
>>the command
>>a)nohop
>>b)
>>33)process dies out but still waita
>>a)exit
>>b)wakeup
>>c)zombie
>>d)steep
>>34)in dynamic memory allocation we use
>>a)doubly linked list
>>b)circularly linked
>>c)B trees
>>d)L trees
>>e)none
leave
to
-------
11
>>
>>
>>
>>
>>
>>
-
1.
2.
3.
4.
section 3::
------------->>1.Max value of SIGNED int
>>
a. b. c. d.
>>2.One questin is given, long one, to find the answer U should be
>>femiliar
>> with the operation as follows
>>
>> int *num={10,1,5,22,90};
>> main()
>> {
>> int *p,*q;
>> int i;
>> p=num;
>> q=num+2;
>> i=*p++;
>> print the value of i, and q-p, and some other operations are there.
>> }
>> how the values will change??
>>3. One pointer diff is given like this:
>> int *(*p[10])(char *, char*)
>> asked to find the
meaning.
>>4. char *a[4]={"jaya","mahe","chandra","buchi"};
>> what is the value of
sizeof(a)/sizeof(char *)
>> a. 4 b.bytes for char c-- d.->>( we don't know the answer)
>>
>>5. void fn(int *a, int *b)
>> {
>>
int *t;
>>
t=a;
>>
a=b;
>>
b=t;
>>
}
>>
main()
>>
{
>>
int a=2;
>>
int b=3;
>>
fn(&a,&b);
>>
print the values os a and b;
>>
}
>>
what is the output--- out put won't swap, the same values remain.
>>
>>
a. error at runtime
>>
b. compilation error
>>
c.2 3
>>
d. 3 2
>>6.
>>#define scanf "%s is a string"
>>main()
>>{
>> printf(scanf,scanf);
>> }
>> 13.
>>
some other program is given , I can't remember it
>>
U can get it afterwads,
>>
>>
the answer is 3 3, so U can check this in the exam. itself.
>>
>>
I'll send the remaining two afterwars whenever I get them. OK !
>>
>>
>>
>>
>> 14.
>>
>>
>>
>>
>------------------------------------------------------------------------>>
>>
>>
>>----------------------------------------------------------------->>
MASCOT
>>------------------------------------------------------------------>>
>> this test contains 2 papers
>>paper1=aptitude-30min-44questions
>>contains 3 sections
>>paper2=computer skill-30min-60questions-6sections-10questions each
>>------>>paper1
>>------>>section1
>>-------->> i do not remember the q's.simple quantitative apt. q's.
>>but takes more time ,do fast.
>>section2
>>------->> 1-8 q's on bus route.
a b c d
e
>>
a x 8 15 20 7
>>
b 6 x 9 13 21
>>
c 10 12 x 3
11
>>
d 9 1 18 x
5
>>
e 3 4 17 14 x
>> where x is starting point.a&e are first and last stations.and b,c,d
>>are intermediate stations. fig's are no. of passengers.cost of ticket
>>is 0.7Rs /pass.
>>between any successive stations. based on this few q's were given.
>>the fig's
>>are not correct. q's like total no.of pass.in onward journey.
>>Rest of q's are
>> 2 statements were given. u have to answer they are correct or not
>>.littlebit
>>easy.
>>section3
>>------->>simple q's from r.s agarwal_quantitative apt.
>>1.1/10power18 - 1/10power20 .....value?
>>2.pipes-leaking-cisterns.
>>
paper2
>>------------
12
13
>>---------------------------------------------------------------->>
>>there will be 45 qstns. 15+5+5+5+5+5+5.
>>section: electronics:
>>1.a logic ckt is given and asked to identify the configuration.
>>ans: XOR.
>>2.multi vibrator with nor gates is given
>>ans: astable multi sqr wave opt.
>>3.4 stage ripple counter with delay(f/f) 10msec. How much time it
takes
>>for a state to change. 4*10=40.
>>4.impedence of a p'lel resonant circiut at resonance:R.
>>5.serial to parellel conversion is done by ans:shift register.
>>5.if the address bus id 20bits.then the memory space is 1Mb.
>>6.filtering can be done with:capacitor,iductor,both,none.
>>7.the config that is worst effected by low CMMR
>>ans:Non inverting amplifier.
>>8.two progs are given. one satrts counting frm 0 to MAX and the other
>>stars frm MAX to 0. which one executes fast.may be Max to 0.Think
of.it
>>should be.
>>
>>another 6 qstns are there. simple.
>>
>>Networks:
>>1.
>>the fctn of datalink layer is:bit stuffing.
>>2.which of the following is not fctn of datalink layer: Encription.
>>3.voltage levels of rs232x:+12,-12.
>>4.which of the following is not used for client/server.
>>RPC,TCP/IP,MESSAGEQs None ans:may be none.
>>5.
>>
>>database:
>>1. which of the following is true.
>>ans:the primary key in DataBAse design is very important.
>>2. SQL is a Non procedural query langauge.
>>3.
>>4
>>5.
>>compiler/algo/ds:
>>1.Data structure used to impliment a menu: doubly linked circular
>linked
>>list.
>>2. some regular expression is given:WaW'.may be it is context free
>grammar.
>>3.,4,5.
>>os:
>>1.the feature of real time os is: fast context swithing.
>>2.os impliments protection with the help of hardware(like virtual
>>addressing in 386/286 etc).
>>
>>C:
>>some small c progs are given asked to tell the function/errors etc.
>>one of the qstn(last in the paper) is an invalid statement.
>>finish of all these very fast and think about those others. they are
>>simple only.
>>
>>
DE-Shaw Software,Hyderabad.
--------------------------->>
SECTION-A
>>
>> you should write the programs for the following problems in C.
>>
>> 1. swapping two variables x,y without using a temporary variable.
>> 2. a program has been given asking to find the output
>>
ans. it is algorithm for finding G.C.D
>> 3. write a program for reversing the given string.
>> 4. the integers from 1 to n are stored in an array in a random
>>
fashion. but one integer is missing. write a program to find the
>>
missing integer.
>>
ans. idea. the sum of n natural numbers is = n(n+1)/2.
>>
if we subtract the above sum from the sum of all the
>>
numbers in the array , the result is nothing but the
>>
missing number.
>> 5. some bit type of questions has been given on pointers asking to
>>
to find whether it is correct from syntax point of view. and if
>>
it is correct explain what it will do.(around 15 bits).
>>
>>
SECTION-B
>>
>> ANSWER AS MANY AS POSSIBLE.
>>
>> 6.& 7. two programs on pre-processor directions has been given asking
>>
to find the output.
>> 8. simple question given on pointer
>>
a) kernighan & richie page no. 122
>>
b) schaum series page no. 323
>>
try to understand the pointer problems given here he asked to
>>explain
>>
in the interview if answer it in exam.
>> 9. write a c program to find whether a stack is progressing in
forward
>> or reverse direction.
>> 10. write a c program that reverses the linked list.
>>
>> GUIDELINES:
>>
the interview is very tough he is asking to do the problems in
>> front of him. he is also giving some new problems to solve before
>>him.
>> you should have a very good funda of C language.
>> From iit-kgp only two 2 students have been selected.
>>
-------------------------------------------------------------------------------Wipro paper(System software)
July-1997
----------->>
>>PART --A
>>----------------------------------------------------->>1) abcD+abcd+aBCd+aBCD
>> then the simplified function is
>> ( Capital letters are copliments of corresponding letters
>>
A=compliment of a)
>>
>> [a] a [b] ab [c] abc [d] a(bc)* [e] mone
>> (bc)*=compliment of bc
>>
>> Ans: e
>>
>>------------------------------------>>2) A 12 address lines maps to the memory of
>>
>> [a] 1k bytes [b] 0.5k bytes [c] 2k bytes [d] none
>>
>> Ans: b
>>
>>--------------------------------------->>3) In a processor these are 120 instructions . Bits needed to
impliment
>> this instructions
>> [a] 6 [b] 7 [c] 10 [d] none
>>
>> Ans: b
>>
>>---------------------------------------->>4) In 8085 microprocessor READY signal does.which of the following
>> is incorrect statements
>> [a]It is input to the microprocessor
>> [b] It sequences the instructions
>>
>> Ans : b
>>--------------------------------------->>
>>5) Return address will be returned by function to
>> [a] Pushes to the stack by call
>> Ans : a
>>----------------------------------------->>6)
>> n=7623
>> {
>>
temp=n/10;
>>
result=temp*10+ result;
>>
n=n/10
>> }
>>
>>Ans : 3267
>>--------------------------------------------->>7) If A>B then
>>
F=F(G);
>> else B>C then
>>
F=G(G);
>> in this , for 75% times A>B and 25% times B>C then,is 10000
>>instructions
>> are there ,then the ratio of F to G
>> [a] 7500:2500 [b] 7500:625 [c] 7500:625 if a=b=c else
>>
7500:2500
>>--------------------------------------------->>4) question (3) in old paper
>>5) q(4) in old paper
>>6) question (7) in old paper
>>7) q(9) in old paper
>>------------------------------------------------------------------------------------------------------------Honeywell
------------------------------------------------------------------------------->>Test contained 100 multiple choice questions divided into
>>
>>
a) Verbal ability (15 ques)
>>
b) Numerical aptitude (15 )
>>
c) Logical and analytical ability (15)
>>
d) Elementary computer science (10)
>>
d) Programming langauages (20)
>>
e) Operatins systems and Data structures (25)
>>
>>Not sure about the number of questions.
>>
>>Verbal ability questions contained 3 parts.
>>a) One passage is given and U have to answer 5 questions
>>b) Some words are given and their synonyms have to be written
>>c)
>>
>>Numerical aptitude and Logical questions were the usual stuff.
>>-------------------------------------------------------------->>I had 4 rounds of interview.
>>First round (around 45 minutes) contained, questions from Real-time
>>---------->>Systems (my research area), operating systems and Software Engineering
>>
>>Explain U'r research work.
>>
>>What is a Real-Time System ?
>>What is the difference between Hard and Soft real-time systems ?
>>What is a mission critical system ?
>>What is the important aspect of a real-time system ?
>>
>>Explain the difference between microkernel and macro kernel.
>>Give an example of microkernel.
>>Why paging is used ?
>>Which is the best page replacement algo and Why ?
>>
>>WHat is software life cycle ?
>>How much time is spent usually in each phases and why ?
>>Which one do U want to work if selected in Honeywell ?
>>( I said I don't like testing )
>>They asked why ?
>>I said it is a boring job. Then they tried to analyse
>>the knowledge in testing.
>>
>>What is testing ?
>>Which are the different types of testing ?
>>Then they explained the way they do testing. They said that they are
>>doing testing in requirement phase and design phase so that if any
>>problem comes in those phases it is not ncecessary to go back and
>change
>>the requirement or design. All the test processing is automated.
>>
>>Why do U want to join Honeywell ?
>>Ans : To get a practical feeling of Real-time systems.
>>
>>Do U know C++ ?
>>How good are U in C and C++ ?
>>Rate U'rslef in both C and C++. ( 1 - 10 marks)
>>
>>Second round (around 45 minutes )
>>----------->>They wanted a bio-data at the time of inteview. I gave the placement
>>office bio-data and in that one there was column 'Major subjects
>>Asked about the percentages and marks during SSC, PDC, B.Tech and MS.
>>When can U join ?
>>Who is U'r guide ?
>>U are from which place ?
>>Where is it in Kerala ?
>>How do U perform in the first two interviews ?
>>WHy have U given Honeywell as dream job ?
>>Some more personal questions
>>
>>Fourth Round (45 minutes)
>>----------->>What do U like in Bangalore ?
>>I said the weather and all my friends are here.
>>Asked about my family members.
>>How do U interact with friends ?
>>How do adjust to a new environemnt ?
>>Suppose U solve a problem and after that U are getting an almost same
>>problem with high complexity ( and lower complexity). How will U
>>approach to the next problem.
>>What is U'r approach towards a new subject ?
>>How do U prepare for exams ?
>>Suppose in a project meeting, somebody fires U, how will U react ?
>>Are U patient enought to wait in long queues ?
>>Still some more which I don't rememebr.....
>>
>>#######################################
>>
>>Some information regarding the question papers of TATA Infotech
>>
------------->>
>>******************************************************************
>>
Tata Infotech test has following sections
>>section 1) One section is of synonyms. These are 50 in all. They are
>very
>>difficult.
>>
>>section 2) One section is on quantitative. i.e simple addtion,
>>subtraction, division etc.
>>
>>section 3) Here you will be given a letter series and you have to find
>the
>>next correct letter
>>e.g a c f j .?.
ans= o
>>
>>there are around 20 to 25 such questons
>>
>>section 4) Flowchart analysis.
>>
There are around 5 big questions in this section with 4 to 5
>>subquestions.
>>
>>
In these questions
>>
1. first you will be explained the problem.
>>
2. Then a flowchart is drawn.
>>
3. Flowchart is not complete and question marks are placed at few
>>
locations. You have to find out what is the correct caption for
>>
question mark from the choices given
>>
>>
e.g
>>
>>
-----------
>>
|heat
|
>>
|water
|
>>
---------->>
|
>>
|
>>
/ \
>>
/ \ yes
>>
\ ? /----------->>
\ /
|
>>
|no
-------->>
|
|
>>
-------->>
>>Then you have to decide what should be the correct entry in diamond
>box.
>>
ie temp > 80
>>
temp < 80 etc
>>
>>
>>In one such question they explain working of some chemical system with
>>differnt condition of pressure, temp etc and what are the actions tobe
>>taken. Then a flowchart is drawn with few squares or diamonds blank.
>>Out of given chices choose correct one.
>>
>>One question is of finding a defective ball. i.e you have three pairs
>of
>>balls. one pair of yellow on pair of blue and one pair of some other
>>color. Then weighing two pairs at a time and finally separating a pair
>>with defective ball.
>>
>>There is one more problem related to balls. But I don't remember it.
>>
>>
>>###################################################################
>>
CV is as following.
>>
>>
>>
>>
>>
CV paper that is given to us on 21st Aug 1997. (IIT M)
>>
_______________________________________________
>>
>>
>>1.There are 45 questions which includes unix , c & apptitude,in 35
mts.
>>
>>2.People sayvthat cut of will be around 38-40 questions.All questions
>>are objective type only.
>>
>>There wont be any technical (about software)questions in software.
>>
>>4.here are some of the questions,
>>
>>1.|x-a| = a-x solve.
>>ans.x<=a
>>
>>2.There is a six letterword UGANDA.How many ways u can arrange the
>letters
>>in the word in such a way that both A's are together.
>>ans.120
>>
>>3.If two cards are taken one after another without replacing from a
>pack of
>>cards.what will be the probability for 2 cards to be drawn?
>>ans.1/13 x1/17
>>
>>4.51x53x.....x59
>>
>>ans.99!x25!/2 power 24x 49!x5!
>>
>>5.The ratio of boys to girls is 6:4.60% of the boys and 40% of girls
>take
>>lunch in the canteen.What % of class takes lunch?
>>ans.52%
>>
>>6.& 7. 2 simple problems from data sufficency(refer 1 or 2 test from
>ims)
>>
>>
>>data sufficiency:
>>
a) only statement a is sufficient
>>
b) only statement b '
>>
c) both are necessary
>>
d) both are not sufficient
>> 7) Anna is the tallest girl
>> a) anna is taller than all boys
>> b) one ther similarly appers you have to study it cartefully and
the
>choose the right answer
>>8) Zulus always speak truth and hulus always speak lies.There are
three
>persons A,B,and C. A met B and says "Iam zulu or iam hutus. We don't
>know what he exactly said then B meets C and says to C that A is a Zulu
>.Then C replies " No ,A is a hutu.
>>q) How many zulus are there? (ans 2)
>> who must be a Zulu ? and B (check)
>>A father F has 5 sons p,q,r,s,t Not necessarily in this order. Two are
>of the same age The eldest and youngest cannot be twins. T is elder to
r
>and younger to q and s has three older brothers
>>q 1) who are twins
>> 2) who is the oldest and youngest
>> 3)who is the one having equal number of youngers and elders
>>8) There are 7 people who take a test among which M is worst. R is
>disqualified , P and S abtain same marks , T scores less than S and Q
>scores less than P , N scores higher than every one.
>>N P S T Q R M ( may be correct it)
>>and some questions will come on this
>>
>>UNIX & C
>>
unix commands:>>
fork,
>>
tar,
>>
chmod,
>>
yacc,
>>
find,
>>
compress,
>>
make
>>
questionukku fork thaan answer ana quetion tariyathu.
>>
similarly hexa decimala larnthu octhal-0 etho matiratirukku
>>
oru quetion athukku answer 23.
>>
>>C:-know about
>>
calloc,
>>
exit(),
>>
pointer and arrays,
>>
pointer to functions(5 th
>>chapter in K & R c book.(pointer fn. arguments thro'pointer)
>>some protype functions like swap,sinfunction in math.h
>>
>>
>> NOTE: Above paper we get before our test. They given all above
>quetions
>>and some of missing we are writing below. If any repeated skip that.
>>
>>-pointer arithmatic
>>-what is the value of "i"?
>>i=Strlen("BLUE") + strlen ("purple")/strlen("red")-strlen("green")
>>ans:-1
>>
>>i=2
>>printf("%ld%ld2%ld",i,i++,i--,i++);
>>answer check care fully may be 2223
>>
>>what is the output of the following statements(string)
>>printf("what is /0 the output"):
>>ans.what is
>>
>>3) some problem appears like this
>> main()
>>{
>> int i,a[10];
>> int *x
>> i = &a[6] - a;
>> printf("%d", i)
>>;
>>}
>>answers are given as 1 , 6 , not compiled , machine dependent
>>answer is 6;
>>
>>4)
>> another program apperas like this
>>main()
>>{
>> int *x , y=2;
>> int * fun(int* );
>> x = (int *) malloc(sizeof(int));
>> fun(x,&y);
>> printf("%d%d",x,y);
>>}
>>
>>int* fun(int *a, int *b)
>>{
>> *a = (*b)++;
>> return;
>>}
>> Program exactly i doesn,t know but the stress is on *a = (*b)++
>> but for me answers are not tallied i think the answer now is 2,3;
>> but in answers it is not given;
>>
>> 5)
>> another programme
>> struct pt
>>{ int x;
>> int y; }
>>
>> struct
>> { pt ptr;
>>
int xtr}lt,*lptr=<
>>he will give some accessing methods of data
>>but the correctone is
>> lptr->ptr.x;
>>
>>7)some problem is there which says some jumps but the correct one is
>>setjump and longjump
>>you study the jumps and clarify it;
>>
>>8)
>>ne problem like this
>> c prototype for math function
>>ans is external double sin(double);
>>
>>8) one problem on variables apperars answer is "file" dam shure
>> that is actually the scope of external static variabl;
>>
>>9) child procees-> fork ( this is given in c programmes)
>>
>>10) for parsing another problem ans is lex and yacc;
>>
>>11) for backups and archieves ans is tar;
>>
>>12) onebit on redirection of std error
>> ans may be $command >outfile 2>&1 check it;
>>
>>13)
>> what is
>> int* p(char (*s)[]);
>>ans there is c you read it from schaum series;
>>14) what for chmod 654
>>
rw-rw-r-- check it
>>
>>15)
>>one small c programme that appears like this
>> main()
>>{ char *s = "hellow"
>> char *m = " how are you";
>> strcat(s,m);
>> pritnf("%s",s) ;
>>}
>> do this and note;
>>
>>
>>
>>16) you read stdin, stdout, stderr files and how to redirect that
>files.
>>
>>
>>
>>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>
VERIFONE
-------->>Verifone test Questions :
>>
>>There are two parts :
>>
>>1. Aptitute test
: 15 Minutes, 20 Questions
>>
>> Some questions are:
>>
(not in order)
>> 1. A question (first one)on addition of fraction of inches
>>
a. was the answer
>>
>> 2. There were 36 chairs. how many ways can they be placed such
>> that all rows have equal no. of chairs and atleast three chairs
>> are there in each row and there are atleast three rows.
>>
5 ways.
>>
>> 3. There are 27 balls, of which 1 is heavier. given a balance
>> how many times you need to weigh to find out the odd
>>ball.
>>
3 Weighs.
>>
>> 4. Product of three consecutive nos. 210. What is the sum
>>
of two least numbers
>>
11.
>>
>>
5. If the area of the sqaure is increased by 69 % how
>>
much the length of the side will increase?
>>
30%
>> 6. if the sum of five consecutive nos. 35? how many
>>prime nos
>>
are there :
>>
2 primes.
>>
>> 7. if the length of the rectangle is reduced by 20%
>>and breath
>>
is increased by 20 % what is the net change ?
>>
4 % decrease
>> 8. A question on sets.
>>
There are some 20 Basketball players & 30 Football players,
>>
and 25 cricket players. 1 of them plays all the
>>three games.
>>
8 of them plays atleast two games. They are 50 altogether.
>>
How many of them plays none of the games.
>> 9. A question on directions.
>>
B is 20 miles east of A. D is 30 miles east of
>>C. E is 10 miles
>>
north of D. C is 20 miles north of B. How far E is from A?
>> Some 3 questions on Reasoning like,
>> 10. If you say that giving stock options to employees increases the
>>
productivity of the company, which of the following sentences
>>
support it.
>>
>> A) Giving stock options increases the morale of the employees
>>
..
>>
..
>>
etc.,
>>
11. Gamblers comes to the Amusement parks. There are some
Amusement
>>
parks in each city. There are some gamblers in each city. So
>>
what can you infer.
>>
A) Amusement park always have gamblers.
>>
..
>>
..
>>
etc.,
>>
>>
>>2. Technical Questions.
>>
>>i. Electrical & Electronics
: 15 Questions
>>
1.A Circuit with nand gates. (ans. may be XOR)
>>
>>
2.CMRR. relates to (options not in order)
>>
voltage follower
>>
non invering amplifier
>>
inverting amplifier
>>
integrator
>>
>>
3. Given a circuit , give the ouput.
>>
(ans. may be triangular wave.)
>>
>>
4. o/p of an assembly code.
>>
mulitply by 11.
>>
>>
5. how to handle asynchronous events.
>>
a) polling
>>
b) interrrupt
>>
etc.
>>
>>
>>
>>ii)Data Structures, Algo., & Complexity theory : 5 questions
>>iii) OS : 5 questions
>>iv) Networks and Hardware: 5 questions
>>v) Databases and Misc.: 5 questions
>>vi) C Pgm. : 5 questions
>> some more 10 questions.
>>
>>
>>1. if W is a sequence of strings without a and W' is its reversal
>>
then WaW' is accepted by:
>>
>>
Context Free Grammmars
>>
>>2. Whether all recusive pgm can be writtten iteratively?
>> yes.
>>3. What data structes you will use if you want to go to
>>first record from
>>the last and vice versa?
>>
doubly linked circular list
>>
>>4. Given 10000 nos. and 48MB Memory. What is the complexity of the
>>efficient sorting algo.? (the algo. is not mentioned)
>>
O(N)
>>
>>5. Given a C code and ask what it does?
>>
code was something similar to Bubble sort and that
>>particular code does the sorting in Desending order and
>>the complexity
>take
>>lunch in the canteen.What % of class takes lunch?
>>ans.52%
>>
>>6.& 7. 2 simple problems from data sufficency(refer 1 or 2 test from
>ims)
>>
>>
>>data sufficiency:
>>
a) only statement a is sufficient
>>
b) only statement b '
>>
c) both are necessary
>>
d) both are not sufficient
>> 7) Anna is the tallest girl
>> a) anna is taller than all boys
>> b) one ther similarly appers you have to study it cartefully and
the
>choose t
>>8) Zulus always speak truth and hulus always speak lies.There are
three
>persons
>>q) How many zulus are there? (ans 2)
>> who must be a Zulu ? and B (check)
>>A father F has 5 sons p,q,r,s,t Not necessarily in this order. Two are
>of the sa
>>q 1) who are twins
>> 2) who is the oldest and youngest
>> 3)who is the one having equal number of youngers and elders
>>8) There are 7 people who take a test among which M is worst. R is
>disqualified
>>N P S T Q R M ( may be correct it)
>>and some questions will come on this
>>
>>
>>
INTERGRAPH
>>>
===============
>>> Paper consists of two sections : 1. analytical (20 marks)
>>>
2. C skills (20 marks)total time 45
>min
>>>
>>> Analytical:
>>> ------------>>>
>>> 1. Given a cube, with different colors on its faces, and then is cut
>>> into 64 pieces, and the questions relate to the colors of different
>>> colored small cubes.
>>>
>>> 2. A few ladies and gents sit around table in some given order and 4
>>> questions are about their seating arrangement with some
restrictions.
>>>
>>> 3. Draw a venn diagram for 3 items : white, flowers, cloth
>>>
>>> Ans : draw 3 circles each intersecting the other , with white kept
>in the
>>> middle.
>>>
>>> 4. A problem related to seating arrangement of 4 people ( 2 ladies
>and
>>> 2 gents) with some restrictions>
>>> 5. problem related to milk with water added to it for three times
>>>
>>> Ans: 20.5 litres
>>>
>>> 6. Problem related to diagrams . Five diagrams were given and asked
>to
>>> find the sixth one.
>>>
>>> C-Skills:
>>> ------->>>
>>> 1. Max number of nodes in a binary tree with height 3 is 20 : Ans:
>False
>>>
>>> 2. 10,20,30,40,50,60 : give the order when put in a queue and in a
>stack
>>>
>>> Ans : Queue : 10,20,30,40,50,60
>>>
stack : 60,50,40,30,20,10
>>>
>>> 3. Debugging is the process of finding
>>>
>>> Ans : logical and runtime errors
>>>
>>> 4. trace the error:
>>>
>>>
void main(){
>>>
int &a;
>>>
/* some other stuff here */
>>>
}
>>> Ans: syntax error
>>>
>>> 5. a problem with a function named 'myValue' will be given and asked
>to
>>> find the value of main() for an argument of 150,
>>>
>>> Ans : 150
>>>
>>> 6. Some problems related to 'for' loops.
>>>
>>> 7. problem on conditional inclusion.
>>>
>>> 8. problem related to depth first and breadth first search (DSA
>subject)
>>>
>>> 9. study the syntax of malloc function
>>>
>>> 10. locate the error
>>>
>>>
int arr (20);
>>>
Ans: syntax error.
1.Non-verbal questions
________________________________________________________
|
*|
|
|
|
|
|
|
|
|
|
|
|
|
|_______|_______|_______|_______|_______|_______|__________|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|_______|_______|_______|_______|_______|_______|____________|
Like this
2.Venn diagram
Draw venn diagram for flowers,white,clothes
(Complete question is not there)
3.Analytical
ABCDEF -->Boys
PQRST -->Girls
AD
ST
BR
CQ
4.
a.A
b.S
c.B
d.C
will with D
will with T
will with R
and Q wants to be in the same team.
5. Matricide:Mother::Homicide:?
a)Human
b)Children
c)Father
d)None
8.Rs.3 costs 5 oranges.Then sold each orange at 1 rupee each.Then sold each
orange at 1 rupee each.For Rs.36 profit what is the no. of oranges
required?
Ans.90
9.The wages of the worker was increased from Rs.18 to Rs.21 per week.The
average working hours is 7 hrs/day instead of 8 hrs/day.How much fast wokers
should do work?
10.A sales person visits M,N,P,Q,R and S
S can be varied according to the question.
Ans.
S MNPQR
'C' language
-----------1).
main()
int a[100];
int i;
x=
0
y=
100
------------------for(i=1;i<=4;i++)
}
return;
Debugging
Ans: Logical&routine error
******************************************************************************
>>DE-Shaw Software,Hyderabad.
>>-------------------------->>
SECTION-A
>>
>> you should write the programs for the following problems in C.
>>
>> 1. swapping two variables x,y without using a temporary variable.
>> 2. a program has been given asking to find the output
>>
ans. it is algorithm for finding G.C.D
>> 3. write a program for reversing the given string.
>> 4. the integers from 1 to n are stored in an array in a random
>>
fashion. but one integer is missing. write a program to find the
>>
missing integer.
>>
ans. idea. the sum of n natural numbers is = n(n+1)/2.
>>
if we subtract the above sum from the sum of all the
>>
numbers in the array , the result is nothing but the
>>
missing number.
>> 5. some bit type of questions has been given on pointers asking to
>>
to find whether it is correct from syntax point of view. and if
>>
it is correct explain what it will do.(around 15 bits).
>>
>>
SECTION-B
>>
>> ANSWER AS MANY AS POSSIBLE.
>>
>> 6.& 7. two programs on pre-processor directions has been given asking
>>
to find the output.
>> 8. simple question given on pointer
>>
a) kernighan & richie page no. 122
>>
b) schaum series page no. 323
>>
try to understand the pointer problems given here he asked to
>>explain
>>
in the interview if answer it in exam.
>> 9. write a c program to find whether a stack is progressing in
forward
>> or reverse direction.
>> 10. write a c program that reverses the linked list.
>>
>> GUIDELINES:
>>
the interview is very tough he is asking to do the problems in
>> front of him. he is also giving some new problems to solve before
>>him.
>> you should have a very good funda of C language.
-------------------------------------------------------------------------------Telco .
-----There are two sections each containg 40 questions.One arthematic
and another is reasoning. In arthematic 11 are data sufficiency and 8 are
anology.In reasoning all are puzzle type. Probably he rejects very
few from test , since after that GD follows. Any I am sending some q's as
for
as my rememberance.
Arthematic
1) Hypothesis :problem (below 4 he will give)
2) Mirror:Image
3)money:Misapprobation
4)nackles:Adoration
5)construction:building
6)file:pile
7)ours:we
8)1/3,1 1/3,3,5 1/3, next
9)Selling price of 4 articles=Cost price of 3 articles then %loss(ans. 25%)
10)|x-3|=3-x then x=
11)data sufficiency p>q?
1)p,q positive
2)q-1=q*2+p
This type you can see in GMAT book.
Reasoning
1)
ABCDEF attended for an interview, in which 3 were selected
A is worst of the lot
C got equal marks as F(C=F)
D<F and G
E is not selected
B>C
There are 5 questions below this.
2)There are 7 fellows sat in the following way
C and F always sit as a apart as follows
No. of fellows sat b/w c and D and D and F are equal like that he has given
Ans: Order is as follows C E B D A G F by using this you can answer all
About 4 to 5 are there
3)ABCDE are five brothers. There are twins(only one pair of equal age)
both are neither younger nor older. D is younger to 3 brothers.
B is older than E and C.
q's like who is youngest? Eldest ? About 4 are there.
4)A person has meet a king for that ha has to cross 7 gates. At each gate he
has to pay half the amount he is carrying. Finally he gave Rs 3/- to the
king. Then the amount he carried at the beginning and some questions
(about 5)like that.
5) Heros tell truth and cowards lie.There PQR three persons. P tells Q "I
may be hero or I may be coward". Q tells R "P was telling that he was
coward. Then R tells Q "P was not a coward but he was a hero". You better
study the question it may not be entirely correct.
Sekhar
a)755
b)777
c)757
d)775
e)None of the above
(Ans a)
11) what would the following program results in
main()
{
char p[]="string";
char t;
int i,j;
for(i=0,j=strlen(p);i<j;i++)
{
t=p[i];
p[i]=p[j-i];
p[j-i]=t;
}
printf("%s",p);
}
a)will print:string
b)will not print anything since p will be pointing to a null string
c)will print:gnirtS
d)will result in a complication error
e)will print invallid characters(junk)
(Ans will be b ) check
12) After the following command is executed
$ ln old new
a listing is performed with the following output
$ ls -li
total 3
15768 -rw-rw-rw- 2 you 29 Sep 27 12:07 old
15768
" "
" " " " " " new
15274
" "
1 " 40 " " 09:34 veryold
which of the following is true
a)old and new have same i-node number,2
b) " " " "
"
"
" , 15768
c)old and new have nothing yo do with each other
d)very old and new are linked
e)very old and old are linked
(Ans is b)
13) What will be the result of executing the following statement
int i=10;
printf("%d %d %d",i,++i,i++);
a).10 11 12
b).12 11 10
c).10 11 11
d).result is OS dependent
e).result is compiler dependent
(Ans is e)
14) What does extern means in a function declaration
a)the funct has global scope
b)the funct need not be defined\
c)nothing really
d)the funct has local scope only to the file it is defined in
e)none of the above
(Ans will be c)
15) What will be result of the following program
main()
{
void f(int,int);
int i=10;
f(i,i++);
}
void f(int i,int j)
{
if(i>50)
return;
i+=j;
f(i,j);
printf("%d,",i);
}
a).85,53,32,21
b)10,11,21,32,53
c)21,32,53,85
d)32,21,11,10
e)none of the above
(Ans is e)
16). MS windows 3.1 is a
a)operating system
b)Application
c)Programing language
d)database
e)shell
(Ans will be b)
17).MS Windows 3.1 supports which tyoe of multi-tasking?
a)cycle
b)executive
c)preemptive
d)Non-preemptive
e)Manual
(Ans
)
18)The command ......ln/bin/mail /usr/you/bin/m
a)will not be executed because you are linking files
across different file systems
b)results ln /bin/main being the same file as /usr/you/bin/m
c)results in 2 links to the file mail
d) "
"
"
"
m
e)none
(Ans will be b)
19)In a standerd directory lay out ,/etc is the directory where
a) basic programs such as who and ed reside
b) - - - - - - c)various administrative files such as password file reside
d) - - - - - - e) - - - - - (Ans is c)
20) The command echo *
a) echoes all files in the current directory
b) - - - - c)
d)
e)
(Ans is a)
21)What will be the result of the following segment of the program
main()
{
char *s="hello world";
int i=7;
printf("%.*%s",s);
}
a)syntax error
b)hello w
c)
d)
e)
(Ans is b)
22) What will be the result of the following program
main()
{
int a,b;
printf("enter two numbers :");
scanf("%d%d",a,b);
printf("%d+%d=%d",a,b,a+b);
}
a)- - - - b) - -c) will generate run time error /core dump
d)
e)
(Ans is c)
23) What is the size of 'q'in the following program?
n{
int x;
char y;
struct {
char x;
char y;
int xy;}p;
}q;
a)11
b)6
c)4
d)5
e)none
(Ans is b why because no of bytes for int =4 given in instructions)
24) Which message is displayed when a window is destroyed
a)WM_CLOSE
b)WM_DESTROY
c)WM_NCDESTROY
d)
E)
(Ans is b)
25)Send Message and postmessage are
a)send message puts the message in the message queue and results,
postmessage processes the message immediately
b)Sendmessage processes the message immediately,postmessage puts
the message in the queue and returns
c) Both put the message in the message queue and returns
d) Both process the message immediately
e) None of the above
(Ans will be b check)
26) Which of the following message is used to limit the size
of teh Window
a)WM_SIZE
b)WM_PAIN
c)- - - -
d)- -- - (Ans is a)
27)until who|grep mary
do
sleep 60
done
a) is syntactically incorrect
b) waits 60 seconds irrespective of Mary being logged in or not
c) waits until Marry is logged in
d)waits till Mary exited
e)None
(Ans is c)
28)The UNIX system call that transforms an executable binary file into
a process is
a)execl()
b)execv()
c)execle()
d)execve()
e)All of the above
(Ans will be d check)
29)Which of the following is true about fork()
a)- - - - b)causes the creation of a new process ,the CHILD process
with a new process ID
c)
d)
e)
(Ans is b)
30) What do the following variable names represents?
sort
register
volatile default
a)- - - b ) - - - c)all the above are keywords
(Ans is c)
31)What will be the result of the following program
main()
{
char *x="String";
char y[] = "add";
char *z;
z=(char *) malloc(sizeof(x)+sizeof(y)=1);
strcpy(z,y);
strcat(z,y);
printf("%s+%s=%s",y,x,z);
}
a)Add+string=Add string
b)syntax error during compilation
c)run time error/core dump
d)add+string=
e)none
(Ans will be e consider cap&small leters)
32)What does the following expression means
a)
b)
c)
d)an arrey of n pointers to function returning pointers to
functions returning pointers to characters
(ANS IS d)
33)Which of the following is not a DDL object
a)HBRUSH
b)HPEN
c)HBITMAP
d)HRGN
e)HWND
(Ans ic e)
34) Which of the following message is used to initialize the
contents of a dialog
a)WM_CREATE
b)WM_SIZE
c)WM_COMMAND
d)WM_INITDIALOG
e)none
(Ans will be d)
35)Interprocess communication in UNIX can be achieved using
a)pipe
b)Message
c)Semaphores
d)Shared Memory
e)All of the above
(Ans is e)
36) Which of the following is true
a)UNIX is a time sharing multi-user OS
b)UNIX has a device independent file system
c)UNIX
is full duplex
d)UNIX has command interpreter
e)All of the above
(Ans is e)
Q). PS1
pwd
export PS1
results in
a). your primary prompt being your current directory
b). "
"
and secondary prompts being the current dir
c). "
"
prompt being your home dir
d). "
"
and secondary prompts being the home dir
e). None of the above.
Q). If you type in the command
nohup sort employees > list 2 > error out &
and log off ,the next time you log in . the output
will be
a). in a file called list and the error will de typed in
a file error out
b). there will be no file called list or error out
c). error will be logged in a file called list and o/p
will be in error out
d). you will not be allowed to log in
e). none of the above
Q). In UNIX a files i-node
a)is a data structure that defines all specifications
of a file like the file size ,number of lines to a
file ,permissions etc.
b).---c). - - - -d). _ _ _
( ans is ---------(a) )
Q). The UNIX shell is....
a).does not come with the rest of the system
b).forms the interface between the user and the kernal
c)-- -- ---
d) - - - e) none
(ans is (b) )
Q).enum number { a=-1, b= 4,c,d,e}
what is the value of e ?
7,4,5,15,3
(ans is 7 ) check again
Q).The very first process created by the kernal that runs
till the kernal process is haltes is
a)init
b)getty
c)
d)
e)none
(Ans is a)
Q) Result of the following program is
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);
}
}
a)0,5,9,13,17
b)5,9,13,17
c)12,17,22
d)16,21
e)syntax error
(Ans is d )
Q) What is the result
main()
{
char c=-64;
int i=-32
unsigned int u =-16;
if(c>i){
printf("pass1,");
if(c<u)
printf("pass2");
else
printf("Fail2");}
else
printf("Fail1);
if(i<u)
printf("pass2");
else
printf("Fail2")
}
a)Pass1,Pass2
b)Pass1,Fail2
c)Fail1,Pass2
d)Fail1,Fail2
e)none
(Ans is c)
APTITUDE TEST
*****************************************************
Missing leter
1).eefgghii- (Ans j)
2)
3)defdefghi- (Ans g)
4)cdexyzfghxyz-(Ans i)
5)defdegde(h)
6)abczabcyabc- (x)
7)fgbhibjkb- (l)
8)- - - - (Ans is r)
9)aarbsctarb- (s)
10)bccdeefg- (g)
11)efhikl(n)
12)abccdeffg- (h)
13amnbopc(q)
14)tttssrqqqp- (p)
15)ddffhhjj- (l)
16)mnmnklopopkl- (q)
17)cddeeefff- (f)
18)gfed(c)
19)dfhjl(n)
20)abcijdefij (g)
21)efgefghefghi- (e)
22)bcbdedfgfhi- (h)
23)aababccdc(d)
24)aibcidef(i)
25)cehl(q)
26)abdehimn(s) check again
27)becfdge(h)
28)agbhc(i)
29)adhko(r)
30)efghjklno(q)
31)aedhg(k)
32aeibf(j)
33)zdwgt(J)
34)zeyijxg()find
35)cqreuvg(y)
36)ksjtiuh(v)
37)rsjtuhvw(f)
38)ieajfbk(g)
39)hebifej(g)
40)hjlmiel(h)
--------------------------------
6)Languages
* All together 60 questions with each section containing 10 questions.
* All are multiple choice questions
1.
2.
3.
4.
One Nibble = ?
Hexadecimal and Octal representation of 1024 ?
What a compiler does ?
DOS ? (whether Graphical interface or Character interface and two more
choices are given)
5. CPU - abbrevation
6. Fortran used as ( Ans : Scientific Language)
7. ASCII character set ? (total number)
8. Windows NT- What NT stands for?
9. Which is not an input device ? (keyboard, Disk, Mouse,Lightpen)
10. Which is not a pointing device ?( mouse,Joy stick,lightpen none)
11. Microsoft Chief ?
12. 4GL ? (Fortran,SQL,ADA, ....)
13. Father of Computers?
14. Which of them is Object Oriented Language.?
15. Power PC is the product of ? (Microsoft,IBM,Apple,Motorola,Intel)
(A combination of any correct 3 companies)
16. Latest processor used ? (Pentium, Power PC, Pentium pro,none)
17. MS Word is ?
18. First Super Computer built in India. (Ans : param)
19. Which of the following companies donot manufacture chips?
(Microsoft, Motorola, Intel, HP)
20. LAN - abbrevation
21. WAN - abbrevation
22. Modem is ? (related to electrical hardware.- Like Modulator
&demodulator)
23. FDD - abbrevation ( floppy disk drive)
24. BIT - abbrevation
25. Information is ? (message, data,processed data,none)
26. Which is not networking ?(internet,ethernet,arcnet,none)
27. One Gigabyte =?( 2 power30 , 2 power 20 ,2 power 10 none)
28. Which of the following is not RDBMS ? (sybase, SQL,Acess,none)_
29. Oracle is ? (Ans : Relationasl Data Base Management System)
30. In Oracle, Table means ( Ans : Collection of records)
31. DMA - abbrevation (Direct Memory Access,Discrete memory Access,
Disk memoryaccess)
32. What is meant byStatic Variable ?
33. What is meant by QUEUE? {refer any data structures text}
34. What is meant by STACK? {refer any data structures text}
35. The processor used in first IBM PC? (8086,8088,zig4,intel)
36. Difference between 80286 and 80287
37. In bubble sort , no. of comparisons required ?(ans : formula :
N*(N-1)/2)
38. No. of comparisons of an item in 100 items by binary comparison?
( 10,25,50 100)
39. CRT - (Cathode Ray Tube)
40. No. of entryvalues are there in ideally in a subroutine.
41. Binary tree?
42. Flow in one direction ? (Single linked list,Double linked
list,.......,....)
43. Electron screen size ? (here, 2 lines of algorithm is given.
Name the algoirithm)
44. Which is not storage device.? (printer,CD ROM,Disk,none)
45. A question regarding memory ? ( least used memory,recently unused
memory,..)
46.
47.
48.
49.
50. Struct(s)
{
int a;
long b;
}
Union (u)
{int a;
long b;
}
Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4
51.Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
( ans : 1,2,3,none)
case 3
--i;
Output of i after executing the program
52. char S;
char S[6]= " HELLO";
printf("%s ",S[6]);
output of the above program ? (0, ASCII 0, I,unpredictable)
53. Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ? (127,128,256,infinitely)
54. int i;
i=0;
repeat
i=i+1;
<====== PASCAL PROGRAM
print i;
until(i<10)
end
No. of times the loop is executed?
55. Convert (int A,var ,int B;int c)
{
A=10;
B=4-;
C=120;
}
Convert (inta,b,c)
{
<====== PASCAL PROGRAM
a=1;
b=4;
c=12;
}
----------end
57. int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ? (4,3,unpredictable,none)
58. what is FAT?.
File allocation table
QUANTITATIVE APPTITUDE TEST :
--------------------------Total 44 questions are there.
Refer R.S. Aggarwal
1.
2.
3.
4.
5.
the
= log(x)/log(y)
35. A Kg of tea costs Rs 49.50 . But the supplier gives 10 gms less for
every
Kg he sold. What is the actual cost.
36 - 40
A question on transportation table. 5 questions were given.
------------------------------------------------------A
B
C
D
E
------------------------------------------------------A
X
12
8
20
6
------------------------------------------------------B
12
X
12
5
9
------------------------------------------------------C
20
8
X
4
7
------------------------------------------------------D
3
15
6
X
10
------------------------------------------------------E
12
5
8
3
X
------------------------------------------------------A,B,C,D,E denote the stages.
X denote the start of the stage.
The bus goes from A to E and E to A woith back stops at B,C, & D
For each the charge is Rs.0.70
The numbers in the table are how many passengers are there in the bus
upto that stage.( the numbers given the table are not correct)
36. Total no. of passengers in onward journey
37. Total amount in the conductors bag just before the bus reaches
the stage C
38. How many Rs. 1.40 tickets are issued to passengers in backward
journey.
39. If the bus breaks down between the stages C & D , the amount refunded to
passengers.
40. If the ticket costs Rs.1.50, how much is the profit in Backward journey.
Remaining 4 questions may be fron English.
--------------------------------------------------------RAMCO 'C'
1.
main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
QUESTION PAPER
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
Ans
57
94
3).
-------------------------------------------------------------main()
{
}
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
Ans
5 20 1
4).
----------------------------------------------------------------#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}
int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}
Ans
10
10
5
5
5).
-------------------------------------------------------------main()
Ans
Samco Systems
amco Systems
6).
-------------------------------------------------------------#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Ans
7).
-------------------------------------------------------------#include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Ans : RamcoSystems
8).
-------------------------------------------------------------[1]. The following variable is available in file1.c
static int average_float;
Ans
9).
-------------------------------------------------------------Ans
10).
-------------------------------------------------------------[3]. Another Problem with
# define TRUE 0
some code
while(TRUE)
{
some code
}
This won't go into the loop as TRUE is defined as 0
Ans
NONE OF THE ABOVE i.e D
11).
-------------------------------------------------------------Ans : [4]. A question in structures where the memebers are dd,mm,yy.
mm:dd:yy
09:07:97
12).
-------------------------------------------------------------Ans :
[5]. Another structure question
1 Rajiv System Analyst
13).
-------------------------------------------------------------Answer
INFILE.DAT is copied to OUTFILE.DAT
14).
--------------------------------------------------------------
15).
-------------------------------------------------------------Structure swap
Ramco India
Ramco Systems Corporation
Ramco ... Limited .
After swapping the result will be
First two will be swapped.
Ramco Systems Corporation
Ramco India
Ramco ... Limited .
16).
-------------------------------------------------------------int x;
main()
{
int x=0;
{
int x=10;
x++;
change_value(x);
x++;
Modify_value();
printf("First output: %d\n",x);
}
x++;
change_value(x);
printf("Second Output : %d\n",x);
Modify_value();
printf("Third Output : %d\n",x);
Modify_value()
return (x+=10);
change_value()
{
return(x+=1);
}
Ans
12
17).
--------------------------------------------------------------
main()
{
}
Ans :
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
11
16
18).
-------------------------------------------------------------main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("Ramco Systems\n");
OVER
------------------
-1
-2
cannot be determined
cannot be determined
b) which is greatest
F
12
cannot
4
6
7
8
none
480
600
800
i:=0;
j:=0;
| block d
none
begin
loop:
if(i != 0)
i := i-1;
else
i := i+1;
i := i+1;
j := j+1;
| block a
| block b
if (j <= 25)
goto loop;
end
| block c
of i at [c]
the goto executed
the loop executed if i is initialized to 1
the loop entered if the block [b] is changed
Ans
--(a) 1 only (b) 2 only (c) 3 only (d) 1,2,3 or 2 & 3 but not 1
(e) 1,2 & 3
2. If B occurs which must occur
Ans
--- (a) F & G (b) D & G (c) D (d) G & H (e) J
3. If J occurs which must occur
Ans
--(a) E (b) Both E & F (c) Either B or C (d) B (e) Both B & c
#include<stdio.h>
int SumElement(int *,int);
void main(void)
{
int x[10];
int i=10;
for(;i;)
{
i--;
*(x+i)=i;
}
printf("%d",SumElement(x,10));
}
int SumElement(int array[],int size)
{
int i=0;
float sum=0;
for(;i<size;i++)
sum+=array[i];
return sum;
}
#include<stdio.h>
void main(void);
int printf(const char*,...);
void main(void)
{
int i=100,j=10,k=20;
int sum;
float ave;
char myformat[]="ave=%.2f";
sum=i+j+k;
ave=sum/3.0;
printf(myformat,ave);
}
#include<stdio.h>
void main(void);
void main(void)
{
int a[10];
printf("%d",((a+9) + (a+1)));
}
#include<stdio.h>
void main(void);
void main(void)
{
struct s{
int x;
float y;
}s1={25,45.00};
union u{
int x;
float y;
} u1;
u1=(union u)s1;
printf("%d and %f",u1.x,u1.y);
}
#include<stdio.h>
void main(void)
{
unsigned int c;
unsigned x=0x3;
scanf("%u",&c);
switch(c&x)
{
case 3: printf("Hello!\t");
case 2: printf("Welcome\t");
case 1: printf("To All\t");
default:printf("\n");
}
}
#include<stdio.h>
int fn(void);
void print(int,int(*)());
int i=10;
void main(void)
{
int i=20;
print(i,fn);
}
void print(int i,int (*fn1)())
{
printf("%d\n",(*fn1)());
}
int fn(void)
{
return(i-=5);
}
#include<stdio.h>
void main(void);
void main(void)
{
char numbers[5][6]={"Zero","One","Two","Three","Four"};
printf("%s is %c",&numbers[4][0],numbers[0][0]);
int bags[5]={20,5,20,3,20};
void main(void)
{
int pos=5,*next();
*next()=pos;
printf("%d %d %d",pos,*next(),bags[0]);
}
int *next()
{
int i;
for(i=0;i<5;i++)
if (bags[i]==20)
return(bags+i);
printf("Error!");
exit(0);
}
#include<stdio.h>
void main(void)
{
int y,z;
int x=y=z=10;
int f=x;
float ans=0.0;
f *=x*y;
ans=x/3.0+y/3;
printf("%d %.2f",f,ans);
}
#include<stdio.h>
void main(void);
double dbl=20.4530,d=4.5710,dblvar3;
void main(void)
{
double dbln(void);
dblvar3=dbln();
printf("%.2f\t%.2f\t%.2f\n",dbl,d,dblvar3);
}
double dbln(void)
{
double dblvar3;
dbl=dblvar3=4.5;
return(dbl+d+dblvar3);
}
#include<stdio.h>
static int i=5;
void main(void)
{
int sum=0;
do
{
}
sum+=(1/i);
}while(0<i--);
#include<stdio.h>
void main(void)
{
int oldvar=25,newvar=-25;
int swap(int,int);
swap(oldvar,newvar);
printf("Numbers are %d\t%d",newvar,oldvar);
}
int swap(int oldval,int newval)
{
int tempval=oldval;
oldval=newval;
newval=tempval;
}
#include<stdio.h>
void main(void);
void main(void)
{
int i=100,j=20;
i++=j;
i*=j;
printf("%d\t%d\n",i,j);
}
#include<stdio.h>
void main(void);
int newval(int);
void main(void)
{
int ia[]={12,24,45,0};
int i;
int sum=0;
for(i=0;ia[i];i++)
{
sum+=newval(ia[i]);
}
printf("Sum= %d",sum);
}
int newval(int x)
{
static int div=1;
return(x/div++);
}
#include<stdio.h>
void main(void);
void main(void)
{
int var1,var2,var3,minmax;
var1=5;
var2=5;
var3=6;
minmax=(var1>var2)?(var1>var3)?var1:var3:(var2>var3)?var2:var3;
printf("%d\n",minmax);
}
#include<stdio.h>
void main(void);
void main(void)
{
void pa(int *a,int n);
int arr[5]={5,4,3,2,1};
pa(arr,5);
}
void pa(int *a,int n)
{
int i;
for(i=0;i<n;i++)
printf("%d\n",*(a++)+i);
}
#include<stdio.h>
void main(void);
void print(void);
void main(void)
{
print();
}
void f1(void)
{
printf("\nf1():");
}
#include "6.c"
void print(void)
{
extern void f1(void);
f1();
}
static void f1(void)
{
printf("\n static f1().");
}
#include<stdio.h>
void main(void);
static int i=50;
int print(int i);
void main(void)
}
int print(int x)
{
static int i=2;
return(i--);
}
#include<stdio.h>
void main(void);
typedef struct NType
{
int i;
char c;
long x;
} NewType;
void main(void)
{
NewType *c;
c=(NewType *)malloc(sizeof(NewType));
c->i=100;
c->c='C';
(*c).x=100L;
printf("(%d,%c,%4Ld)",c->i,c->c,c->x);
}
#include<stdio.h>
void main(void);
const int k=100;
void main(void)
{
int a[100];
int sum=0;
for(k=0;k<100;k++)
*(a+k)=k;
sum+=a[--k];
printf("%d",sum);
}
/*
BAAN
peper 2
analogy from GRE book
LOGIC model test 1
page
406
407
508
381
377
Q.no
1-4
17-22
1-4
40 -41
7-11
new GRE
(motorist prob)
(letters a,b,c)
(all g's are h's)
(president prob)
(office staff)
part 2
problems on ages
part 3
blood relations
series problems
6,9,14,21,(30)
5,2,(2.5),8
2,10,(30),68,130,(222)
9,15,23,33,(45)
6,25,62,123,314,241
5,11,19,29,(41),55
2,12,30,56,90,(132)
4,18,52,(17)
39,21,(45),93
1,3,7,(15)31
3,9,21,(45),93
35,24,15,8,(3)
2,12,30,56,90,(132)
3,11,19,29,(39),51
analogy
fans:bleachers:: gre389
archipilago:islands::gre393
crow:boastful 393
bracket:shelf 394
taxonomy:classification 394
moderator:debate 413
glossary:words 413
lumber: bear
414
celerity:snail 414
wood:sand 454
carpenter :saw 87
horns:bull 87
gullible: 87
marathon ::
(13th GRE 87p)
Skin : man ::
kick : Football :: Betal :chew
(pno.45, RS 46)
Bamboo: Shoot :: Bean : sprout
Deflect : missile : distract : Attraction
Editor : magazine :: director : film
pine : clock :: calander :date
Volcano : Lava :: Fault : earthquate (Eyes : Tears)
Hero : Accuhade :: hanging stork : Ridicle
CODING
Load == MPBE
HOW WILL YOU CODE
2) START =WALKA
DRIVE = ESJWF
LADDLER -> MBEEMFS
BUDPI = XZFMR
3 TO 7
Z=A
LIMIT = ORNRG
SOUR = HLFI
POCKET = KLXPUG
GROUP = TILFK
ZERD = AVIL
FROM 8 TO 9
Here each letter is coded a s
A = (BC)D ,
B=(CD ) E, C=(DE)F
(16)
-------------------------TECHNICAL :
1. Binary equivalent of 52
---110100
2. Hexadecimal equivalent of 3452
-----3.Consider the Boolean table
72A
Ans : a) 1
4. Consider the circuit
Ans a) (A+B).(C+B)
5. jUST in time Concept address ---Ans : Elimination of waste by purchasing manufacturing exactly when needed
6. A better way of unit testing s/w program is
Ans : User test
7.A lowest level of security by most RDBMS are
Ans : a) field low
8. OOT uses
Ans : Encapsulated of detect methods
9.EDI useful in
Ans : Electronic Transmission
10. MRPII different from MRP
aNS : Modular version of man redundant initials
11. Hard disk time for R/W head to move to correct
And : a) Lactency
12. Percentage of times a page number bound in associate register
Ans : Bit ratio
13. MODEM --------Modulation and Demodulation
14. RDBMS file system
Ans : Interrelated
15. Super Key is ----Primary key+ Attribute
16. Transmission is said to be ----committed
17. Windows 95 supports
a) Multiuser b) n tasks c) Both
Ans : c
18. Difference between printf and fprintf ---19.To change permission r&w to owner group to no permission to others
a) Chmod 614 b) chmod 604
c) chmod 640 d) chmod 310
20. In batch process ------------better job