Computer Science Interview Questions - Basic Questions

1. What is parity generation ?

2. A nand gate becomes ___ gate when used with negative logic ?

3. What is the advantage of cmos over nmos ?

4. What is the advantage of syncronous circuits over asynchronous circuits ?

5. What is the function of ALE in 8085 ?

6. A voice signal sample is stored as one byte. Frequency range is 16 Hz to 20 Hz. What is the memorysize required to store 4 minutes voice signal?

7. What will the controller do before interrupting CPU?

8. In a normalised floating point representation, mantissa is represented using 24 bits and exponent with 8 bits using signed representation. What is range ?

9. The stack uses which policy out of the following-- LIFO, FIFO, Round Robin or none of these ?

10. Where will be the actual address of the subroutine is placed for vectored interrupts?

11. Give the equivalent Gray code reprasentation of AC2H.

12. What is the memory space required if two unsigned 8 bit numbers are multiplied ?

13. The vector address of RST 7.5 in 8085 processor is _______.

14. Subtract the following hexadecimal numbers--- 8416 - 2A16

15. Add the following BCD numbers--- 1001 and 0100

16. How much time does a serial link of 64 Kbps take to transmit a picture with 540 pixels.

17. Give the output when the input of a D-flip flop is tied to the output through the XOR gate.

18. Simplify the expression AB + A( B + C ) + B ( B + C )

19. Determine the logic gate to implement the foolowing terms--ABC, A+B+C

20. Implement the NOR gate as an inverter.

21. What is the effect of temperature on the Icb in a transistor

22. What is the bit storage capacity of a ROM with a 512*4 organisation?

23. What is the reason of the refresh operation in dynamic RAM's ?

24. Suppose that the D input of a flip flop changes from low to high in the middle of a clock pulse.Describe what happens if the flip flop is a positive edge triggered type?

25. How many flip flops are required to produce a divide by 32 device ?

26. An active HIGH input S-R latch has a 1 on the S input and a 0 on the R input. What state is the latch in?

27. Implement the logic equation Y = C^BA^ + CB^A + CBA with a multiplexer. (where C^ stands for C complement)

28. Equivalent Gray code reprasentation of AC2H.

29. What does a PLL consist of ?

30. In a tertiary tree, which has three childs for every node, if the number of internal nodes are N, then the total number of leaf nodes are

31. Explain the term locality of reference" ?"

32. What is the language used for Artificial Intelligence

33. What is the character set used in JAVA 2.0 ?

char a =0xAA ;

int b ;

b = (int) a ;

b = b >> 4 ;

printf("%x",b);

What is the output of the above program segment ?

34. struct s1 { struct { struct { int x; } s2 } s3 }y;

How does one access x in the above given structure definition ?

35. Why there is no recursion in Fortran ?

36. What is the worst case complexity of Quick sort?

37. What will be sequence of operating system activities when an interrupt occurs ?

38. In a sequential search, what is the average number of comparisons it takes to search through n elements ?

38. What is the size of the array declared as double * X[5] ?

39. A binary search tree with node information as 1,2,3,4,5,6,7,8 is given. Write the result obtained on preorder traversal of the binary search tree ?

40. If size of the physical memory is 232-1, then what is the size of the virtual memory ?

41. S -> A0B

A-> BB|0

B-> AA|1

How many strings of length 5 are possible with the above productions?

42. (3*4096+15*256+3*16+3). How many 1's are there in the binary representation of the result ?

43. In memory mapped I/O how is I/O is accessed ?

44. What is the use of ALE in 8085 ?

45. If the logical memory of 8 X 1024 is mapped into 32 frames, then the number of bits for the logical address are____ ?

46. Context free grammar is useful for which purpose ?

47. In ternary number representation, numbers are represented as 0,1,-1.(Here -1 is represented as 1 bar.) How is 352/9 represented in ternary number representation?

48. There are processes which take 4,1,8,1 machine cycles respectively. If these are executed in round robin fashion with a time quantum of 1, what is the time it take for process 4 to complete ?

49. The minimum frequency of operation is specified for every processor because......

a)for interfacing slow peripherals

b)dynamic memory refreshing.

c)to make compatible with other processor.

50. For linked list implementation , which search is not applicable ?