Monday

Hughes Placement Paper

1. Find the probability of getting a number with 7 between 100 and 999 (both inclusive).

2. There are 10 items in a box, out of which 3 are defective.
2 balls are taken one after the other.
What is the probability that both of them are defective?


3. Context free grammar is accepted by

a) finite automata
b) push down automata
c) two way bounded automata
d) both b and c


4. Which is not a memory management scheme?

a) buddy system
b) swapping
c) monitors
d) paging

Ans : c

5. Simplify the Karnaugh map given below and derive its expression in SOP form

6. Question on NAND gates implementation.


7. Definition of Context Sensitive Grammar


8. An identifier can start with a letter followed by any number of letter or digits .


9. With the following configuration:
8MB total memory, 256kb cache , 4kb is block size.
Using direct mapping, how many different physical memory blocks can be mapped on to the cache.

(a) 64 (b) 256 (c) 128


10. CSMA/CD is used in

a) token ring
b) FDDI
c) ethernet


11. In TCP/IP header, checksum contains

a) sum of all the words
b) ones complement of the data
c) ones complement of the sum of all the words
d) ones complement of the sum in ones complement


12. What is the maximum number of acknowledgements for a 4 bit sequence number in a sliding window protocol.


13. Which is a good way of representing varaibles in recursion

a) local variables
b) static varaibles
c) global variables


14. Given the following c program

func()
{
static int i = 10;
printf("%d",i);
i++;
}

What is the value of i if the function is called twice ?


15. Given the following c program

func(int *i, int*j)
{*i=*i * *i;
*j=*j* *j;
}

main()
{ int i = 5, j = 2;
func(&i,&j);
printf("%d %d", i, j);}

What is the output?

Hues Placement Paper

 (A)Aptitude :25 Qns, 20 Minutes
 
 1. 2 x 4 analytical GRE type qns
 2. 2-3 Reasoning qns (GRE type)
 3. Probability of getting a sum of 7 when two dices are thrown together
 4. Rest quantitative questions
 
 (B) Technical: 50 Qns, 45 Minutes
 
1. 3 qns on operating systems. I qn on dijkestra algorithm
 
2. Using which pin it's possible to address 16 bit addresses even though there
  are only 8 address bits in 8085? Ans: ALE
3. Voltage gain for an amplifier is 100 while it is operating at 10 volts.
  What is the O/P voltage wen i/p is 1 volt
4. Quality factor indicates a0 Quality of inductor b) quality of capacitor
  c) both
 5. Qns related to bridges, routers and generators, which OSI layer they
  corresspond to. (Refer to stevens 4th chapter)
6.OPAmp's I/P ciurrent, O/p current and CMRR is given, what is the voltage
  gain
7. 2-3 qns on scope of static variables in C. Qn to view o/p odf a C static
  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, virtual
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?
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 chips
(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. CSMA/Cd protocol used in
Ans : Ethernet
2. Checksum in IP packet is
Ans : Sum of the bits and 9's complement of sum
3. Inselective repeat Max Seq is given find windowsize
i.e. Ans : (15+1)/2 = 8
4. Main memory cache direct mapping
Ans : 64
5. Address lines and data lines for 4K x 16
Ans : Addr 12, Data 16
6. Infix to postsize commession uses
Ans : operator stack
7. Printing ofstatic variable
Ans : 11
8. Ans : 1,2,3,4 ( Program is given
array[0] = 1;
array[1] = 2;
array[2] = 3
array[3] = 4
ptr = array[0]
*(arr+3) = *(++array ) + *(array-1)++)
)
There may me some mistique in writing
the program. Check it out.
Answer is correct
9. One Question on Scheduling
Preemptive
10. Which of the following is not memory model
(1) buddy system (2) monitor (3) virtual ... etc.
11. Hight balancing AVC time
Ans : 3
12. Virtual to physical address mapping
page table given
13. regular expression of identifier
L(LUD)*
14. Simplification in boolean Algebra
Ans : xz
15. Logical gate is given we have to find what is that
Ans : NOR
16. Solution for Diriving philofphing
Ans : d
17. The feature C++ have and c donot have
Ans : Variables can be declared inside also.
18. Number of nodes with degree two in a binary tree of n leaves
Ans : n-1
19. Difference between syachronous and asynchronous transmission

