CMU Final 2011 Flashcards

1
Q

Consider a direct-mapped cache memory. Which one of the following statements is true?
(a) The cache has 1 line per set.
(b) The cache has 1 word per block.
(c) The cache has 1 set per cache. (d)None of the above.

A

(a) The cache has 1 line per set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Which one of the following statements about cache memories is true:
(a) Larger caches are more susceptible to capacity misses than smaller caches.
(b) Caches with lower associativity are more susceptible to conflict misses than those with higher associativity.
(c) Caches with higher associativity are more susceptible to cold misses than those with lower associativity. (d)None of the above

A

(b) Caches with lower associativity are more susceptible to conflict misses than those with higher associativity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which one of the following is NOT contained in an ELF executable file?
(a)Machine code
(b)Global variables
(c)User stack
(d) Symbol table

A

(c)User stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Assuming no errors, which one of the following statements about fork is true? (a) Called once, returns once.
(b) Called once, returns twice.
(c) Called once, returns never.
(d) Called twice, returns once. (e)None of the above.

A

(b) Called once,returns twice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Assuming no errors, which one of the following statements about execve is true?
(a) Called once, returns once.
(b) Called once, returns twice.
(c) Called once, returns never.
(d) Called twice, returns once. (e)None of the above.

A

(c) Called once, returns never.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which one of the following statements about processes is false?
(a) The operating system kernel runs as its own separate process.
(b) Each process shares the CPU with other processes.
(c) Each process has its own private address space.
(d) The environment for a process is stored on the stack.

A

(a) The operating system kernel runs as its own separate process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What happens if the parent of a zombie child terminates?
(a) The zombie child becomes a wraith and is never reaped.
(b) The zombie child is reaped by the init process.
(c) The zombie child is reaped by the process with the nearest PID. (d)None of the above.

A

(b) The zombie child is reaped by the init process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Suppose that the kernel delivers two SIGCHLD signals to the parent while the parent is not scheduled. When the kernel finally schedules the parent, how many times will the SIGCHLD handler be called? (a)None, because sending multiple signals will always crash the program.
(b) Exactly once, because signals are not queued.
(c) Exactly twice, because signals are queued. (d)More than twice, depending on how the handler is installed.

A

(b) Exactly once, because signals are not queued.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which one of the following statements is NOT true of storage allocators?
(a) In the best case, coalescing with boundary tags is linear in the number of free blocks.
(b) Seg lists typically approximate best fit search.
(c) Payloads must be aligned to some boundary.
(d) Explicit lists are typically faster than implicit lists.
(e)None of the above.

A

(a) In the best case, coalescing with boundary tags is linear in the number of free blocks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which one of the following addresses is 8-byte aligned?
(a) 11101101011101112
(b) 11101101011101002
(c) 11101101011100002
(d) 11101101011101102
(e)Noneoftheabove

A

(c) 11101101011100002

How well did you know this?
1
Not at all
2
3
4
5
Perfectly