Here are some questions of Hughes software system computer part:-
Q. 1 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
Q2 a question on digital gates ANS is OR gate.
Q3 what is the binary representation of 41.6785
Q4 if the precondition for a subroutine does not hold then
1.postcondition does not hold
2.postcondition may or may not hold
3. ?
4. ?
Q5. In java
1. java strings are mutable. And some other options on java strings
Q6. Void f(char *p)
{
p = (char*)malloc(6);
strcpy(p,"hello");
}
void main( )
{
char *p = "BYE";
f(p);
printf("%s",p);
}
ANS BYE
Q7. A question on write through and write back algo.
Q8. What is concerned with transport layer.
Ans PORT.
Q9. A server can work with ip and ipx protocol.how the server will
determine to which protocol the incoming packet coresponds .
Q10. For which purpose dhcp is used ANS ip address
Q11 global vaariable defined as ststic will serve the purpose of ---
Q12 Question on NFS ANS It uses the same semantics as unix for
file system
Q13. Program counter is incremented typically in which uses ANS fetch
Q14 NO of NULL pointers in a tree with n leaf nodes ANS N+1
Q15.thread take less time than process context Why? Ans. Address space is
same.
Q.16 Which algo is best for sorting 10 elements?
Ans. 1 binary tree 2 selection 3 bubble 4 none
Q.17 a 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
Q.18 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
Q.19 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
Q.20 function dependency can be described as:
Q.21 q. on findind cyclometric complexity of the given program
1 7 25 3 4 4 0
Q.22 Codd's rule related to database
Q.23 path testing comes under
A) white box
B) black box
Q.24 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
Q.25 execution divided in different stages then this is called ANS.
Pipelining
Q.26 in C the macros are
ANS. converted in to inline code during preprocessing
Q.27 X: verification means doing the right things
Y: validation means doing things right
a) both true
b) both false
c) one true one correct
Q.28 void insert (key, r)
Keytype key, data
{
if (n=max)
ERROR
Else
R[n++].key=k;
Which is best?
1 sequential search
Q.29 which is best for associative list searching?
1) single linked list
2) doubly linked list
3) hash table
Q.30 A question based on SQL ?
Q.31 which is not necessary condition for deadlock?
1 mutual exclusion
2 no preemption
3 is ANS.
4 Circular wait
No comments:
Post a Comment