** Company: ** Hughes Software systems

1.Given a digital ckt with nand gates. what is o/p Ans. nor gate

2.Given an logical expr. x,y,z. simplify ans. xz

3.It is recommended to use which type of variables in a recursive module. Ans. static variables.

4.which one of following is not memory management model?given buddy system, monitors, paging, swapping Ans. monitors

5.What m/c is used to recognize context free grammar ? Ans. pushdown automata

6.Which type of grammar can be recognized by finite state m/c Ans. right linear grammar.

7.proc() {

static i=10;

printf(“%d”,i);

}

If this proc() is called second time, what is the o/p Ans. 11

8.int arr[] = {1,2,3,4}

int *ptr=arr;

*(arr+3) = *++ptr + *ptr++;

Final contents of arr[] Ans. {1,2,3,4}

9.CSMA/Cd is used in which lan Ans. ethernet

10.8085 pgm : LXI sp, 2021,

LXI b, 1234 (??)

push b

contents of stack after pushing ?

11.One question on synchronous transmission : ans. Timing info is embedded in data itself

12.What for start bit is used in RS232 transmission.

13.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.

14.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

15.given a height balanced tree. If we add one more node , how

many nodes gets unbalanced ? Ans. 3

16.Given a arbitrary pointer to an element in a singly linked list?

what is the time complexity for its deletion . Ans. O(n)

17.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 (??)

18.which one is false ?

a. 0<x<y, n=”” power=”” x=”O(n” y)=”” b.=”” root=”” of=”” log(n)=”O(log” logn)=”” c.=”” o(logn=”” 100)=”O(100″ d.=”” 2n=”” not=”O(n” k);=”” ans.=”” b=”” or=”” a.=”” (??=””

19.=”” s-=””>S+S; s->s*s; s->a how many parse trees possible : a+a*a+a

Ans. 5

20.</x<y,> 4-1 demultiplexer is to be implemented using a memory chip. how many address lines and word length required

Ans. 4, 1

21.Vector intr mechanism. in 8085.

Ans. fixed locations in memory when an intr comes.

22.ARP is used for :

Ans. IP to MAC addr conversion.

23.given 100 to 999 nos. Probability of picking a no. with out digit 7.

Ans. 18/25.

24.Ten film rolls. 3 defective, prob. of picking up 2 defective rolls with out replacement

Ans. 6/90

25.Ten film rolls. 3 defective, prob. of picking up 2 defective rolls with out replacement

Ans. 6/90

26.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)

27.No. of nodes of degree 2 in a binary tree with n leaf nodes.

Ans. n-1

**Read More**