20. The question on RS232
(Use of sfart bit in Rs 232 protocal)
21. Floating point representation
Ans : 2's complement
1 more negitive number
Two simple probability questions are also there

Section A : 30
Section B : 20

Total 50 questions in 1 hours

Huwai Placement Paper

HUAWEI Written Test
Test Pattern Consist of
Section I. 60 [General Aptitude +Puzzles directly from Summers Book )

From Summers 5-6 Questions..

Analytical Reasoning @ Logical Some 10-15 questions..

Rest of them are aptitutes..

Section II 60 [Teshnical]

Mainly consists of full problems in the Communication & ISDN's, Microprocessor,Digital Circuits question and basic's of electronics...

30 Questions are Computer
Mostly From OS,Networking and Automata concepts (Compiler Concepts). In Os the asked about the Scheduling Problems like they have given the Execution time and elapse time u have to allocate the time for the process...

Section III [C prgm] (10-12 from pointers)
Section I

In a city, 80% speaks english, 70% speaks hindi and 10% do not speak both. It was found that 162 people talk both. How many are there in the city?

Find the missing number: 0 6 24 X 120

There are 26 pearls in a bag. One among them is less in weight. You have been given 2 pan weight machine. In how many trials, you will be able to find the defected one?

There are 30 socks in a bag. 30% is in blue color. What is the probability to take two blue socks?

In a party, every man has his dog with him. There are 22 heads and 72 legs all together. How many men & dogs are there?

Find the missing number: 0, 0.577, 1, 1.732, ?
a. 0.656 b.2 c.2.743 d.none

Two different types of tea are mixed, at 6 Kg of type 1 and 4 Kg of type 2. One Kg of type 1 is Rs. 6 and that of type 2 is Rs. 7. The seller get 10% profit, by this action. Find at what price, he 'd have sold the mixture/Kg?

There are 10 people in a party. "How many other people, you met?" is the question asked to everyone. First person says 1, Second says 2, Third says 3..........ninth says 9. Now what tenth person 'd have answered?

.The Distance between A to B is 1000 miles... A person has 3000 Apples ..He has to deliver to the market in B , he is carring Maximum of 1000 apples by the camel.. For every mile the camel eats a Apple ...Like that then u have to find out the number of apples that he delivered to the market?

In the old era humans used --------- to prevent themself from the attack of dianosur?(Easy one)

Mr x & MRS x and Mr.y and MRS y are playing a chess ..like that then the chance of winning? ans (MR.y)

C Programming

void checkA()
{
int a=2;
if(a=3!=3)
printf(" 3 ");
else
printf(" 2 ");
return;
}
ans. 2

main()
{
char P[]={"Hello World"};
printf(" %s \n",p);
main();
} ans (abnormal program termination)

# define D 10
# define Y D+10
# define D 30
main(int argc, char *arc[])
{
printf(" %d \n",D);
}
ans.30

# define TRUE 0
main()
{
int i=0;
while(TRUE)
{
printf(" %d \n",i);
i++;
}
printf(" %d \n",i);
i++;
}

HP Placement Paper

The test comprises of 4 sections:
Section A. ------50qns(general aptitude, English etc):
Section B. ------ 10 Questions on Computer concepts.
Section C. ------ 30 Questions on C

1. WAP find and replace a character in a string.
2. WA function to perform the substraction of two .Eg:char N1="123",N2="478",N3=-355(N1-N2).
3. WAP dynamically intialize a 2 dimentional array Eg:5x20,accept strings and check for vowels and display the no.finally free the space allocated .
4. WAP read a line from file from location N1 to N2 using command line agruments Eg:exe 10 20 a.c
5. WAP find the largest of 4 no using macros.

General section

