Test 5
Test 5
Directions for questions 1 to 35: Select the correct alterna-    6. Perform the following operation in 2’s complement
tive from the given choices.                                        signed representation, and specify the result in 2’s com-
  1. The output of the following circuit is:                        plement signed notation.
                                                                                  (–13)10 + (–28)10 = ?
                                                                    (A) 10101001                 (B) 11010111
              A                                                     (C) 11010110                 (D) 00101001
              B
                                                                 7. Convert the following number to base 9.
                                                                                    (1101222.201121)3
                                                                    (A) 1358.647                (B) 4172.647
              C                                                     (C) 4178.153                (D) 1358.153
                                                                 8. Which of the following is usually regarded as a bottle-
                                                                    neck to von-Neumann computer Architecture?
    (A) AB + BC                   (B) AB + BC + AC                  (A) ALU
    (C) A + B + C                 (D) AB + BC                       (B) Instruction set
 2. Match the following:                                            (C) Processor/memory interface
    List I (Numbers in Decimal)                                     (D) Control unit
    List II (equivalents in signed 2’s complement represen-      9. Which of the following is the largest storage unit in a
    tation)                                                         usual memory hierarchy?
                  List-I         List-II                            (A) Cache memory            (B) Main memory
          P.      – 43      1.   01100000                           (C) Register                (D) Hard disk
          Q.      – 78      2.   00110110                       10. Which type of cache miss does not occur in fully-Asso-
          R.      + 54      3.   111010101                          ciative cache memory?
          S.      + 96      4.   10110010                           (A) Capacity miss          (B) Conflict miss
                                                                    (C) Compulsory miss        (D) Cold start miss
    (A) P–3, Q–4, R–1, S–2
    (B) P–4, Q–3, R–1, S–2                                      11. Which of the following statement is FALSE?
    (C) P–3, Q–4, R–2, S–1                                          (A) Pipelining does not improve the execution time of
    (D) P–4, Q–3, R–1, S–2                                              a single task.
                                                                    (B) Pipelining improves the throughput of the total
 3. Which one of the following function will satisfy the
                                                                        work load.
    property, “Dual of function = complement of the
                                                                    (C) Pipeline speed is limited by the slowest pipeline
    function”?
                                                                        stage.
    (A) f (A, B, C) = Sm (0, 1, 2, 3)
                                                                    (D) In pipelining, only one task is processed at a
    (B) f (A, B, C) = Sm (4, 5, 6, 7)
                                                                        time.
    (C) f (A, B, C) = Sm (0, 2, 4, 6)
    (D) f (A, B, C) = Sm (0, 1, 6, 7)                           12. What is the execution time per stage of a pipeline that
                                                                    has 4 equal stages and a mean overhead of 12 cycles?
 4. The number of min terms for the function
                                                                    (A) 3 cycles                (B) 4 cycles
    F(a, b, c, d, e) = b + cd is:
    (A) 24                        (B) 20                            (C) 6 cycles                (D) 12 cycles
    (C) 32                        (D) 16                        13. How many bits are needed to represent a direct address
 5. Which of the following will work like an inverter?              on a 64-bit machine?
                                                                    (A) 6-bits                 (B) 64-bits
          A                                0
    (P)                            (Q)                              (C) 32-bits                (D) 264-bits
          1                                A
                                                                14. A program has 5% divide instructions. Any non-divide
                                                                    instruction takes one cycle. All divide instructions take
          0                                1
    (R)                            (S)                              25 cycles. What percent of CPU time is spent just doing
          A                                A
                                                                    divides?
    (A) P, Q                       (B) Q, R                         (A) 100%                      (B) 95%
    (C) R, S                       (D) P, S                         (C) 56.82%                    (D) 28.41%
3.44 | Computer Organization and Architecture Test 5
24. A combinational circuit has 3 inputs A, B, C, and 3 out-       30. Consider a main memory system that consists of Eight
    puts X, Y, Z. And the functions f (A, B, C) and g (A, B, C)         memory modules attached to the system bus, which is
    are generated from the combinational logic circuit as               one word wide. When a write request is made the bus
    shown here with NAND, AND gates. Find the least                     in occupied for 100 ns by the data, address and control
    possible minterm expression for Y (A, B, C).                        signals. During the same 100 ns and for 500 ns thereaf-
    f (A, B, C) = Sm (1, 3, 4, 5, 7)                                    ter, the addressed memory module executes one cycle
    g (A, B, C) = Sm (4, 6)                                             accepting and storing the data. The internal operation
    Y (A, B, C) = Sm (?)                                                of different memory modules may overlap in time, but
                                                                        only one request can be on the bus at any time. What is
                                                  f(A, B, C)            the maximum number of stores that can be initiated in
                 A         X                                            one second?
                                                                        (A) 109                       (B) 107
                                                                                 5
                 B         Y                                            (C) 10                        (D) 102
                                                                   31. Suppose a bus protocol requires 15 ns for devices to
                 C         Z                                            make requests, 15 ns for arbitration and 20 ns to com-
                                                 g(A, B, C)             plete each operation. How many operations can be
                                                                        completed per second?
                                                                        (A) 107                       (B) 2 × 107
    (A) Sm (0, 2, 3, 6, 7)         (B) Sm (1, 3, 4, 5, 7)               (C) 5 × 10   7
                                                                                                      (D) 50
    (C) Sm (0, 2, 4, 6)            (D) Sm (0, 2, 4)                32. A computer truncates the significant to four decimal
