CMSC Final Exam Review
Verified Exam Questions and Answers Latest update 2026/2027
Question:
The heap is shared between all threads in a single process. -
Answer:
True
Question:
The call stack is shared between all threads in a single process -
Answer:
False
Question:
By default (when you start a process), the only thread running is the mainthread. -
Answer:
False - there are many others like the Finalizer and Signal Dispatcher, for
example
Question:
Threads can only be interrupted after they finish executing some line of code. -
Answer:
False - they can be interrupted anytime
Question:
You can synchronize on any object in Java. -
Answer:
True
Question:
Code in a synchronization block cannot be interrupted -
Answer:
False
Question:
When an object is being used as a lock it cannot be modified. -
Answer:
False
, Question:
ADT or DS: Set -
Answer:
ADT
Question:
ADT or DS: Linked List -
Answer:
DS
Question:
ADT or DS: Array -
Answer:
DS
Question:
ADT or DS: Map -
Answer:
ADT
Question:
ADT or DS: Hash Table -
Answer:
DS
Question:
ADT or DS: List -
Answer:
ADT
Question:
ADT or DS: Tree -
Answer:
ADT
Question:
ADT or DS: Graph -
Answer:
ADT
Verified Exam Questions and Answers Latest update 2026/2027
Question:
The heap is shared between all threads in a single process. -
Answer:
True
Question:
The call stack is shared between all threads in a single process -
Answer:
False
Question:
By default (when you start a process), the only thread running is the mainthread. -
Answer:
False - there are many others like the Finalizer and Signal Dispatcher, for
example
Question:
Threads can only be interrupted after they finish executing some line of code. -
Answer:
False - they can be interrupted anytime
Question:
You can synchronize on any object in Java. -
Answer:
True
Question:
Code in a synchronization block cannot be interrupted -
Answer:
False
Question:
When an object is being used as a lock it cannot be modified. -
Answer:
False
, Question:
ADT or DS: Set -
Answer:
ADT
Question:
ADT or DS: Linked List -
Answer:
DS
Question:
ADT or DS: Array -
Answer:
DS
Question:
ADT or DS: Map -
Answer:
ADT
Question:
ADT or DS: Hash Table -
Answer:
DS
Question:
ADT or DS: List -
Answer:
ADT
Question:
ADT or DS: Tree -
Answer:
ADT
Question:
ADT or DS: Graph -
Answer:
ADT