Computer science general, c/c++ section, Java section ,The question paper had 48 questions to
be answered in 1hr. Time will be quite sufficient. They have different sets of question papers. .

1 General section : computer science general knowledge
2. Computer science general: simple questions

1. HP acquired this company in 2002. Which is the company
a) Compaq b) Dell c) option 3 d) Option4
Ans: a

2. What does 3G denote
a) 3rd generation mobile communication b) 3rd generation computer languages c) option 3 d) option4
Ans: a

3. An application program that is used by the users to get the inofrmation from the backend of some
application like databases:
a) application server b)proxy server c)database server d)option 4
Ans: database server

4. Which of the following is not true about the e-mail
a) It can be accessed by a client program using POP
b) It can be accessed by a client program using imap protocol
c) option 3
d) option 4
Ans: I don't remember the answer but first 2 are true.

5. Some quesion regarding the company and who developed it ( the thing to remember is that Apple
produce Macintosh computers).

c/c++ section: questions on c/c++, programs o/p etc.

1 main( )
{
unsigned int i=3;
while( i >=0)
printf( "%d", i--);
}
how many times will the printf stmt be executed?
a)0 b)3 c)4 d)infinite
Ans: I think the answer is infinite, b'cos 'i' is an unsigned integer and it will not decrement below '0'
and hence end up in an infinite loop.(yes, i checked and it is getting stuck in an infinite loop)

2. main( )
{
int x,y, z;
x=2;
y=5;
z= x+++y;
printf("%d %d %d", x, y z);
}
a)3 5 7 b)option 2 c)option 3 d)option 4
Ans: a

3 # define swap(a,b) temp=a; a=b; b=temp;
main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
Ans: On compiling i got ans 10, 0, 0. I did not understand the concept. Please expalin this to me.

4. Java section: questions on java related stuff.
1) Java was initially code named as:
a)Oak b)green c)miller d)option4
Ans: Oak

5. What is not true about the following statements about java.
a) it is compiled using javac compiler
b) the compiled files have .class extension.
c) such files cannot be transfered from one comp to another.
d) they use the java interpreter
Ans: c

6. Why is the synchronize used?
a) to initialize multiple objects b)to lock an object c)option3 d)option 4
Ans: b (probably)

Honeywell Placement Paper

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
studied'. Many of the questions came from those.

Explain U'r research work.
Lot of questions from it.

What is a distributed system ?
Some questions about CSP. ( I kept quiet)
Which languages do U know ?
What are the differences between Pascal and C.
I said Pascal is a strongly typed language.
Then what is typing and its advantages ?
Then he asked some questions from Compiler construction and Lisp.

Sunday

Hfcl Placement Paper

HFCL CAMPUS TEST [1]

(1) TTL to CMOS pullup & vice-versa

(2) function of Ping

(3) SNMP protocol

(4) Application layer

(5) ## ----> token pasting in C

(6) Question on C: i^=j you have to tell the output given the values of i and j;

(7) Complexity of Binary Search tree

(8) Macro is given as follows : SQR(x) x*x
find the value of SQR(i-j) , when i and j were given

(9) Multiplexer 1 to 3 inputs--- A,B,C control lines--- S1,S2 Output --- Y .Write Y interms of S1,S2

(10) Bandwidth minimum sampling theorem

(11) Shannon's Law

(12) Difference between fork() & execve()

(13) Banker's algorithm

(14) append(&struct , fp)

(15) Windows95 , X-Windows what are they?

(16) 16k memory , ending address of the address space FFFFH find the starting address?

(17) Difference between TCP/IP and OSI model

(18) Difference between Bridge and router

(19) A graph was given : " a qudrilateral with 1 diagonal " find the number of trees in the graph

(20) Difference between TCP and UDP

(21-23) Pass by reference in C (3 questions)

(24) Synchronisation technique for IPC ( probably which method among the 4 choices was best was asked)

(25) Address of RST 6.5

Hexaware Placement Paper

Directions for questions 1-10: Expand the following terms:-

1. ODBC

Ans: Open Database Connectivity.

2. HTML

Ans: Hyper Text Markup Language.

