Documente Academic
Documente Profesional
Documente Cultură
Question
A. ebx
B. eip
C. esp
D. B & C
E. All of the above.
2 (L11)
Question
The ebp register contains the address of the [blank] element of the current
stack frame. The esp register contains the address of the [blank] element of
the current stack frame.
NaN
3 (L10)
Question
A. True
B. False
4 (L12)
Question
A. heap.
B. stack.
C. heap and stack.
D. it depends.
5 (L13)
Question
6 (L12)
Question
Killing a parent process will also kill all its child process (if has).
True. False
7 (L10)
Question
The Arithmetic Logic Unit (ALU) is part of which component of the von
Neumann architecture.
A. I/O Unit
B. Control Unit
C. Execution Unit
D. Decode Unit
8 (L11)
Question
Where on the stack that callee frame used to save caller's old %ebp value?
A. The heap
B. At a negative offset from the %ebp register
C. In the %edx register
D. At a negative offset from the %esp register
12 (L14)
Question
A. memory
B. registers
C. Cache
D. disk
E. The network
13 (L13)
Question
NaN
14 (L13)
Question
The shell catches the signal from Ctrl-C and then sends a SIGINT to the
process
in the [Blank]process group.
NaN
15 (L13)
Question
NaN
16 (L10)
Question
17 (L10)
Question
(a) Linker
(b) Compiler
(c) Decoder
(d) ALU
(e) None of these
18 (L10)
Question
A. callee-save registers
B. special purpose registers
C. flags registers
D. general purpose registers
E. argument passing registers
19 (L11)
Question
For the IA32 32-bit Linux environment, which of the following registers
points to the start of the frame for the currently executing function?
20 (L11)
Question
21 (L11)
Question
For the IA32 32-bit Linux environment Which of the following registers is
used by the compiler to return a value from a function?
22 (L10)
Question
Consider the following IA32 assembly code for the main function:
1 pushl %ebp
2 movl %esp, %ebp
3 subl $16, %esp
4 movl $2, -4(%ebp)
5 movl $3, -8(%ebp)
6 movl -4(%ebp), %edx
7 movl -8(%ebp), %eax
8 addl %edx, %eax
9 movl %eax, -12(%ebp)
10 movl $0, %eax
11 leave
12 ret
A. line 8
B. line 7
C. line 6
D. line 5
E. line 4
23 (L12)
Question
a)Running
b)Stopped
c)Terminated
d)All of the Above
e)None of the Above
28 (L12)
Question
A. 8
B. 3
C. 5
D. 6
E. 7
29 (L14)
Question
A. %ebp
B. %esp
C. %efp
D. %edp
32 (L13)
Question
1 void foo() {
2 char bar[16];
3 bar[9] = 'm';
4}
34 (L12)
Question
35 (L12)
Question
True or False: Processes always print things in the order that they appear in
code (or in the order that they are created).
True
False
36 (L12)
Question
37 (L12)
Question
A. Terminated
B. Waiting
C. Stopped
D. Running
38 (L13)
Question
NaN
39 (L9)
Question
40 (L9)
Question
41 (L10)
Question
a. $0x8, $edx
b. $eax, $edx
c. $(eax), %edx
d. $(eax), %(edx)
42 (L11)
Question
NaN
43 (L12)
Question
44 (L9)
Question
Which part of the Control Unit of the von Neumann architecture "stores the
current instruction"?
a. instruction register
b. instruction counter
c. status register
d. decoder
e. signal generator
45 (L9)
Question
Which part of the Control Unit of the von Neumann architecture "stores the
address of the next instruction" ?
a. instruction register
b. instruction counter
c. status register
d. decoder
e. signal generator
46 (L9)
Question
Which part of the Control Unit of the von Neumann architecture "stores
information about the result of the last operation" ?
a. instruction register
b. instruction counter
c. status register
d. decoder
e. signal generator
47 (L9)
Question
Which part of the Control Unit of the von Neumann architecture " interprets
the instruction and figures out what signals to generate" ?
a. instruction counter
b. decoder
c. instruction register
d. signal generator
e. status register
48 (L9)
Question
49 (L12)
Question
a. Terminated
b. Running
c. Stopped
d. Crawling
50 (L12)
Question
a. getpid
b. getppid
c. getidp
d. getprocessid
51 (L11)
Question
Question
Given the code below, and a cache of size 4, managed with the least
frequently used algorithm, what are the contents of the cache after
executing this code?
1 #include
2
3 int main () {
4 int a[] = {1, 2, 3, 4, 2, 5};
5 for (int j = 0; j < 6; j++)
6 for (int i = j; i < 6; i++)
7 printf("%d\n", a[i]);
8 return 0;
9}
NaN
54 (L16)
Question
Given the code below, and a cache of size 4, managed with the least
recently used algorithm, what are the contents of the cache after executing
this code?
1 #include
2
3 int main () {
4 int a[] = {1, 2, 3, 4, 2, 5};
5 for (int j = 0; j < 6; j++)
6 for (int i = j; i < 6; i++)
7 printf("%d\n", a[i]);
8 return 0;
9}
NaN
55 (L11)
Question
Which of the following registers is responsible for keeping track of the top of
the stack?
56 (L11)
Question
57 (L11)
Question
58 (L11)
Question
Question
60 (L9)
Question
What is the term for the ability of a processor to guess whether or not a
jump instruction will be followed?
62 (L10)
Question
64 (L10)
Question
68 (L9)
Question
A. Graphics card
B. Main Memory
C. Hard Disk
D. CPU
69 (L14)
Question