





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























Q1. Flynn's taxonomy classifies architectures by: A) Memory size B) Instruction and data streams C) Clock speed D) Bus width Answer: B Rationale: SISD, SIMD, MISD, MIMD are based on instruction/data streams. Q2. A SIMD machine has: A) One instruction, one data stream B) One instruction, many data streams C) Many instructions, one data stream D) Many instructions, many data streams Answer: B Rationale: SIMD = single instruction, multiple data. Q3. A systolic array is best classified as: A) SISD B) SIMD C) MIMD D) MISD Answer: B Rationale: Systolic arrays are typically SIMD-style with regular data flow. Q4. Speedup is defined as: A) T_parallel / T_serial B) T_serial / T_parallel C) T_serial × T_parallel D) T_serial − T_parallel Answer: B Rationale: Speedup = serial time / parallel time. Q5. Amdahl's Law states that speedup is limited by: A) Number of processors B) Serial fraction C) Clock speed D) Memory size Answer: B Rationale: Serial fraction limits maximum speedup.
Answer: A Rationale: EREW = exclusive read/write. Q12. The cost of a parallel algorithm is: A) Time × processors B) Time / processors C) Time + processors D) Time − processors Answer: A Rationale: Cost = T_p × p. Q13. Work-optimal means: A) Cost matches best serial time B) Cost is minimal C) Cost is maximal D) Cost is zero Answer: A Rationale: Work-optimal = cost ≈ serial time. Q14. Brent's theorem relates: A) Work, span, and processors B) Speedup and efficiency C) Time and cost D) Memory and speed Answer: A Rationale: Brent's theorem: T_p ≤ W/p + S. Q15. The span (critical path length) is: A) Longest dependency chain B) Shortest path C) Total work D) Number of processors Answer: A Rationale: Span = longest chain of dependencies. Q16. A parallel algorithm is scalable if: A) Speedup grows with p B) Speedup is constant C) Speedup decreases D) Speedup is zero Answer: A
Rationale: Scalability = speedup grows with p. Q17. Weak scaling keeps: A) Problem size per processor constant B) Total problem size constant C) Time constant D) Memory constant Answer: A Rationale: Weak scaling = work per processor fixed. Q18. Strong scaling keeps: A) Problem size per processor constant B) Total problem size constant C) Time constant D) Memory constant Answer: B Rationale: Strong scaling = total problem fixed. Q19. A data-parallel algorithm: A) Applies same operation to many data B) Uses different operations C) Is serial D) Uses no data Answer: A Rationale: Data-parallel = same op on many data. Q20. A task-parallel algorithm: A) Applies different operations concurrently B) Same operation C) Serial D) No data Answer: A Rationale: Task-parallel = different tasks concurrently. Q21. The main advantage of SIMD is: A) Simple control B) Complex control C) High flexibility D) Low cost Answer: A Rationale: SIMD has simple control. Q22. The main disadvantage of SIMD is:
Q28. CUDA is: A) A parallel programming platform B) A CPU C) A network D) A cache Answer: A Rationale: CUDA = NVIDIA's parallel platform. Q29. OpenCL is: A) A cross-platform parallel API B) A CPU C) A network D) A cache Answer: A Rationale: OpenCL = open parallel API. Q30. MPI is used for: A) Message passing B) Shared memory C) Cache D) Branch prediction Answer: A Rationale: MPI = Message Passing Interface.
Q31. An array processor consists of: A) Many processing elements (PEs) B) One PE C) No PE D) Only memory Answer: A Rationale: Array processor = many PEs. Q32. A systolic array is characterized by: A) Regular data flow and local communication B) Random communication C) Global communication D) No communication Answer: A Rationale: Systolic = regular, local.
Q33. The main advantage of systolic arrays is: A) High throughput and regularity B) Low cost C) Flexibility D) Random access Answer: A Rationale: Systolic = high throughput. Q34. The main disadvantage of systolic arrays is: A) Specialized to specific algorithms B) High cost C) Low speed D) Random access Answer: A Rationale: Systolic arrays are algorithm-specific. Q35. A systolic array for matrix multiplication uses: A) Broadcast and accumulate B) Random access C) Cache D) Branching Answer: A Rationale: Broadcast + accumulate is standard. Q36. The number of PEs in an n×n systolic matrix multiplier is typically: A) n B) n² C) n³ D) 1 Answer: B Rationale: n² PEs for n×n matrix multiply. Q37. Systolic arrays are often used for: A) Signal processing B) Word processing C) Web browsing D) Email Answer: A Rationale: Signal processing uses systolic arrays. Q38. A 1D systolic array has: A) Linear PE arrangement B) 2D arrangement C) 3D arrangement D) Random arrangement Answer: A Rationale: 1D = linear.
Q45. The main advantage of wavefront over systolic is: A) No global clock B) Higher speed C) Lower cost D) Simplicity Answer: A Rationale: Wavefront = no global clock. Q46. A systolic array for convolution uses: A) Multiply-accumulate B) Add only C) Subtract D) Divide Answer: A Rationale: MAC operations. Q47. The throughput of a systolic array is: A) One result per clock cycle B) One result per 10 cycles C) One result per 100 cycles D) Zero Answer: A Rationale: Systolic = 1 result/cycle. Q48. The latency of a systolic array is: A) Time to first result B) Time to last result C) Throughput D) Cost Answer: A Rationale: Latency = first result time. Q49. The main advantage of a systolic array for matrix multiply is: A) O(n) time B) O(n²) time C) O(n³) time D) O(log n) time Answer: A Rationale: Systolic = O(n) time with n² PEs. Q50. The main advantage of a systolic array for sorting is: A) O(n) time B) O(n²) time C) O(n log n) time D) O(log n) time Answer: A
Rationale: Systolic sorting = O(n) with n PEs. Q51. A systolic array for matrix-vector multiply uses: A) n PEs B) n² PEs C) n³ PEs D) 1 PE Answer: A Rationale: n PEs for n×n by n. Q52. The main advantage of systolic over GPU is: A) Higher efficiency for specific algorithms B) Flexibility C) Cost D) Random access Answer: A Rationale: Systolic is efficient for specific algorithms. Q53. The main disadvantage of systolic over GPU is: A) Less flexible B) Higher cost C) Lower speed D) Random access Answer: A Rationale: Systolic is less flexible. Q54. A systolic array for FIR filtering uses: A) MAC operations B) Add only C) Subtract D) Divide Answer: A Rationale: FIR = MAC. Q55. A systolic array for IIR filtering uses: A) MAC and feedback B) Add only C) Subtract D) Divide Answer: A Rationale: IIR = MAC + feedback. Q56. The main advantage of systolic over ASIC is: A) Programmability B) Cost C) Speed D) Power Answer: A
Rationale: FFT = butterfly. Q63. A systolic array for sorting uses: A) Odd-even transposition B) Random C) Cache D) Branch Answer: A Rationale: Sorting = odd-even. Q64. A systolic array for searching uses: A) Linear scan B) Random C) Cache D) Branch Answer: A Rationale: Search = linear scan. Q65. A systolic array for graph algorithms uses: A) Matrix operations B) Random C) Cache D) Branch Answer: A Rationale: Graph = matrix. Q66. A systolic array for neural networks uses: A) MAC operations B) Random C) Cache D) Branch Answer: A Rationale: NN = MAC. Q67. A systolic array for CNN uses: A) Convolution B) Random C) Cache D) Branch Answer: A Rationale: CNN = convolution. Q68. A systolic array for RNN uses: A) MAC and feedback B) Random C) Cache D) Branch Answer: A
Rationale: RNN = MAC + feedback. Q69. A systolic array for transformer uses: A) Matrix multiply B) Random C) Cache D) Branch Answer: A Rationale: Transformer = matrix multiply. Q70. A systolic array for attention uses: A) Matrix multiply B) Random C) Cache D) Branch Answer: A Rationale: Attention = matrix multiply.
Q71. An interconnection network connects: A) Processors and memory B) Only processors C) Only memory D) Only cache Answer: A Rationale: Network connects PEs and memory. Q72. The main advantage of a bus is: A) Simplicity B) Scalability C) Low latency D) High bandwidth Answer: A Rationale: Bus = simple. Q73. The main disadvantage of a bus is: A) Poor scalability B) Complexity C) High cost D) Low speed Answer: A Rationale: Bus = poor scalability.
Q80. A Clos network is: A) Multistage B) Crossbar C) Bus D) Ring Answer: A Rationale: Clos = multistage. Q81. A mesh network has: A) 2D grid topology B) Ring C) Tree D) Bus Answer: A Rationale: Mesh = 2D grid. Q82. The diameter of an n×n mesh is: A) 2(n−1) B) n C) n² D) log n Answer: A Rationale: Diameter = 2(n−1). Q83. The diameter of an n-cube is: A) n B) 2n C) n² D) log n Answer: A Rationale: n-cube diameter = n. Q84. The diameter of a ring is: A) n/2 B) n C) n² D) log n Answer: A Rationale: Ring diameter = n/2. Q85. The diameter of a tree is: A) 2 log n B) n C) n² D) log n Answer: A Rationale: Tree diameter = 2 log n.
Q86. The bisection width of an n×n mesh is: A) n B) n² C) log n D) 1 Answer: A Rationale: Bisection = n. Q87. The bisection width of an n-cube is: A) n/2 B) n C) n² D) log n Answer: A Rationale: Bisection = n/2. Q88. The bisection width of a ring is: A) 2 B) n C) n² D) log n Answer: A Rationale: Bisection = 2. Q89. The bisection width of a tree is: A) 1 B) n C) n² D) log n Answer: A Rationale: Bisection = 1. Q90. The degree of an n-cube is: A) n B) 2n C) n² D) log n Answer: A Rationale: Degree = n. Q91. The degree of a mesh is: A) 4 (interior) B) 2 C) 8 D) 1 Answer: A Rationale: Interior mesh degree = 4.
Rationale: Shuffle-exchange = multistage. Q98. An omega network is: A) Multistage B) Crossbar C) Bus D) Ring Answer: A Rationale: Omega = multistage. Q99. A delta network is: A) Multistage B) Crossbar C) Bus D) Ring Answer: A Rationale: Delta = multistage. Q100. A banyan network is: A) Multistage B) Crossbar C) Bus D) Ring Answer: A Rationale: Banyan = multistage. Q101. Routing in a mesh typically uses: A) XY routing B) Random C) Broadcast D) Flooding Answer: A Rationale: XY routing is common in mesh. Q102. Routing in a hypercube typically uses: A) E-cube routing B) XY routing C) Random D) Flooding Answer: A Rationale: E-cube = hypercube routing. Q103. Deadlock occurs when: A) Packets wait cyclically B) Packets move freely C) No packets D) One packet Answer: A
Rationale: Deadlock = cyclic wait. Q104. Livelock occurs when: A) Packets move but never arrive B) Packets arrive C) No packets D) One packet Answer: A Rationale: Livelock = movement without progress. Q105. Starvation occurs when: A) A packet is forever delayed B) Packet arrives C) No packets D) One packet Answer: A Rationale: Starvation = indefinite delay. Q106. Wormhole routing: A) Splits packet into flits B) Sends whole packet C) No routing D) Broadcast Answer: A Rationale: Wormhole = flit-based. Q107. Store-and-forward routing: A) Sends whole packet B) Sends flits C) No routing D) Broadcast Answer: A Rationale: Store-and-forward = whole packet. Q108. Virtual channels help: A) Avoid deadlock B) Increase latency C) Reduce bandwidth D) Increase cost Answer: A Rationale: Virtual channels avoid deadlock. Q109. Adaptive routing: A) Chooses path dynamically B) Fixed path C) No path D) Broadcast Answer: A