3. RISC

Ans: Reduced Instruction Set Computing.

4. ASCII

Ans: American Standard Code For Information Interchange.

5. ANSI

Ans: American National Standard Institute.

6. XML

Ans: Extended Markup Language.

7. FLOPS

Ans: Floating Point Operating Per Second.

8. SQL

Ans: Sequential Query Language.

9. QBE

Ans: Query By Example.

10. ALE

Ans: Address Latch Enable.

11. What is lagging in DBMS?

Ans: Reduced Redundancy.

Directions 12 to 20: For the following questions find the odd man out.

12. Unix
OS/2
CMOS
MSDOS

Ans: CMOS.

13. Oracle
Informix
Sybase
LISP

Ans: LISP

14. Laser
Inkjet
Dotmatirx
Mouse

Ans: Mouse

15. Dir
Cls
Csh
Copy

Ans: Csh

Hellosoft Placement Paper

Sample Question Paper
What is diners phylosophers algorithm.
What is atomicity.Explain
Give an example of source- level debugger in unix/linx.
What is Pre-emptive multitasking.
Do not remember this one.

DataStructures: (ONly 5 Questions)
Where will the parameters be stored when a function is called in a program.
What is recursion?What are its disadvantages.
Which one is the best and efficient sort?

Networking:(Only 5 Questions)
ASN.1 belongs to which layer.
Give an example of popular Transport Layer Protocol
What is the netmask of Class B IP address?
Explain CSMA/CD.
Given a size from 0-7 what would be the least window size.

C Language (Total 13 Questions)

main()
{
printf("%d",printf("HelloSoft"));
}

Output?

case 1: case 2:
typedef Struct { typedef Struct {
int a; char p;
char b; int q;
int d; char k;
char e; int l;
}A; }A;
Assuming 'packing' is not enabled, which case will give an error of Sizeof(A) less.

main()
{
int i=3;
printf("%d %d %d",i++,i,++i);
}
main()
{
int i=10;
int j,k=5;
int a[10];
for(j=0;j<10;j++)
a[j]=(i+k)+(i*k);
}

Optimize the above code.

Write In Order Tree Traversal Pseudo-code.

main()
{
int *p=0x100;
int *q=0x100;
int k=p*q;
printf("%x\n",k);
}
Output ?

Char* foo(Str...) {
char str[4];
strcpy(str,"HelloSoft");
return str;
}

Output?
int a[10][20][30][40];
int *p
How to access an element of a using p?
main()
{
int i=10;
if(i>20)
if(i==10)
print("Hi");
else
printf("Bye");
} Output ?
main()
{
float f;
int i;
//something like this not remember these 4 questionsexactly
f=(float *)malloc(sizeof((float *)*4));
}

Wednesday

Hello Placement Paper

Sample Question Paper
What is diners phylosophers algorithm.
What is atomicity.Explain
Give an example of source- level debugger in unix/linx.
What is Pre-emptive multitasking.
Do not remember this one.

DataStructures: (ONly 5 Questions)
Where will the parameters be stored when a function is called in a program.
What is recursion?What are its disadvantages.
Which one is the best and efficient sort?

Networking:(Only 5 Questions)
ASN.1 belongs to which layer.
Give an example of popular Transport Layer Protocol
What is the netmask of Class B IP address?
Explain CSMA/CD.
Given a size from 0-7 what would be the least window size.

C Language (Total 13 Questions)
main()
{
printf("%d",printf("HelloSoft"));
} Output?
case 1: case 2:
typedef Struct { typedef Struct {
int a; char p;
char b; int q;
int d; char k;
char e; int l;
}A; }A;
Assuming 'packing' is not enabled, which case will give an error of Sizeof(A) less.
main()
{
int i=3;
printf("%d %d %d",i++,i,++i);
}
main()
{
int i=10;
int j,k=5;
int a[10];
for(j=0;j<10;j++)
a[j]=(i+k)+(i*k);
}
Optimize the above code.
Write In Order Tree Traversal Pseudo-code.
main()
{
int *p=0x100;
int *q=0x100;
int k=p*q;
printf("%x\n",k);
} Output ?
Char* foo(Str...) {
char str[4];
strcpy(str,"HelloSoft");
return str;
} Output?
int a[10][20][30][40];
int *p
How to access an element of a using p?
main()
{
int i=10;
if(i>20)
if(i==10)
print("Hi");
else
printf("Bye");
} Output ?
main()
{
float f;
int i;
//something like this not remember these 4 questionsexactly
f=(float *)malloc(sizeof((float *)*4));
}

