Hughes Placement Paper : Whole Testpaper Gurgaon
The paper contains the two sections
Section 1 (20 ques) contains all the questions related to quant,s, simple mathematics, and
simple logical question. so asfar as theis section is concern u don,t need any extra book
only R.S Aggarwal is sufficient. Section 2(30 ques) coice b/t CS paper and Electronics paper.
nice(,val,)? unix command
for(l=1;a<=l;a++)
cout<<++a;cout<<a;
output?
a.21
b.22
c.23
d.none
nt a[4]={1,2,3,4};
array to the pointer?
a.int *a[4]
b.int (*a)[4]
valid system prievlage in restricted seesion?
a. create user
b. create session
c. restricted session
emaphore?
a. shared memory
b.......
Semaphore?
a. shared memory
b.......
which is used to store hard disk sector info
a. eerom
b. rom
c . ram
d. cmos
If duplicate segments , file are there in hardisk which is best for management
a. fat
b. san
c. raid(may be)
d...........
If a lan with 100mbps is there which wan can give same features?
a. atm
b. isdn
c. x.25
d. ....
IPv6 has how many bytes for its address?
a. 8
b. 12
c. 16
Sliding window in which layer?
a. session layer
b. transport layer
c. application layer
d. presentation layer
when interupt occurs to cpu what happen?
DEBUG trigger (oracle)
order of insertion sort and Heap sort?
a. O(n**2),O(nlogn)
b.........
NEXTVAL and CURRENTVAL in sequence (Oracle)?
Which one is called family tree?
a. B+
b. Binary
c. AVL
Intel 386 support which memory management?
a. paged
b. segmented
c. paged segmented
d........
Complexity to access name from the given double link list?
|A|-->|B|
| |<--| |
a. O(n)
b. O(n**2)
c. O(nlogn)
question on virtual function and overloading?
question to find error in this C++ code.
used for parse trees?
a. linked lists
b.....
The question on RS232?
Hughes Placement Paper : HUGHES PAPER
HUGHES PAPER
Aptitude Questions
Age problem
Time and distance
Coin
direction problem
(2n + 2 n-1/2 n+1 – 2n) what is gives if n = something
( 10n –1) n>1 when is divisible by 11.no divisible by 8
find the missing no. when it is divisible by some no
Boat problem
Average
Technical Questions
Which one is called family tree
virtual function and overloading
DHCP protocol
order of insertion and Heap sort
left recursion
find output: for(l=1;a<=l;a++)
cout<<++a; cout <<a;
DEBUG trigger (oracle)
In unrestricted session which system privilege mode is used (oracle)
NEXTVAL and CURRENTVAL in sequence (Oracle)
Unix system call ……like Var( )
OS 384 support which memory management
Complexity to access name from the given double link list
Which WAN network is suitable for the 100Km or m. distance network
If duplicate segments , file are there in hardisk which is best for management
a) FAT
b) SAT
stop n wait protocol is associated with which layer
find errors from the c and c++ codes.
3 qns on operating systems. I qn on dijkestra algorithm
Using which pin it,s possible to address 16 bit addresses even though there re only 8 address bits in 8085? Ans: ALE
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
Quality factor indicates a) Quality of inductor b) quality of capacitor c) both
Qns related to bridges, routers and generators, which OSI layer they corresspond to. (Refer to stevens 4th chapter)
OPAmp,s I/P ciurrent, O/p current and CMRR is given, what is the voltage gain
2-3 qns on scope of static variables in C. Qn to view o/p odf a C static var
Qn to print a value of a pointer
OPAmp,s I/P ciurrent, O/p current and CMRR is given, what is the voltage gain
A qn to find the physical address from a given virtual address, virtual to physical address table was provided
6 bit mantissa and 8 bit exponent can present what maximum value?
4 bit window size in sliding window protocol, how many acknowledements can be held?
Security functionality is provided by which layer of OSI
Frequency spectrums for AM, FM and PM (figure given, u,veto tell which Kind of modulation it belongs to)
Among AM and FM which is better and why?
LASt stage of TTL NAND gate is called: Ans: Totem Pole Amplifie
SR to JK flip flop conversion. Ans: S=JQ,, R=KQ
LSB of a shift register is connected to its MSB, what is formed: Ans: RING Counter
2-3 Qns based on Demorgan,s laws (identiies: (A+b), = A,b,, etc)
2 qns on Logic gates (O/p of logic gates)
Diff in IRET and RET statements of 8086
How many address bytes are required to address an array of memory chips (4 * 6), each chip having 4 memory bits and 8k registers.
Diff. in memory mapped and I/P O/P mapped Input/Output (Refer a book on Microprocessor)
Qn on pipeline architecture
QN on LAPB protocol
Hughes Placement Paper : Whole Testpaper
HUGHES PAPER PATTERN
section A 30m (Compulsary)
section B or C 20 m(changed )m
Attempt either B or C sec B contains CST C E&C
Better to attempt Electronics paper (Those who are having electronics background)
Section A
Which of the folowing is not correct
a. (x+y),=x,.y, b. (x,+y,),=x.y
c. (x,.y,),=x+y d. (x,+y,),=x,.y, [d]
Question on logic ckt. U have to find the output ans. AB,+CD,+EF,
Output of MUX
_________
c-----| |
c,----| |-------Y
c,----| | ans. A xor B xor C
c-----| |---------
| |
A B (select lines)
If X and Y are two sets. |X| and |Y| are corresponding coordinates and exact no.of functions from X to Y is
97 then
a. |X|=97 |Y|=1 b. |X|=1 |Y|=97
c. |X|=97 |Y|=97 d. .....
If two dies are thrown simultaneously what is the prob. of one of the dice getting face 6 ?
a. 11/36 b. 1/3 c. 12/35 d. 1/36 [a]
The relation ,<,on reals is a. a partial order because of symmetric and reflexive
b. ... antisymmetric and ....
c. not ...... .. asymmetric and non reflexive
d. ... .... not anti-symm and non reflexive
In C language the parameters are passsed by a. values b. name c.referrence d....
Advantage of SRAM over DRAM ans. faster
Diasy chaining related question (refer Z80)
a. uniform interrupt priority
b.non .... ....
c.interfacing slower peripherals
d.....
RAM chips arranged in 4X6 array and of 8kX4bit capacity each. How many address lines reqd. to access
each byte
a. 12 b. 16 c.15 d. 17
Question related to AVL trees regarding how many no.of nodes to be changed to become balanced after
addition of a leaf node to a particular node. ans . 3
When following sequence is insertedin the binary search tree no.of nodes in left and right subtrees 52 86 64 20
3 25 14 9 85
Method used for Disk searching.. a.l inked list b. AVL c. B-tree d. binary tree
Which of the following is correct statement.
a. 1,s complement can have two zero re[resentations
b. 2,s ... ... represent an extra neg. number
c. 2,s & 1,s have no difference in representing 16-bit no.
d.......
AX=B where A is mXn ,b&X are column matrices of order m a. if m<n, X has infinite solutions
b.if m=n, rank of A <n then X has trivial solutions c.... d....
The option avialable in C++, not C:
a. dynamic scoping
b. declaration in the middle of code block
c. seperate compiled and linked units
d. ....
int a[4]={1,2,3,4};
int *ptr;
ptr=a;
*(a+3)=*(++ptr)+(*ptr++);
A part of code is shown. The elements in A after the execution of this code.
a.1 2 3 4 b. 1 2 3 6
c. compilation error d.1 2 2 4 [a]
Critical section program segment is
a. enclosed by semaphores with P & V operations
b. deadlock avoidance
c. where shared resources are accessed
d. ...
when head is moving back and forth, the disk scheduling algorithm is _____
a) scan b) sstf c) fcfs d)....
how many times the loop will execute
LOOP LXI B,1526H
DCX B
JNZ LOOP
a) 1526H times b) 31 c) 21 d) 38
the addressing mode in which the address of the operand is expressed explicitly within the instruction
a) index addressing b) absolute c) indirect d) immediate
(A - B) U (B - A) U (A ^ C) = ? where A,B are two sets A, , B, are compliments of A and B
a) A U B b) A ^ B c).... d)....
The network that does not use virtual circuit
a) IP b) X.25 c).... d)..
source routing bridge
a) source will route the frame
b) frame will routed with info in header
c).... d)..
cache access time 100 msec. main memory access time 800 msec if the hit ratio is 95% , what is mean access
time ...
The module that should be always reside in main memory is
a) loader b) link module c)... d)....
.... and some questions related to
1. addressing mode 2.assembler passes 3.linking and loading
4. file directory search 5. turning machine
6. finite state machine 7. daisy wheel
The order of algorithm to merge the two sorted lists of lengths m and n is
a. O(m) b. O(n) c. O(m+n) d. O(log(m)+log(n))
A chocolate block is of 4 X 4 size.How many cuts are needed to make 1 X 1 size blocks. No simultaneous
vert. & horz. cuts.
Which among the following is not correct
a. O(n) > O(log n) .. likewise
Section C
One question of Set Theory Like there Are two sets A and B and (A-B)union(B-A)union(A intersection B)
is equivalent to Ans. A union B
Union and intersection are in there sign conventions.
One question of probability Like between 100 and 999 how many no have the prob that they does not contain 7
Ans. 16/25 (not sure u can check by own)
Of Newton Rapson method...
Of power set A set contains {(fi),a,{a,b}} what is the powerset of it Ans. 8
A question of logic gates Ans. U can got the answer very easily
A question on the Booths algo Ans. The sequence is 1010101010101010
Relative addressing mode is used for Ans. Dont know.
For how many numbers there is no difference between little endian and big endian
Ans. 256
For the multiplication of two 8 bit numbers how much ROM will be used
Ans. 64k*16 ROM(Check it)
Why direct mapping is not good for the mapping of Cache Memory.
Ans. Dont know
What is the main property of Desiy I/O Sytem Ans.
A question on the nyquist theorem
Ans. 18000 bps
What is the shannon theorem...
Ans. Refer to data communication(Stalling) book
CSMA/CD protocol is used in
Ans. Ethernet
What is the limitation of the Pulse Code Modulation
Ans. Refer to data communication book
In CSMA/CD
Ans. The Access to the channnel is probabilistic.
For an IP Router how many IP addresses
Ans. Check it i think Answer is Only One.
Which protocol u used when you want to know the IP address corresponding to a MAC Address
Ans. RARP
Which part of the IP header is used for the time limit of the packet.
Ans. TTL
Which PageReplacement algo will give the best result
Ans. By replacing that page which has the next reference after a long time.(optimal algo)
What the code will be said when it is called by another part and it is not completed yet
Ans. Reentrant Code.
three questions on the simple programs
There is a sequence of no and prepare a binary tree and tell how many nodes are in the left and right sub tree.
Ans. Check it Ans (4,7)
hat is the rank of the graph
Ans. e-n+k
One question on the multithreading
Which traversal of the tree gives the node in the ascending order.
Ans. Inorder
Which traversal of the tree gives the node in the ascending order.
Ans. Inorder
What is garbage collector.
Hughes Placement Paper : Whole Testpaper
HUGHES PAPER
section A:30 bits
section B:20 bits
section C:20 bits
section A is compulsory attempt either section C or section B for electronics background,it is better to attempt
sec B
Section C
an lead compensator zero is at Z=Zc, pole is at P=Pc then the following is correct
a. Pc > Zc, pc< 0, zc< 0
b.
c.
gain margin of g(s)h(s)=1/s(s+k);
a. sqrt(1+k2)
b. 0
c. infinity
d. 1
machestor code does not improves
a. clock recovery
b. bandwidth efficiency
c.
possion distribution is used for
a. used in FSM
b.
c.used for queuing delay system of mutually identical events of arrival
d. both a and c
no.of filpflops for mod 11 counter
a. four
b. five
c.
no.of filpflops for mod 11 counter
a. four
b. five
c.
if even parity is used for parity generation, what is the hamming distance (simple fig is given) ans:2
the code set is {00000,00111,11100,11011} what is the error detecting and correcting capability?
ans:2,1
operational amp characteristics following is correct:
1. input impedance is 0
2. output impedance is infinity
3. input impedance is infinity
4. gain is infinity which combinations are correc
band pass signal having frequencies 2.5k and 4.5k?give the sampling freq
a. 9k
b. 4k
c. 4.5k
d. 7k
definition of avalanche diode multiplication
more no of ripples are present in the diagram?which is correct
a. lower order filter
b. high order filter
c.
If CPU have one interrupt pin and on to connect with external devices with some priority? which type of the following is used?
a. parallel priority interrupt
b. daisy chain
c. RS filpflop
d.
one megabit file transfer, serially on 9600 baud one start bit and two stop bits, then how much time it takes (approx)
a. 4 hours
b. 2 hours
c. 20 minutes
d. 2 minute
IEEE 802.5 is ans: TOKEN RING
Code sequence is given what is the error correcting distance
bit stuffing used in HDLC Protocol for ans: b is correct(read on text book)
Section A AND B (Both are mixed )
If "AaBbCc" is passed to the char
char x(*a)
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
} what will be the output?
f(*p)
{
p=(char *)malloc(6);
p="hello";
return;
}
main()
{
char *p="bye";
f(p);
printf("%s",p);
}
what is the o/p? ans:bye
when the program counter is incremented in the instruction cycle
a. fetch cycle
b. int cycle
c. execuation cycle
d.
two sorted lists of n elements will take at least fine the order of complexity?
a. 2n
b. n/2
c. square(n)
logic diagram is given? find the expression ans: OR gate
question on JAVA string ans: string ends without a null character
cache access time is 100ns. main memory access time is 1000ns, hit ratio is .9, find mean access time?
ans :200ns
which is not suitable to find out IP address ans:ARP
about deadlock condition
convert 41.6875 into binary
read about IP AND IPX
read about NFS
DHCP is
a. for routing
b. for network address conversion
c. for diagnosis
d.
execution phase can be
a. pipelined
b. no parallelism is possible
c. vector processing
d.
In public key algorithm , A wants to send message to B ..... which key is used
a. A public key
b. A private key
c. B public key
d. B private key
to prevent replay attacks in transmission
a. symmetric encoding
b. Asymmetric encoding
c. for every exchange, key should be changed
irtual functionality is used in C++
a. dynamic binding
b. if the derived func is present but base class not present
c.
if there are n nodes in a binary tree, how many null pointers are there ans:n+1;
if heap sort contains n elements, no of comparsions required are
a. log(n)
b. height of heap sort
c.
d.
question on ICV(integrity check)
which of the following is efficient in terms of space
a. insertion sort
b. quick sort
c. selection
d. both a and c
in 32 bit representation, the range of numbers in 2,s complement form
ans :-2 to the power of 31 to 2 to the power of 31 minus 1
about normalization
socket is implemented in TCP Layer. which of the following is related to TCP layer
ans: port number
in reentrant procedure, which should be not used for passing parameters?
a. passed by reg
b. by direct
c. by indirect
d. by stack
flow control is used for
a. congestion at receiver
b.
c.
d.
flow control is used for a. congestion at receiver
b.
c.
d.
5 questions on DBMS are there
in global static variable , declartion in a file
a. localization of scope
b. persistance of the value through out the file
c.
d.
in sorted table contains elements , which of the searching is false
a. hash table
b. binary searching
in demand paging overhead of context switching is more due to
a. copy processes from disk to memory
b. viceversa
c. to get associative table
d. swapping to the disk
when write through is better than write back(related to cache memory)
which is false when normalization is used?can,t express
I :verification: are we doing right product
II: validation:are we doing product right
a. i and ii are true
b. i and ii are false
c. i true and ii false
d. i false and ii true
A table contains less than 10 elements which one is fastest
a. bubble sort
b. selection sort
c. quick sort
about subroutine, precondition is false. what about post condition
a. post condition is not defined
b. post condition is always true
c.
d.
When static variables are used, which one of the following is not possible?
a. dynamic run time
b.
c.
in product of x and y,
if(x=0|y=0)
y=1;
else
y=0;
(not cleared)
what is cyclometric complexity?
a. 3
b. 2
c. 1
d. 0
CREATE TABLE NEW AS SELECT BIG FROM EMP
The above SQL statement is correct or not?
(question is not cleared)
path testing is
a. white box
b. black box
c. installation test
d. environment test
program is given?
above algorithm represents what type of search?
a. binary search
b. interpolation search
c. sequential search
d. (may be "b" is correct);
if x->y in a relation R, x1 and x2 are in x, y1 and y2 are in y (question not cleared), about functional dependancy
a.x1=x2 and y1=y2
b.
c.
in a down loading from website ,which one is correct? ans: check the byte code and indicate the error, if any.
about UDP one Address is given but that is not the state table what will it do the packet
a. packet is discarded
b. packet is sent to ethernet server
c. packet is sent to other address
d.
in associated memory for fast accessing which one is used
a. single linked list
b. double "
c. hash table
d.
Hughes Placement Paper : Whole Testpaper
HUGHES Sample Questions
What is max. no. of hops in hypercube n/w with n (=2 ^ p) to go from one node to another ?
a. p
b. log p
c. n ^ 2
What is Kerberos ? ans. Authentication Protocol.
In completely connected multiprocessor system with n processors , links will be of the order of
a. O(n ^ 2)
b. O(2 ^ n)
c. O(n/2)
When quick sort gives worst performance ? ans. When elements are in order
o/p of each sorting step of 8 elements was given and had to recognise which sorting algo.?
Ans. Bubble sort (Not Sure , Check it out )
In worst case ,which sort is best out of following sorts?
a. heap
b. selection
c. quick (ans.)
d. insertion
hree very simple gate circuits each having inputs A,B,C,D were given and had to tell ,which two give same result ? (DeMorgan,s Law was used in solving ) Ans was (a) &(c) (o/p of a & c was coming to be AB +CD)
K-map given,had to tell simplified function Ans was perhaps AB+AD +AC+BCD
K-Map was CD`
AB 0 0 0 0
0 0 1 0
1 1 1 1
0 1 1 1
What is Function Point ? Ans. S/W estimation technique
p points to an integer. We don,t want p to change value. In C, what declarations will we use?
A const int *p
b. int *p
c. int const *p
e. int* const p (perhaps ans.)
Diff between 2NF &3NF ? Ans. D (last option)
Which does not use client server model ?
a. Email
b. Web access
c. C. Telephone call
d. N/w file system
In a pipeline having 3 stages, each having reliability of 0.9 ,what is overall reliability of pipeline?
a. 0.9
b. 0.729
c. 0.81
2level cacheis there first level cache,s access time is 100ns,second level cache,s access time is 33ns & memory access time is 1000 ns . What is total memory access time ? ans. 140 ns
In public key cryptography,Awillsend message to B ans. Using B,s public key
What does projection of a relation give? Ans.gives vertical partition of relation corresponding to specified columns.
For disk or direct access storage, which is best ?
a. AVL
b. B-tree
c. Red tape .
There is a tree with inorder threading Node B is inserted as left child of nade A. Node A already has right child . Where will the null ptr of B point ? ans. Parent of A (perhaps)
There is a diskless workstation. Which will be the first protocol it will use ?
a FTP
b. ARP
c. HTTP
d. RARP
Compiler keeps which of following ? ans. Symbol table
ping, command uses which protocol ? ans. ICMP
Merge sort uses which technique? Ans. Divide and Conquer
Program counter is incremented in
a. fetch (ans)
b. decode
c. execute
what does the following program do ?
f(int n)
{
int c;
while(n)
{
n&=n-1;
c++;
}
print c;
}
ans. Program prints the no. of set bits in no.
-What is this called (char *) (*(*(*A[X]) ( ) )) ( )
ans. Array of X pointers to a function returning pointer to functions that are returning pointer to char (not sure )
For synchronisation in distributed computing, what should not be there ?
a. all machines are synchronised by a global clock
b. all systems should have their own clock (perhaps ans)
Java applet of a moving /waving file is running on one machine then it means
a. Java,s executable code is downloaded and running on the m/c
b. A virtual X server is running on that m/c while the actual program is running on the web server.
What is in RSA algo. ?
a. First the session key is encrypted & then whole message is encrypted using RSA Algo.
b. Message is encrypted using RsA algo.
c. First Rsa algo is used &then encrypted with the session key.
-What is dirty read?
a. Transaction reexecutes and gives diff. Results from the original execution
b. Read is done when the transaction is not yet committed
-What is coupling ?
a. It tells the strength of interconnection between two program units.
b. It tells the strength of interconnection between twtrength of interconnection between two program units.
Any n/w on the computer can have only
a. one domain &one IP
b. more than one domain & more than one Ip
c. one domain and more than one IP
d. more than one domain & one IP
Which one does not have file descriptor ?
a. process
b. keyboard
c. pipe
d. socket
What does CONNECT BY means
a. connect to a different databaser for retreival
b. arrange in tree ordered structure
n two phase commit protocol, why log is used during transmission &reception ?
a. To retrieve the status in case of crash
n which algo. Waiting time is minimun?
Ans, SJF
How many address bits are there in Ipv6
ans. 128 bits
During run time heap is managed by
a. a user process in kernel mode
b. A system process manages heap for all the processes
c. A system process for each process
d. A user process in user mode
In which of following search is efficient?
a. height balanced tree
b. Weight balanced tree
c. Binary tree
A ques. on resource relocation, sharing ( I don,t remember more than this regarding this ques.)
some ques. options were sth like
a. transparency control
b. Migration control
c. Concurrency control
X:In DFD, input is converted into output by passing through various functional units Y:DFD cannot be used in object oriented design
a. both X& y are correct
b. both X & Y are incorrect
c. X correct, Y incorrect
d. Xincorrect, Y correct
Where regression testing is used ?
a. Dynamic analysers
b. Loaders
For Java interfaces , what is true ?
a. Functions declarations are not given,
b. Variables are not declared
c. Instance variables are not used
n a linked list, we can delete a node in order of
a. 1
b. n
c. n ^ 2
f there are N people and we have to do symmetric & asymmetric cryptography, how many keys would
be used in these cases respectively?
a. N & N ^ 2 (probably ans)
b. N ^ 2 & N
c. N & N
d. N ^ 2 & N ^2
The protected element of a class can,t be accessed by
a. member functions of the same class
b. member functions of the derived class
c. member functions of any other class in the same program (Ans.)
NFS uses same file structure as unix
To solve an expression which of following trees will you use ?
a. postfix
b. infix
Technical
void x(char* a)
{
(a[0])?x(a+1):1;
printf("%c",*(a+0));
return 1;
........;
}
Input string ,a, is assigned as AaBbCc , what is the output?
Ans.-cCbBaA
A question on digital gates ANS is OR gate.
What is the binary representation of 41.6785
If the precondition for a subroutine does not hold then
1. postcondition does not hold
2. postcondition may or may not hold
3 . ?
4. ?
In java
1. java strings are mutable. And some other options on java strings
Void f(char *p)
{
p = (char*)malloc(6);
strcpy(p,"hello");
}
void main( )
{
char *p = "BYE";
f(p);
printf("%s",p);
}
ANS BYE
A question on write through and write back algo.
What is concerned with transport layer. Ans PORT.
A server can work with ip and ipx protocol.how the server will determine to which protocol the incoming packet coresponds .
For which purpose dhcp is used ANS ip address
global vaariable defined as ststic will serve the purpose of ---
Question on NFS ANS It uses the same semantics as unix for file system
Program counter is incremented typically in which uses ANS fetch
NO of NULL pointers in a tree with n leaf nodes ANS N+1
thread take less time than process context Why? Ans. Address space is same.
Which algo is best for sorting 10 elements? Ans. 1> binary tree 2> selection 3> bubble 4> none
question on ICV(networking)
a) When A sends an ICV and message, B computes ICV , checks It with given ICV,and decodes Message
b) Similar other
8 When server A sends a time request to server B, (time synchronization), and response becomes past, What does A do?
a) resets its own clock
b) resends time request again
9 in public key encryption what does A do such that It is not visible to others?
a) A uses public key part of A
b) A uses private key part of A
c) A uses public key part of B
d) A uses private key part of B
function dependency can be described as:
on findind cyclometric complexity of the given program 1> 7 2>5 3> 4 4> 0
Codd,s rule related to database
path testing comes under
A) white box
B) black box
when an ip address is not in the computer adresss resolution file what does It do with that packet
a) Ignores It
c) sends It to default gateway
d) sends It to ethernet server
Execution divided in different stages then this is called ANS. Pipelining
In C the macros are ANS. converted in to inline code during preprocessing
X: verification means doing the right things
Y: validation means doing things right
a. both true
b. both false
c. one true one correct
void insert (key, r) Keytype key, data
{
if (n>=max)
ERROR
Else
R[n++].key=k;
Which is best? 1. sequential search
which is best for associative list searching?
1) single linked list
2) doubly linked list
3) hash table
A question based on SQL ?
which is not necessary condition for deadlock?
1. mutual exclusion
2. no preemption
3. is ANS.
4. Circular wait
Hughes Placement Paper : General - other - 1 January 2003
a processor has two level cache.Their access time (level1 and level2) is 100ns and 300ns respect.Memeory access time is 1000ns$ ans is 140 (b)
diskless server uses
a rarp
b arp
c ftp
d.telnet
ans rarp
which one of them is not a client server
e-mail
telephone
webserver
and one more
ans is e-mail or telephone.
Which one is used to represent operations
infix
postfix
binarytree
and one more
ans binary tree
one qustion was on private key and public key.The quest. was
f a wants to send a message to b that no one other that b should $
A private key
A public key
B private key
B public key
6.compliers maintain
ans is symbol table From Diwaka
what a java interface not have ?
ans - instance variables
what is done with java code on a web-page
ans - downloaded and executed on ur pc
what is the order of deleting a node from a linked list given a ptr
to it
ans O(n) ( since u have to traverse the list to reach the prev.
node)
what is RSA
how can A send a messageto B so that B knows its from A
ans A uses his private key so that B can use A,s public key
what is the best sort in worst case
ans heap sort
what can access protected memebers of a class
ans other classes of that program
what protocol is used by a machine to map an ip to hardware address
ans arp
hat is the size of ipv6
ans 128 bits
how many keys are needed in symmetric and asymmetric crptography?
ans - i dont know
how many keys are needed in symmetric and asymmetric crptography?
ans - i dont know
one on a right threaded tree
very easy k-map
ans i think its b)
very easy ckt
ans choice which has option : a&c are equivalent
what in unix doesnt have a fd
ans process ( this was the first ques ).
Hughes Placement Paper : General - other
What are the 7 layers in ISO-OSI layer, describe each layer
Can I remove Session Layer from ISO_OSI model..?
Can I remove Session Layer from ISO_OSI model..?
Hem: I said yes.., because there is no session layer in TCP/IP still it satisfies our requirements
why data link layer protocol, what are main functions of it..?
I am sending data from machine A to machine C, in between there is an intermediate machine B, then how
machine B will know that it is not intended for it…
a) In which layer of machine B determines that the data is not for it..?
b)The sending data is divided into packets, does machine B tests all the packets of that data
c) then what about of other layers…?
Even data link layer will process both data frames and acknowledge frames, so there is also data checking ..?
In networks layer every packet has its routing information and destination address so is it necessary by machine B to process it..?
Machine A is using both Telnet and Ftp protocols in its application layer and is sending information to machine B’s application layer, then how machine B determines which bits are related to which protocol…? There is only one single communication channel and both protocols are used simultaneously
Q) I am using Internet Protocol version 4 (IPv4), but I am receiving data from a machine which is using IPv6, then
how will the data transformation will takes place and where will it takes place. Does machine B discards the packet
as it doesn’t know about IPv6
What do u mean by switched virtual circuit and permanent virtual circuit
Do u know about circuit switching…? What r the basic elements
Q. What switches will do in communication..?Hem: this will establish path for data transmission
Q) In which layer switches will come..?Hem: in network layer
Q) If switches will establish path for data transmission what is the necessity of routers. Do they are similar
I am sending data from one data link layer to another data link layer, how will u come to know whether there is error in data transmission..? explain some methods to find that..?
Tell about 1’s and 2’s complement..Both will perform bitwise operations then what is the difference betweenthem..?When will you go for 1’s complement, when will you go for 2’s complement..? Give one real time example for those two..?
Give some real time example for TCP and UDP protocols…
What is difference between #include in C++ and import statement in Java..?
What is difference between #include in C++ and import statement in Java..?
What is the difference between the following two statements..
What are register variables in C, why those are needed..?
I declared 10 register variables, but I have only 6 registers what will happen..?
What is virtual function, why we need it..?
What is virtual destructor.. Where will you use..?
What is a process..?
Q. At any time only one process is in execution, so do u mean that there is no multi programmed operating systems..? if the program under execution is the process, then why there are scheduling algorithms…Scheduling algorithms are there in OS, so there may be more that one process in memory, does it mean CPU will execute more than one process at a time.
Explain about memory management functions performed by OS
Can I have a OS without secondary memory
does it allocate, memory to a process where there is free memory..?
Will OS always follows one of these algorithms..?
How OS comes to know which locations are free and which are allocated..?
what is meant by fragmentation..?
How will you remove fragments..?
What is meant by compaction..?
Is there any relation between compaction and paging…?
What is paged segmentation and segmented paging..? Differentiate between them..?
VX works is selling under the name of real time OS, but windows is not selling under name of real time OS, where is the difference..?
There are three OS’s namely Unix, VXworks and some X. They will execute one job in 10ms, 8 ms and 1ms respectively. Can u say the OS X is real time OS, if yes why..?, if no why..?
Which scheduling algorithm is used for real time operating system..?
What is meant by deadlock..?
How will u avoid deadlocks..? what r those four conditions to test..?
How will u avoid deadlocks..? what r those four conditions to test..?
A lower process is allocated 2 resources, higher process came for execution and it needs totally 4 resources and presently 2 are allocated.. what will happen..?
What will happen when context switch takes place… what are the OS activities in context switch.
When a low priority process executes its instructions, high priority process comes what will happen..?
Hem: low priority process is preempted and high priority gets the CPU. After completion of execution of higher priority process low priority process will get the cpu.
Q. How OS will know where to start the execution
When Page fault occurs, what are actions taken by cpu at that time, if there is no memory for page swapping what will happen, is it need to remove the page from memory..?The page to be removed from memory now, is bring from hard disk initially, so is it needed to put back into hard disk once again. If yes why..?
Hughes Placement Paper : General - other - 21 March 2004
Given a digital ckt with nand gates. what is o/p Ans. nor gate
Given an logical expr. x,y,z. simplify ans. xz
It is recommended to use which type of variables in a recursive module. Ans. static variables.
which one of following is not memory management model?given buddy system, monitors, paging, swapping Ans. monitors
What m/c is used to recognize context free grammar ? Ans. pushdown automata
Which type of grammar can be recognized by finite state m/c Ans. right linear grammar.
proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the o/p Ans. 11
int arr[] = {1,2,3,4}
int *ptr=arr;
*(arr+3) = *++ptr + *ptr++;
Final contents of arr[] Ans. {1,2,3,4}
CSMA/Cd is used in which lan Ans. ethernet
8085 pgm : LXI sp, 2021,
LXI b, 1234 (??)
push b
contents of stack after pushing ?
One question on synchronous transmission : ans. Timing info is embedded in data itself
What for start bit is used in RS232 transmission.
One solution for deadlock prevention for dining philosopher,s problem
Ans. Allow one person to take first left stick and then right stick and remaining persons in reverse order.
4bit seq no in sliding window protocol with selective repeat.what is the max no. of acks that can be held at transmitter ans. 8
given a height balanced tree. If we add one more node , how
many nodes gets unbalanced ? Ans. 3
Given a arbitrary pointer to an element in a singly linked list?
what is the time complexity for its deletion . Ans. O(n)
what is the diff b/n c and c++
a. dynamic scoping
b. nested switching
c. declaration of variables in any code block
d. separation of compilation and linking
Ans. c (??)
which one is false ?
a. 0<x<y, n power x = O(n power y)
b. root of log(n) = O(log logn)
c. O(logn/100) = O(100 logn)
d. 2n not = O(n power k);
Ans. b or a. (??
S->S+S; s->s*s; s->a how many parse trees possible : a+a*a+a Ans. 5
4-1 demultiplexer is to be implemented using a memory chip. how many address lines and word length required Ans. 4, 1
Vector intr mechanism. in 8085. Ans. fixed locations in memory when an intr comes.
ARP is used for : Ans. IP to MAC addr conversion.
given 100 to 999 nos. Probability of picking a no. with out digit 7. Ans. 18/25.
Ten film rolls. 3 defective, prob. of picking up 2 defective rolls with out replacement Ans. 6/90
Ten film rolls. 3 defective, prob. of picking up 2 defective rolls with out replacement Ans. 6/90
Given adjacency matrix for a directed graph with n vertices and e edges. How much time will it take to find out indegree of a vertex Ans. O(n)
No. of nodes of degree 2 in a binary tree with n leaf nodes. Ans. n-1
Hughes Placement Paper : General - other - 1 January 2004
Technical
CSMA/Cd protocol used in Ans : Ethernet
Checksum in IP packet is Ans : Sum of the bits and 9,s complement of sum
Inselective repeat Max Seq is given find windowsize Ans : (15+1)/2 = 8
Main memory cache direct mapping Ans : 64
Address lines and data lines for 4K x 16 Ans : Addr 12, Data 16
Infix to postsize commession uses Ans : operator stack
Printing ofstatic variable Ans : 11
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 mystique in writing the program. Check it out.
Answer is correct
One Question on Scheduling Preemptive
Which of the following is not memory model (1) buddy system (2) monitor (3) virtual ... etc.
Hight balancing AVC time Ans : 3
Virtual to physical address mapping page table given
regular expression of identifier L(LUD)*
Simplification in boolean Algebra Ans : xz
Logical gate is given we have to find what is that Ans : NOR
Solution for Diriving philofphing Ans : d
The feature C++ have and c donot have Ans : Variables can be declared inside also.
Number of nodes with degree two in a binary tree of n leaves Ans : n-1
Solution for Diriving philofphing Ans : d
The question on RS232 (Use of sfart bit in Rs 232 protocal)
Floating point representation Ans : 2,s complement