CS0051 Sa1 Sa2
CS0051 Sa1 Sa2
com/courses/83484/quizzes/999882
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in
my environment.
General Direction: Answer the following questions by selecting the letter that corresponds to the
correct answer.
Export Questions
Attempt History
Attempt Time Score
1 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 1 0 / 1 pts
Memory
Cache
Question 2 1 / 1 pts
Correct!
It can execute multiple threads simultaneously.
Question 3 1 / 1 pts
2 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Amdahl's Law
Scalability
Speedup
Correct!
Efficiency
Question 4 1 / 1 pts
Procedural programming
Functional programming
Object-oriented programming
Correct!
Event-driven programming
Question 5 1 / 1 pts
3 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Correct!
A thread waits indefinitely for a resource.
Question 6 1 / 1 pts
Correct!
To detect potential deadlock situations and take corrective action.
Question 7 1 / 1 pts
Correct!
It provides a separate memory region for each thread.
4 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 8 1 / 1 pts
Correct!
Question 9 1 / 1 pts
5 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Correct!
To perform the same operation on multiple data elements
simultaneously.
Question 10 1 / 1 pts
Semaphore
Correct!
Read-write lock
Mutex
Barrier
Question 11 0 / 1 pts
6 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Correct Answer A section of code where threads can execute in any order.
You Answered A section of code where only one thread can execute at a time.
Question 12 1 / 1 pts
Correct!
The workload is evenly distributed across multiple processors.
Question 13 1 / 1 pts
Correct!
o allocate resources to different threads.
7 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 14 1 / 1 pts
Correct!
To ensure that only one thread can execute a particular section of code
at a time.
Question 15 1 / 1 pts
8 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Correct!
Increased number of execution units
Question 16 1 / 1 pts
Task
Correct!
Process
Thread
Core
Question 17 1 / 1 pts
9 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Correct!
Lower memory consumption
Increased security
Question 18 1 / 1 pts
Barrier
Correct!
Lock
Semaphore
Monitor
Question 19 1 / 1 pts
Correct!
To overlap the execution of multiple instructions.
10 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 20 1 / 1 pts
Hard disk
Correct!
Cache
Registers
RAM
Question 21 1 / 1 pts
Correct!
Speedup
Amdahl's Law
Scalability
Efficiency
11 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 22 1 / 1 pts
Correct!
Read-write lock
Condition variable
Barrier
Mutex
Question 23 1 / 1 pts
To enable multi-threading.
Correct!
To improve cache performance.
Question 24 1 / 1 pts
12 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
MIMD
Correct!
SIMD
MISD
SISD
Question 25 1 / 1 pts
Condition variable
Barrier
Semaphore
Correct!
Lock
Question 26 1 / 1 pts
13 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Correct!
To allocate processor time to different threads.
Question 27 1 / 1 pts
Correct!
To coordinate the access to shared memory resources.
Question 28 1 / 1 pts
ASIC
Correct!
GPGPU
14 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Quantum computer
FPGA
Question 29 1 / 1 pts
Correct!
Through message passing
Question 30 1 / 1 pts
Correct!
OpenMP
MapReduce
CUDA
15 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 31 1 / 1 pts
True
Correct!
False
Question 32 1 / 1 pts
Threads being blocked altogether and being executed in the sets of 32 threads
are called Unit Blocks.
True
Correct!
False
Question 33 1 / 1 pts
Correct!
True
False
16 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 34 0 / 1 pts
Question 35 0 / 1 pts
Question 36 1 / 1 pts
True
Correct!
False
17 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 37 1 / 1 pts
An SMP system has two or more iden�cal processors which are connected to a
single shared memory o�en through a system bus.
Correct!
True
False
Question 38 1 / 1 pts
Correct!
True
False
Question 39 1 / 1 pts
Correct!
True
False
18 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 40 1 / 1 pts
True
Correct!
False
Question 41 1 / 1 pts
Correct!
True
False
Question 42 1 / 1 pts
What two states do Java threads have in addition to the standard four
thread states? (NEW, RUNNABLE, BLOCKED, TERMINATED)
Correct!
WAITING and TIMED_WAITING
19 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 43 0 / 1 pts
A thread that calls the join method on another thread will enter the new
state until the other thread finishes executing.
You Answered
True
Correct Answer
False
Question 44 1 / 1 pts
When defining a new Java class, the class can implement one other
interface, which is not an advantage of implementing Java's Runnable
interface rather than inheriting from the Thread class and overriding the
run() method.
True
Correct!
False
Question 45 0 / 1 pts
20 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
Question 46 1 / 1 pts
True
Correct!
False
Question 47 1 / 1 pts
True
Correct!
False
Question 48 1 / 1 pts
Correct!
process; threads
21 of 22 6/1/2023, 12:28
[S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999882
thread; processes
Question 49 0 / 1 pts
Question 50 1 / 1 pts
True
Correct!
False
22 of 22 6/1/2023, 12:28
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in my
environment.
General Direction: Answer the following questions by selecting the letter that corresponds to the correct
answer.
Export Questions
Attempt history
Attempt Time Score
https://feucanvas.instructure.com/courses/83484/quizzes/999882 1/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 1 0 / 1 pts
Cache
ou Answered CPU
Memory
Question 2 1 / 1 pts
Question 3 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 2/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Registers
RAM
Hard disk
Correct! Cache
Question 4 1 / 1 pts
Question 5 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 3/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 6 0 / 1 pts
ou Answered Speedup
Scalability
Amdahl's Law
Question 7 1 / 1 pts
Question 8 0 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 4/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Increased security
Question 9 1 / 1 pts
Efficiency
Scalability
Correct! Speedup
Amdahl's Law
Question 10 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 5/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Functional programming
Procedural programming
Object-oriented programming
Question 11 1 / 1 pts
Question 12 0 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 6/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Barrier
Semaphore
Question 13 0 / 1 pts
Question 14 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 7/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 15 1 / 1 pts
Correct!
To ensure that only one thread can execute a particular section of code at
a time.
Question 16 0 / 1 pts
ou Answered A section of code where only one thread can execute at a time.
orrect answer A section of code where threads can execute in any order.
Question 17 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 8/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 18 1 / 1 pts
Correct!
Question 19 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 9/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 20 1 / 1 pts
Question 21 1 / 1 pts
Mutex
Barrier
Semaphore
https://feucanvas.instructure.com/courses/83484/quizzes/999882 10/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 22 1 / 1 pts
Correct! GPGPU
FPGA
Quantum computer
ASIC
Question 23 1 / 1 pts
To enable multi-threading.
https://feucanvas.instructure.com/courses/83484/quizzes/999882 11/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 24 0 / 1 pts
Question 25 1 / 1 pts
Question 26 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 12/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Task
Thread
Correct! Process
Core
Question 27 1 / 1 pts
Mutex
Barrier
Condition variable
Question 28 1 / 1 pts
CUDA
Correct! OpenMP
https://feucanvas.instructure.com/courses/83484/quizzes/999882 13/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
MapReduce
Question 29 1 / 1 pts
MISD
MIMD
SISD
Correct! SIMD
Question 30 1 / 1 pts
Correct! Lock
Semaphore
Monitor
Barrier
Question 31 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 14/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
True
Correct! False
Question 32 1 / 1 pts
True
Correct! False
Question 33 1 / 1 pts
True
Correct! False
Question 34 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 15/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct! True
False
Question 35 1 / 1 pts
True
Correct! False
Question 36 1 / 1 pts
True
Correct! False
Question 37 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 16/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
An SMP system has two or more identical processors which are connected to a
single shared memory often through a system bus.
Correct! True
False
Question 38 1 / 1 pts
Correct! True
False
Question 39 1 / 1 pts
True
Correct! False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 17/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 40 1 / 1 pts
Correct! True
False
Question 41 1 / 1 pts
You can safely expect threads to execute in the same relative order that
you create them.
True
Correct! False
Question 42 1 / 1 pts
In most operating systems, the user determines when each of the threads
and processes gets scheduled to execute.
True
Correct! False
Question 43 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 18/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
When defining a new Java class, the class can implement multiple other
interfaces, which is not an advantage of implementing Java's Runnable
interface rather than inheriting from the Thread class and overriding the
run() method.
True
Correct! False
Question 44 1 / 1 pts
A thread that calls the join method on another thread will enter the
blocked state until the other thread finishes executing.
Correct! True
False
Question 45 1 / 1 pts
True
Correct! False
Question 46 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 19/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
True
Correct! False
Question 47 1 / 1 pts
True
Correct! False
Question 48 1 / 1 pts
True
Correct! False
Question 49 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 20/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
True
Correct! False
Question 50 1 / 1 pts
Every thread is independent and has its own separate address space in
memory.
True
Correct! False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 21/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in my
environment.
General Direction: Answer the following questions by selecting the letter that corresponds to the correct
answer.
Export Questions
Attempt History
Attempt Time Score
https://feu.instructure.com/courses/83484/quizzes/999882 1/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 1 1 / 1 pts
Memory
Correct! GPU
CPU
Cache
Question 2 1 / 1 pts
Question 3 1 / 1 pts
Correct! Efficiency
Speedup
Scalability
Amdahl's Law
Question 4 1 / 1 pts
Amdahl's Law
Scalability
Efficiency
Correct! Speedup
Question 5 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 3/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 6 1 / 1 pts
Correct! SIMD
MISD
MIMD
SISD
Question 7 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 4/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 8 1 / 1 pts
Functional programming
Procedural programming
Object-oriented programming
Question 9 1 / 1 pts
Question 10 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 5/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Barrier
Correct! Lock
Semaphore
Condition variable
Question 11 1 / 1 pts
Increased security
Question 12 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 6/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 13 1 / 1 pts
Question 14 1 / 1 pts
Question 15 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 7/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Condition variable
Mutex
Barrier
Question 16 1 / 1 pts
Question 17 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 8/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct!
To ensure that only one thread can execute a particular section of code at
a time.
Question 18 1 / 1 pts
Correct!
Question 19 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 9/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 20 1 / 1 pts
To enable multi-threading.
Question 21 1 / 1 pts
Quantum computer
ASIC
Correct! GPGPU
FPGA
https://feu.instructure.com/courses/83484/quizzes/999882 10/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 22 1 / 1 pts
Question 23 1 / 1 pts
Question 24 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 11/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct! OpenMP
MapReduce
CUDA
Question 25 1 / 1 pts
Task
Thread
Core
Correct! Process
Question 26 1 / 1 pts
Question 27 1 / 1 pts
Question 28 1 / 1 pts
Barrier
Monitor
Semaphore
Correct! Lock
https://feu.instructure.com/courses/83484/quizzes/999882 13/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 29 1 / 1 pts
RAM
Hard disk
Correct! Cache
Registers
Question 30 1 / 1 pts
Mutex
Barrier
Semaphore
Question 31 0 / 1 pts
ou Answered True
Question 32 1 / 1 pts
Correct! True
False
Question 33 1 / 1 pts
more responsive
less complex
Question 34 1 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 15/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
True
Correct! False
Question 35 0 / 1 pts
ou Answered True
Question 36 1 / 1 pts
True
Correct! False
Question 37 1 / 1 pts
Computer memory usually operates at a much slower speed than processors do.
https://feu.instructure.com/courses/83484/quizzes/999882 16/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct! True
False
Question 38 0 / 1 pts
ou Answered False
Question 39 1 / 1 pts
Shared memory doesn't necessarily mean all of the data exists on the same
physical device, hence it could be spread across a cluster of systems.
Correct! True
False
Question 40 1 / 1 pts
True
Correct! False
https://feu.instructure.com/courses/83484/quizzes/999882 17/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 41 1 / 1 pts
If a daemon thread in Java creates another thread, that child thread will
only be a daemon thread if its parent calls the setDaemon() method
before starting it
True
Correct! False
Question 42 1 / 1 pts
True
Correct! False
Question 43 1 / 1 pts
When defining a new Java class, the class can implement multiple other
interfaces, which is not an advantage of implementing Java's Runnable
interface rather than inheriting from the Thread class and overriding the
run() method.
True
https://feu.instructure.com/courses/83484/quizzes/999882 18/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct! False
Question 44 1 / 1 pts
Correct! True
False
Question 45 1 / 1 pts
A thread that calls the join method on another thread will enter the
blocked state until the other thread finishes executing.
Correct! True
False
Question 46 1 / 1 pts
Java's Atomic variable classes are unique because their values update as
a single, uninterrupted operation which makes them "thread-safe."
Correct! True
False
https://feu.instructure.com/courses/83484/quizzes/999882 19/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 47 1 / 1 pts
True
Correct! False
Question 48 1 / 1 pts
Correct! True
False
Question 49 1 / 1 pts
True
Correct! False
Question 50 0 / 1 pts
https://feu.instructure.com/courses/83484/quizzes/999882 20/21
6/2/23, 5:24 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
If one thread opens a file with read privileges then other threads in another
process can also read from that file.
ou Answered True
https://feu.instructure.com/courses/83484/quizzes/999882 21/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in my
environment.
General Direction: Answer the following questions by selecting the letter that corresponds to the correct
answer.
Export Questions
Attempt history
Attempt Time Score
https://feucanvas.instructure.com/courses/83484/quizzes/999882 1/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 1 1 / 1 pts
CPU
Correct! GPU
Cache
Memory
Question 2 1 / 1 pts
Question 3 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 2/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 4 1 / 1 pts
Speedup
Scalability
Amdahl's Law
Correct! Efficiency
Question 5 1 / 1 pts
Barrier
https://feucanvas.instructure.com/courses/83484/quizzes/999882 3/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Mutex
Semaphore
Question 6 1 / 1 pts
MISD
MIMD
SISD
Correct! SIMD
Question 7 1 / 1 pts
Functional programming
Procedural programming
Object-oriented programming
https://feucanvas.instructure.com/courses/83484/quizzes/999882 4/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 8 1 / 1 pts
Question 9 1 / 1 pts
Question 10 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 5/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct! Process
Core
Thread
Task
Question 11 1 / 1 pts
Question 12 1 / 1 pts
Mutex
Condition variable
https://feucanvas.instructure.com/courses/83484/quizzes/999882 6/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Barrier
Question 13 1 / 1 pts
Question 14 1 / 1 pts
Efficiency
Correct! Speedup
Scalability
Amdahl's Law
https://feucanvas.instructure.com/courses/83484/quizzes/999882 7/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 15 1 / 1 pts
To enable multi-threading.
Question 16 1 / 1 pts
Question 17 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 8/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 18 1 / 1 pts
Correct!
Question 19 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 9/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 20 1 / 1 pts
Question 21 1 / 1 pts
MapReduce
Correct! OpenMP
CUDA
Question 22 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 10/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Increased security
Question 23 1 / 1 pts
Question 24 1 / 1 pts
Correct! Lock
https://feucanvas.instructure.com/courses/83484/quizzes/999882 11/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Semaphore
Barrier
Monitor
Question 25 1 / 1 pts
Correct!
To ensure that only one thread can execute a particular section of code at
a time.
Question 26 1 / 1 pts
ASIC
Correct! GPGPU
Quantum computer
https://feucanvas.instructure.com/courses/83484/quizzes/999882 12/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
FPGA
Question 27 1 / 1 pts
Question 28 1 / 1 pts
Question 29 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 13/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Hard disk
Correct! Cache
RAM
Registers
Question 30 1 / 1 pts
Barrier
Correct! Lock
Semaphore
Condition variable
Question 31 1 / 1 pts
True
https://feucanvas.instructure.com/courses/83484/quizzes/999882 14/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct! False
Question 32 1 / 1 pts
Correct! True
False
Question 33 1 / 1 pts
True
Correct! False
Question 34 1 / 1 pts
Correct! True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 15/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 35 1 / 1 pts
True
Correct! False
Question 36 1 / 1 pts
True
Correct! False
Question 37 1 / 1 pts
Each core of modern processors' has a separate cache that stores frequently
accessed data.
Correct! True
False
Question 38 0 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 16/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 39 0 / 1 pts
ou Answered True
Question 40 1 / 1 pts
Each core of modern processors' has their own cache that stores frequently
accessed data.
Correct! True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 17/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 41 1 / 1 pts
True
Correct! False
Question 42 1 / 1 pts
If a daemon thread in Java creates another thread, that child thread will
only be a daemon thread if its parent calls the setDaemon() method
before starting it
True
Correct! False
Question 43 1 / 1 pts
A thread that calls the join method on another thread will enter the
blocked state until the other thread finishes executing.
Correct! True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 18/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 44 1 / 1 pts
In most operating systems, the user determines when each of the threads
and processes gets scheduled to execute.
True
Correct! False
Question 45 0 / 1 pts
ou Answered True
Question 46 1 / 1 pts
Every thread is independent and has its own separate address space in
memory.
True
Correct! False
Question 47 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 19/21
6/1/23, 10:15 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
If you run multiple Java applications at the same time, they will execute in
equivalent.
True
Correct! False
Question 48 1 / 1 pts
Correct! True
False
Question 49 0 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 20/21
6/1/23, 10:16 PM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 50 1 / 1 pts
Correct! True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 21/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in my
environment.
General Direction: Answer the following questions by selecting the letter that corresponds to the correct
answer.
Export Questions
Attempt history
Attempt Time Score
https://feucanvas.instructure.com/courses/83484/quizzes/999882 1/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 1 0 / 1 pts
Cache
ou Answered CPU
Memory
Question 2 1 / 1 pts
Question 3 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 2/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Registers
RAM
Hard disk
Correct! Cache
Question 4 1 / 1 pts
Question 5 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 3/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 6 0 / 1 pts
ou Answered Speedup
Scalability
Amdahl's Law
Question 7 1 / 1 pts
Question 8 0 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 4/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Increased security
Question 9 1 / 1 pts
Efficiency
Scalability
Correct! Speedup
Amdahl's Law
Question 10 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 5/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Functional programming
Procedural programming
Object-oriented programming
Question 11 1 / 1 pts
Question 12 0 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 6/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Barrier
Semaphore
Question 13 0 / 1 pts
Question 14 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 7/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 15 1 / 1 pts
Correct!
To ensure that only one thread can execute a particular section of code at
a time.
Question 16 0 / 1 pts
ou Answered A section of code where only one thread can execute at a time.
orrect answer A section of code where threads can execute in any order.
Question 17 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 8/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 18 1 / 1 pts
Correct!
Question 19 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 9/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 20 1 / 1 pts
Question 21 1 / 1 pts
Mutex
Barrier
Semaphore
https://feucanvas.instructure.com/courses/83484/quizzes/999882 10/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 22 1 / 1 pts
Correct! GPGPU
FPGA
Quantum computer
ASIC
Question 23 1 / 1 pts
To enable multi-threading.
https://feucanvas.instructure.com/courses/83484/quizzes/999882 11/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 24 0 / 1 pts
Question 25 1 / 1 pts
Question 26 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 12/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Task
Thread
Correct! Process
Core
Question 27 1 / 1 pts
Mutex
Barrier
Condition variable
Question 28 1 / 1 pts
CUDA
Correct! OpenMP
https://feucanvas.instructure.com/courses/83484/quizzes/999882 13/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
MapReduce
Question 29 1 / 1 pts
MISD
MIMD
SISD
Correct! SIMD
Question 30 1 / 1 pts
Correct! Lock
Semaphore
Monitor
Barrier
Question 31 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 14/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
True
Correct! False
Question 32 1 / 1 pts
True
Correct! False
Question 33 1 / 1 pts
True
Correct! False
Question 34 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 15/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Correct! True
False
Question 35 1 / 1 pts
True
Correct! False
Question 36 1 / 1 pts
True
Correct! False
Question 37 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 16/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
An SMP system has two or more identical processors which are connected to a
single shared memory often through a system bus.
Correct! True
False
Question 38 1 / 1 pts
Correct! True
False
Question 39 1 / 1 pts
True
Correct! False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 17/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
Question 40 1 / 1 pts
Correct! True
False
Question 41 1 / 1 pts
You can safely expect threads to execute in the same relative order that
you create them.
True
Correct! False
Question 42 1 / 1 pts
In most operating systems, the user determines when each of the threads
and processes gets scheduled to execute.
True
Correct! False
Question 43 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 18/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
When defining a new Java class, the class can implement multiple other
interfaces, which is not an advantage of implementing Java's Runnable
interface rather than inheriting from the Thread class and overriding the
run() method.
True
Correct! False
Question 44 1 / 1 pts
A thread that calls the join method on another thread will enter the
blocked state until the other thread finishes executing.
Correct! True
False
Question 45 1 / 1 pts
True
Correct! False
Question 46 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 19/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
True
Correct! False
Question 47 1 / 1 pts
True
Correct! False
Question 48 1 / 1 pts
True
Correct! False
Question 49 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999882 20/21
6/1/23, 2:35 AM [S1 - SUMMATIVE ASSESSMENT] Module 1 and Module 2: 3TSY2223_CS0051_AN22-6
True
Correct! False
Question 50 1 / 1 pts
Every thread is independent and has its own separate address space in
memory.
True
Correct! False
https://feucanvas.instructure.com/courses/83484/quizzes/999882 21/21
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in
my environment.
Export Questions
Attempt History
Attempt Time Score
Question 1 1 / 1 pts
1 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Which type of lock is suitable for scenarios where multiple threads can
concurrently read a shared resource, but only one thread can write to
it?
Mutex lock
Reader-writer lock
Semaphore
Spin lock
Question 2 1 / 1 pts
Hashtable
Stack
Set
Queue
Question 3 1 / 1 pts
2 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
To synchronize threads
Question 4 1 / 1 pts
It is executed sequentially.
It is executed preemptively.
Question 5 1 / 1 pts
3 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Incorrect
Question 6 0 / 1 pts
Callback functions
Exception handling
Semaphore signaling
Barrier synchronization
Question 7 1 / 1 pts
4 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Question 8 1 / 1 pts
Message passing
Atomic operations
Barrier synchronization
Locking
Question 9 1 / 1 pts
5 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Incorrect
Question 10 0 / 1 pts
Starvation of a thread
Question 11 1 / 1 pts
6 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Question 12 1 / 1 pts
Easier debugging
Improved responsiveness
Incorrect
Question 13 0 / 1 pts
Priority inversion
Preemption
Lock-free synchronization
Question 14 1 / 1 pts
7 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Question 15 1 / 1 pts
Read-write lock
Condition variable
Semaphore
Barrier
Question 16 1 / 1 pts
8 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
OpenMP
MPI
Promises/Futures
Question 17 1 / 1 pts
Question 18 1 / 1 pts
9 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Question 19 1 / 1 pts
Question 20 1 / 1 pts
Barrier
Semaphore
Mutex
10 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Condition variable
Question 21 1 / 1 pts
True
False
Question 22 1 / 1 pts
True
False
Question 23 1 / 1 pts
True
11 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
False
Incorrect
Question 24 0 / 1 pts
True
False
Question 25 1 / 1 pts
True
False
Question 26 1 / 1 pts
True
12 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
False
Question 27 1 / 1 pts
True
False
Question 28 1 / 1 pts
True
False
Question 29 1 / 1 pts
True
False
13 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Incorrect
Question 30 0 / 1 pts
True
False
Question 31 1 / 1 pts
Incorrect
Question 32 0 / 1 pts
14 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
If the producer puts elements into a fixed-length queue faster than the
consumer removes them, the queue will fill up and cause an error.
True
False
Question 33 1 / 1 pts
The binary semaphore can only be acquired and released by the same
thread.
Question 34 1 / 1 pts
Condi�on variables enable threads to signal each other when the state of the
queue changes.
True
15 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
False
Question 35 1 / 1 pts
Calling the semaphore's release() method blocks and waits until the
semaphore is available.
True
False
Question 36 1 / 1 pts
If the producer puts elements into a fixed-length queue faster than the
consumer removes them, the producer will run out of elements to put in
the queue.
True
False
Question 37 1 / 1 pts
True
16 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
False
Question 38 1 / 1 pts
Tracking how long a program has been running is a common use case
for a counting semaphore.
True
False
Question 39 1 / 1 pts
True
False
Question 40 1 / 1 pts
17 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
Question 41 1 / 1 pts
True
False
Question 42 1 / 1 pts
True
False
Question 43 1 / 1 pts
It's not possible to have data races without a race condi�on but possible to
18 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
True
False
Question 44 1 / 1 pts
The Callable interface's call() method returns a result object but the
Runnable interface's run() method does not.
Incorrect
Question 45 0 / 1 pts
19 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
True
False
Question 46 1 / 1 pts
True
False
Question 47 1 / 1 pts
When using a thread pool in Java, the host operating system assigns
submitted tasks to specific threads within the available pool to execute.
True
False
Incorrect
Question 48 0 / 1 pts
20 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
True
False
Question 49 1 / 1 pts
True
False
Question 50 1 / 1 pts
21 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2... https://feucanvas.instructure.com/courses/83484/quizzes/999883
22 of 22 6/2/2023, 22:04
[S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4
Due Jun 2 at 11:59pm Points 50 Questions 50
Available May 29 at 12am - Jun 2 at 11:59pm Time Limit 60 Minutes
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in my
environment.
Export Questions
Attempt History
Attempt Time Score
Question 1 1 / 1 pts
Question 2 1 / 1 pts
Which type of lock is suitable for scenarios where multiple threads can
concurrently read a shared resource, but only one thread can write to it?
Reader-writer lock
Semaphore
Spin lock
Mutex lock
Question 3 1 / 1 pts
Question 4 1 / 1 pts
Condition variable
Barrier
Semaphore
Mutex
Question 5 1 / 1 pts
It is executed preemptively.
Question 6 1 / 1 pts
Read-write lock
Barrier
Semaphore
Condition variable
Incorrect
Question 7 0 / 1 pts
To synchronize threads
Question 8 1 / 1 pts
Question 9 1 / 1 pts
Barrier synchronization
Semaphore signaling
Exception handling
Callback functions
Question 10 1 / 1 pts
Preemption
Priority inversion
Lock-free synchronization
Question 11 1 / 1 pts
Barrier synchronization
Message passing
Atomic operations
Locking
Question 12 1 / 1 pts
Question 13 1 / 1 pts
MPI
Promises/Futures
OpenMP
Question 14 1 / 1 pts
Easier debugging
Improved responsiveness
Question 15 1 / 1 pts
Which of the following scenarios can lead to a deadlock situation?
Starvation of a thread
Question 16 1 / 1 pts
Set
Hashtable
Stack
Queue
Question 17 1 / 1 pts
Question 18 1 / 1 pts
Question 19 1 / 1 pts
A deadlock affects multiple threads, while a livelock affects only a single thread.
Question 20 1 / 1 pts
Question 21 1 / 1 pts
False
Question 22 1 / 1 pts
The tryLock() method is useful because if multiple threads try to acquire a lock
simultaneously, the tryLock() method will randomly pick one to succeed.
True
False
Question 23 1 / 1 pts
True
False
Question 24 1 / 1 pts
True
False
Question 25 1 / 1 pts
When the threads in the program are not making progress, you can determine if it
is due to a deadlock or a livelock by randomly guessing between deadlock and
livelock.
True
False
Question 26 1 / 1 pts
Data race occurs when a thread is unable to gain access to a necessary resource, and is
therefore unable to make progress.
True
False
Question 27 1 / 1 pts
A ReentrantLock instantiates a new internal Lock object every time its lock()
method is called.
True
False
Question 28 1 / 1 pts
True
False
Question 29 1 / 1 pts
False
Question 30 1 / 1 pts
True
False
Question 31 1 / 1 pts
If the producer puts elements into a fixed-length queue faster than the consumer
removes them, the queue will fill up and cause an error.
True
False
Question 32 1 / 1 pts
If the producer puts elements into a fixed-length queue faster than the consumer
removes them, the producer will run out of elements to put in the queue.
True
False
Incorrect
Question 33 0 / 1 pts
Calling the semaphore's release() method blocks all other threads waiting on the
semaphore.
True
False
Question 34 1 / 1 pts
True
False
Question 35 1 / 1 pts
True
False
Question 36 1 / 1 pts
What happens if the producer puts elements into a fixed-length queue faster than
the consumer removes them?
Question 37 1 / 1 pts
Tracking how long a program has been running is a common use case for a
counting semaphore.
True
False
Question 38 1 / 1 pts
A Semaphore is different from a Mutex in such a way that both can be released by
different threads.
True
False
Question 39 1 / 1 pts
True
False
Question 40 1 / 1 pts
True
False
Question 41 1 / 1 pts
It serves as a placeholder to access a result that may not been computed yet.
It allows a program to change how it will function the next time it is run.
Question 42 1 / 1 pts
When it reaches the base case, a divide-and-conquer algorithm solves all of the
subproblems that have been created.
True
False
Question 43 1 / 1 pts
True
False
Question 44 1 / 1 pts
True
False
Question 45 1 / 1 pts
When using a thread pool in Java, the compiler assigns submitted tasks to specific
threads within the available pool to execute.
True
False
Question 46 1 / 1 pts
True
False
Question 47 1 / 1 pts
When using a thread pool in Java, the _____ assigns submitted tasks to specific
threads within the available pool to execute.
programmer
compiler
Question 48 1 / 1 pts
A race condi�on is a flaw in the �ming or ordering of a program's execu�on that causes
incorrect behavior.
True
False
Incorrect
Question 49 0 / 1 pts
A future is a task that can be assigned to a thread pool for execution.
True
False
Question 50 1 / 1 pts
True
False
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in my
environment.
Export Questions
Attempt history
Attempt Time Score
Question 1 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 1/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Easier debugging
Improved responsiveness
Question 2 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 2/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 3 1 / 1 pts
Condition variable
Read-write lock
Barrier
Semaphore
Priority inversion
Lock-free synchronization
Preemption
Question 5 1 / 1 pts
Queue
Hashtable
Set
Stack
Question 7 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 4/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
To synchronize threads
Question 9 1 / 1 pts
Promises/Futures
OpenMP
https://feucanvas.instructure.com/courses/83484/quizzes/999883 5/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
MPI
Question 10 1 / 1 pts
Question 11 1 / 1 pts
Which type of lock is suitable for scenarios where multiple threads can
concurrently read a shared resource, but only one thread can write to it?
Reader-writer lock
Semaphore
Mutex lock
Spin lock
https://feucanvas.instructure.com/courses/83484/quizzes/999883 6/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 12 1 / 1 pts
Locking
Message passing
Atomic operations
Barrier synchronization
Question 13 1 / 1 pts
Question 14 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 7/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
It is executed preemptively.
It is executed sequentially.
Condition variable
Mutex
Barrier
Semaphore
Question 16 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 8/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 17 1 / 1 pts
Question 18 1 / 1 pts
Starvation of a thread
Question 19 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 9/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Barrier synchronization
Exception handling
Semaphore signaling
Callback functions
Question 20 1 / 1 pts
Question 21 1 / 1 pts
True
https://feucanvas.instructure.com/courses/83484/quizzes/999883 10/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
False
True
False
True
False
Question 24 1 / 1 pts
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 11/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 25 1 / 1 pts
The threads in your program are clearly not making progress. How might
you determine if it is due to a deadlock or a livelock?
Use the Resource Monitor to investigate the program's CPU usage to see
if it is actively executing.
Randomly guess between deadlock and livelock. You have a 50/50 shot at
being right!
To avoid livelock, ensure that only one process takes action chosen by priority or
some other mechanism, like random selection.
True
False
Question 27 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 12/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
What is the difference between the tryLock() and the regular lock()
method in Java?
True
False
True
https://feucanvas.instructure.com/courses/83484/quizzes/999883 13/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
False
Question 30 1 / 1 pts
True
False
Question 31 1 / 1 pts
If the producer puts elements into a fixed-length queue faster than the
consumer removes them, the consumer will automatically speed up to
match the producer's speed.
True
False
Question 32 1 / 1 pts
The binary semaphore can only be acquired and released by the same
thread.
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 14/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
True
False
A Semaphore is different from a Mutex in such a way that both can be released
by different threads.
True
False
The consumption rate should be less than or equal to the production rate
in a producer-consumer architecture.
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 15/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
True
False
Question 37 1 / 1 pts
True
False
Question 38 1 / 1 pts
True
False
Question 39 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 16/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
True
False
Question 40 1 / 1 pts
True
False
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 17/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
a thread
a process
a mutex
Question 43 1 / 1 pts
resources
operating system
Question 44 1 / 1 pts
True
False
Question 45 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 18/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
True
False
True
False
Question 47 1 / 1 pts
When using a thread pool in Java, the thread pool executor service
assigns submitted tasks to specific threads within the available pool to
execute.
True
False
Question 48 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 19/20
6/2/23, 1:36 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
A future allows a program to change how it will function the next time it is
run.
True
False
Question 49 1 / 1 pts
It's not possible to have data races without a race condition but possible to have
race conditions without a data race.
True
False
Question 50 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 20/20
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Instructions
Summative Assessment 1
Parallel and Distributed Computing
PLEDGE OF HONOR
I pledge to do all that is in my power to live a life of dignity and credibility and to create that spirit in my
environment.
Export Questions
Attempt history
Attempt Time Score
Question 1 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 1/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 2 1 / 1 pts
Question 3 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 2/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 4 1 / 1 pts
It is executed sequentially.
It is executed preemptively.
Question 5 1 / 1 pts
Set
Stack
Queue
Hashtable
https://feucanvas.instructure.com/courses/83484/quizzes/999883 3/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 6 1 / 1 pts
Question 7 1 / 1 pts
To synchronize threads
https://feucanvas.instructure.com/courses/83484/quizzes/999883 4/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 8 1 / 1 pts
Question 9 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 5/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 10 1 / 1 pts
Starvation of a thread
Question 11 1 / 1 pts
Barrier
Condition variable
Mutex
Semaphore
Question 12 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 6/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Improved responsiveness
Easier debugging
Question 13 1 / 1 pts
Which type of lock is suitable for scenarios where multiple threads can
concurrently read a shared resource, but only one thread can write to it?
Mutex lock
Reader-writer lock
Semaphore
Spin lock
Question 14 1 / 1 pts
MPI
OpenMP
https://feucanvas.instructure.com/courses/83484/quizzes/999883 7/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Promises/Futures
Question 15 1 / 1 pts
Message passing
Barrier synchronization
Atomic operations
Locking
Question 16 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 8/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 17 1 / 1 pts
Barrier synchronization
Exception handling
Callback functions
Semaphore signaling
Question 18 1 / 1 pts
Question 19 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 9/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Read-write lock
Barrier
Condition variable
Semaphore
Question 20 1 / 1 pts
Preemption
Lock-free synchronization
Priority inversion
Question 21 1 / 1 pts
True
https://feucanvas.instructure.com/courses/83484/quizzes/999883 10/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
False
Question 22 1 / 1 pts
True
False
Question 23 1 / 1 pts
True
False
Question 24 1 / 1 pts
Data race occurs when a thread is unable to gain access to a necessary resource,
and is therefore unable to make progress.
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 11/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 25 1 / 1 pts
When the threads in the program are not making progress, you can
determine if it is due to a deadlock or a livelock by using the Resource
Monitor to investigate the program's memory usage to see if it continues
to grow.
True
False
Question 26 1 / 1 pts
True
False
Question 27 1 / 1 pts
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 12/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 28 1 / 1 pts
True
False
Question 29 1 / 1 pts
True
False
Question 30 1 / 1 pts
When the threads in the program are not making progress, you can
determine if it is due to a deadlock or a livelock waiting to see if the
problem eventually resolves itself.
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 13/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 31 1 / 1 pts
True
False
Question 32 1 / 1 pts
True
False
Question 33 1 / 1 pts
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 14/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 34 1 / 1 pts
True
False
Question 35 1 / 1 pts
Calling the semaphore's release() method blocks and waits until the
semaphore is available.
True
False
Question 36 1 / 1 pts
Create a single "master lock" that all threads must first acquire before
locking or unlocking any of the other locks.
https://feucanvas.instructure.com/courses/83484/quizzes/999883 15/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Prioritize the locks so that all threads will acquire them in the same relative
order.
Question 37 1 / 1 pts
True
False
Question 38 1 / 1 pts
In addition to modifying the counter value, what else does calling the
semaphore's release() method do?
nothing else
Question 39 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 16/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
True
False
Question 40 1 / 1 pts
True
False
Question 41 1 / 1 pts
True
False
Question 42 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 17/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
True
False
Question 43 1 / 1 pts
True
False
Question 44 1 / 1 pts
True
False
Question 45 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 18/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Threads within the same thread pool can more easily share data with each
other than standard non-pool threads.
Question 46 1 / 1 pts
True
False
Question 47 1 / 1 pts
https://feucanvas.instructure.com/courses/83484/quizzes/999883 19/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 48 1 / 1 pts
True
False
Question 49 1 / 1 pts
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 20/21
6/2/23, 7:24 PM [S2 - SUMMATIVE ASSESSMENT] Module 3 and Module 4: 3TSY2223_CS0051_AN22-6
Question 50 1 / 1 pts
True
False
https://feucanvas.instructure.com/courses/83484/quizzes/999883 21/21