Hcl Placement Paper

1. Which of the following involves context switch,

(a) system call
(b) priviliged instruction
(c) floating poitnt exception
(d) all the above
(e) none of the above

Ans: (a)

2. In OST, terminal emulation is done in

(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer

Ans: (b)

3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,

(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs

4. For 1 MB memory, the number of address lines required,

(a)11
(b)16
(c)22
(d) 24

Ans. (b)

5. Semaphore is used for

(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none

Ans. (a)

6. Which holds true for the following statement

class c: public A, public B

a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none

Ans. (a)

7. Question related to java

8. OLE is used in

a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT

9. Convert a given HEX number to OCTAL

10. Macros and function are related in what aspect?

(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration

11.Preproconia.. does not do which one of the following

(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file

Ans. (c)

12. Piggy backing is a technique for

a) Flow control
b) Sequence
c) Acknowledgement
d) retransmission

Ans. (c)

13. In signed magnitude notation what is the minimum value that can be represented with 8 bits

(a) -128
(b) -255
(c) -127
(d) 0

14. There is an employer table with key fields as employer number data
in every n'th row are needed for a simple following queries will get required results.

(a) select A employee number from employee A , where exists from employee B where A employee no. >= B
employee having (count(*) mod n)=0
(b) select employee number from employe A, employe B where A employe number>=B employ number
group by employee number having(count(*) mod n=0 )
(c) both (a) &a

Gssl Placement Paper

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 Ans: 29

2.0,7,26,63,124, Ans: 215 i.e.n**3-1 rule following

3. 1,3,5,7, Ans: 9 '1' is not a prime number

4. If a person walks at 4/5th of his usual spee he reaches 40min late. If
he walks athis usual speed how much time does he travels.

Ans:160min or 2hr 40min

5. Two trains A&B start at opposite points 120km at 60kmph. A fly
starting along with train A at 120kmph reaches B then returns back to
touch and continue. By the time two trains meet howmuch distance the fly
would have travelled?

Ans : By 1hour both trains meet, so the distance travel by fly in 1hr is
120km.
6.In a class 80% have passed english,70% passed Hindi 10% didnot passed
either. If 144 students passed both. What is the total strength of the class.

Ans: 240

.. Find the least number when divided by 7 gives the reminder 6, when
divided by 6 gives reminder 5, when divided by 5 gives reminder 4 and so
on....
Ans: 419

8. If a man stands in front of sun what is the first letter of the
direction which is left to him:

Ans: North(N)

9.A square is to circle what is cube to

Ans: sphere

10. Synonyms

i) Joy = gay

ii) Inert = Inactive
11.One wordswill begiven find oddman out: Ans:sickle like that
a) sow b) cut c) d) sickel

12. If I bought a cycle before 2days of my birthday and I broke it after
3 days of my birthday the day I broke is Mar2, 1956? Answer following
logical questions?
i) when is his birthday?
Ans: April,28 (due to leap year i.e.1956) but do not keep answer
blindly we just think before choosing answer Iam just giving ideaof question

13.
Monday
Aug25, 96

Mr A,
You forgott your umbrella during the party on last friday.I
expected you to collect it on your visit on wednesday,I plan to leave on
this Friday.

Questions: when A missed umbrella?
When A is supposed to collect it?

When K leaves?

Hint: These dates i.e. Aug 25 is not exactly given in test, but Iam
giving feel of that question.If you solve this question you can solve it
easily in exam.

14.What is my father's sons son to my son?

Ans: cousin brother