Technical Paper

(1/1)

Tanya:
Technical Paper


1. The starting location of an array is 1000. If the array[1..5/...4] is stored in row major order, what is the location of element [4,3]. Each word occupies 4 bytes.

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

3. Explain the term "locality of reference" ?

4. What is the language used for Artificial Intelligence
                    Ans: lisp

5. What is the character set used in JAVA 2.0 ?
                    Ans: Unicode

6.                         char a =0xAA ;
                            int b ;
                            b = (int) a ;
                            b = b >> 4 ;
                            printf("%x",b);
    What is the output of the above program segment ?

7.  struct s1 { struct { struct { int x; } s2 } s3 }y;  How does one access x in the above given structure definition ?

8. Why there is no recursion in Fortran ?
                    Ans.  There is no dynamic allocation.

9. What is the worst case complexity of Quick sort?
                    Ans. O(n2)

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

11. In a sequential search, what is the average number of comparisons it takes to search through n elements ?
                    Ans: (n+1)/2.

12. What is the size of the array declared as double * X[5] ?
                    Ans.  5 * sizeof ( double * )

13. 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 ?
                    Ans : 53124768

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

15.  S -> A0B               A-> BB|0               B-> AA|1
    How many strings of length 5 are possible with the above productions?

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

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

18.  What is the use of ALE in 8085 ?
                    Ans.  To latch the lower byte of the address.

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

20. Context free grammar is useful for which purpose ?

21. 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?

22. 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 ?
                    Ans. 9

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

24. For linked list implementation , which search is not applicable ?
                    Ans: Binary search.

25. Each character is represented by 7 bits, 1 bit is used to represent error bit and another bit for parity. If total number of bits transmitted is 1200 bits, then what is the number of symbols that can be transmitted ?
                    Ans: 133

26. Explain set associatively of cache ?

27. Write the postfix form of the following expression :  A+[[(B+C)+(D+E)*F]/G]

28. What is the function of the linker?

29.                       void f(int y)
                            {
                                struct s *ptr;
                                ptr = malloc (sizeof (struct)+99*sizeof(int));
                            }
                            struct s
                            {
                                int i;
                                float p;
                            };
    when free (ptr) is executed, what will happen?

30. To concatenate two linked lists strings, the order is O(1) is obtained for what kind of list

Navigation

[0] Message Index