Quiz 01 PDC Solution
Quiz 01 PDC Solution
Lahore Campus
Department of Computer Science
■ Quiz#01
Credit
Course Title: Parallel and Distributed Computing Course Code: CSC334 3(2,1)
Hours:
Course Instructor: Muntha Amjad Program Name: BCS
Semester: Batch: Section: Repeaters Date: 4-3-2025
Time Allowed: 30 minutes Maximum Marks: 15
Student’s Name: Reg. No.
(A) Under which taxonomy level do the following examples fall? (2 marks)
MISD SIMD
For counter = 1 to n
S1 str = arr1[counter] + 1
S2 arr2 = str + 2
(F) Optimize the following code using Index set splitting technique: (3 marks)