25. From the above data, for which input A, B, C.                       places and gives the results in normalized form. What
    The outputs all X, Y, Z will become 111 (i.e., XYZ = 1)             is the resultant of (0.2233 × 102) + (0.6688 × 101)?
    (A) 010                       (B) 101                               (A) 0.2901 × 102              (B) 2.9018 × 101
    (C) 100                       (D) 110                               (C) 0.2902 × 10    2
                                                                                                      (D) 29.018
26. What is the speed up of the pipeline, which is executing       33. For each of the following cases, specify whether SRAM
    10 tasks. Consider the mean overhead of the pipeline as             or DRAM would be more appropriate building block
    5 and an execution time per stage as 1 cycle.                       for the memory system?
    (A) 4.5                       (B) 4                                   (i) A memory system where performance is the most
    (C) 3                         (D) 5                                       important goal.
                                                                        (ii) A memory system where cost is the most impor-
27. Consider a 32-bit computer that has an on-chip                            tant goal.
    16 Kbyte four-way set-associative cache. Assume that                (A) SRAM, SRAM
    the cache has a line size of four 32-bit words. Then                (B) SRAM, DRAM
    what will be Tag, Set and Word fields respectively:                 (C) DRAM, SRAM
    (A) 18, 8, 6                (B) 18, 10, 4                           (D) DRAM, DRAM
    (C) 20, 8, 4                (D) 20, 10, 2
                                                                   Linked answer questions 34 and 35:
28. Consider a memory of 64 blocks (labelled 0 through             Consider an unpipelined processor. Assume that it has 1 ns
    63) and a cache of 8 lines (labelled 0 through 7). Using       clock cycle and it uses 3 cycles for ALU operations, 5 cycles
    direct mapping, which of the following blocks of mem-          for branch instructions and 4 cycles for memory operations.
    ory contend for line 2 of the cache?                           Assume that the relative frequencies of these operations are
      (i) Block 10                (ii) Block 15                    80%, 10% and 10% respectively. Suppose that due to clock
    (iii) Block 20                (iv) Block 55                    skew and set up, pipelining the processor adds 0.1 ns of
     (v) Block 42                 (vi) Block 63                    overhead to the clock.
    (A) (i), (iii), (v) only      (B) (i), (v) only                34. What is the average instruction execution time on a
    (C) (i), (ii), (iv) only      (D) All the six                       pipelined processor?
29. Convert the decimal number –30.375 to IEEE 754                      (A) 4.3 ns                    (B) 4.4 ns
    Floating-point format. Which of the following cor-                  (C) 1.1 ns                    (D) 1 ns
    rectly specifies the hexa-decimal equivalent of con-           35. By ignoring latency impact, what is the speedup gain in
    verted number?                                                      the instruction execution rate using pipeline?
    (A) C1F30000                (B) 82830000                            (A) 4.3                       (B) 3.9
    (C) 02830000                (D) 41F30000                            (C) 1.1                       (D) 1
3.46 | Computer Organization and Architecture Test 5
                                                     Answer Keys
 1.   C        2.   C     3.   D       4.   B       5.   A       6. B         7. A         8. C         9. D        10. B
11.   D       12.   B    13.   B      14.   C      15.   B      16. B        17. B        18. B        19. B        20. B
21.   D       22.   C    23.   A      24.   C      25.   D      26. B        27. C        28. B        29. A        30. B
31.   B       32.   A    33.   B      34.   C      35.   B
                      01   1    1   1   1
                                                                                 B1           1                                              1
                      11   1    1   1   1                                                                     0                      0
10 1 1
                                                                                      Clk                     BA
         F=B+D
                                                                                          0                   10
     B
                       =   B                                                              1                   11
     D
                                                                                          2                   00
                                                                                          3                   01
                                                                                          4                   10
    K = Qn Q Qn ( EXNOR of Q, Q ) = 0                                                              11              0       0    0
    When J = 1, K = 0, next clock pulse will give
                                                                                                   10                      0    0
    Q = 1, Q = 0                                    Choice (B)
20. Given circuit is an Asynchronous counter, as clock is                  So F = ( A + C )( B + C + D )( A + B + D )                    Choice (D)
    connected to rising edge.
3.48 | Computer Organization and Architecture Test 5
    One operation requires 50 × 10–9 sec                       The resultant must have four decimal places (by trunca-
    In one second, number of operations completed              tion)
           1                                                   \ Sum is 0.2901 × 102.                        Choice (A)
     =            = 2 × 107.                 Choice (B)
       50 × 10 −9                                          33. For high performance use SRAM and for low cost use
                                                               DRAM.                                         Choice (B)
32. 0.2233 × 102
    +0.6688 × 101                                          34. Average instruction time on a pipelined processor
         ?                                                     = 1 ns + 0.1 ns = 1.1 ns.                     Choice (C)
    __________
    First equate the exponents                             35. Average instruction time on a non-pipelined processor
    0.6688 × 101 = 0.06688 × 102                               = 1 + ((3 × 0.8) + (5 × 0.1) + (4 × 0.1)) = 4.3 ns
    0.22330 × 102                                              Speed up =
                                                                            4.3
                                                                                = 3.9                        Choice (B)
    0.06688 × 102                                                           1.1
    0.29018 × 102