Quiz Questions Flashcards
1
Q
- Threads vs Processes – select all that apply:
a. Threads can easily share memory, although this can lead to complications when using thread programming.
b. Because processes are isolated, it is impossible for two processes to ever share data.
c. Processes have their own private memory and are isolated.
d. Threads are owned by processes. Every process must have at least one thread.
A
Answer: a, c, d
2
Q
- The operating system is responsible for the order threads are scheduled to execute.
a. True
b. False
A
Answer: True
3
Q
- Main bottleneck of most programs is:
a. Being interrupted by more important tasks
b. Accessing memory
c. Accessing the CPU
A
Answer: b
4
Q
- Moore’s Law tells us several important things about computing.
a. Moore’s law was used to predict that the maximum realistic clock speed for a CPU is 10Ghz, this remains true today.
b. In 1965, Gordon Moore predicted that the number of components on an integrated circuit would double every year or so.
c. Moore’s law correlates consumer purchasing behavior with price indexes, and can be used to predict technology stock market trends.
d. In 1955, Garry Moore the president of IBM predicted that transistors would shrink by 50% every year.
e. Moore’s law is a false equivalency between engineering design, and sales production rates.
f. Many have predicted the end of Moore’s law, although major chip manufacturers continue to see its effects.
A
Answer: b, f
5
Q
- Select all answers that are true about the cache.
a. More expensive
b. All processors (CPU) share a single cache
c. Temporary storage
d. Fast memory
A
Answer: a, c, d
6
Q
- What are the motivations for creating concurrent programs? Select all that apply.
a. Concurrent programs are better at sharing resources than sequential programs.
b. Concurrent programs are better than parallel programs, as they require fewer resources..
c. Concurrent programs normally run faster than sequential programs.
d. Concurrent programs are more responsive than sequential programs.
e. Concurrent programs are easier to debug than sequential programs.
A
Answer: a, d
7
Q
- Non coherent cache is when one processor makes a change to a shared memory value, but the other processors are not aware of the change.
a. True
b. False
A
Answer: True
8
Q
- Select all statements that are true about inheritance:
a. The “is a” relationship occurs when you associate objects with a class
b. Multiple inheritance is a made up term, the correct terminology in Object Oriented languages is cross extensions.
c. The “is a” relationship occurs when one class inherits from another.
d. Multiple inheritance has a variety of problems, Java does not allow it but instead provides “workarounds”.
e. Multiple inheritance is implemented in Java and is recommended for organizing large projects.
A
Answer: c, d
9
Q
- A critical section of code is:
a. An area of the code that is shared by multiple threads through read access
b. An area of the code that is shared by multiple threads and one thread is writing to that location
c. An area of the code that is shared
A
Answer: b
10
Q
- Symmetric Multiprocessors (SMPs) use a shared memory design.
a. SMPs are very difficult to program because they use shared memory.
b. SMPs are easier to program than other processor designs in part because they use shared memory.
c. Memory sharing in SMPs is implemented by the operating system, Windows10/11, Linux/Unix, or Android for example.
d. Memory sharing means that all processors can see the same block of memory, this is implemented by hardware in SMPs
A
Answer: b, d
11
Q
- Graphical Processing Units (aka GPUs) originally designed for games now have a variety of other uses.
a. A GPU is able to execute thousands of simple repetetive tasks in parallel, it accomplishes this with 100s of very simple processing units, sometimes referred to as a SIMD or Vector processor.
b. GPUs always use the same memory as the processor. All GPUs map video memory directly onto the main memory, reducing the amount available for programs.
c. A GPU is a dedicated processor similar to the main CPU, although with only a single extremely high speed core, running with a clock 100s of times faster than the CPU.
d. GPUs are often implemented with their own dedicated on board memory. 8GB is typical in 2024, although some have much more memory than this.
A
12
Q
A