Week 7 Flashcards

1
Q

_____ are translated only once, and can be called many times.

A

Procedures

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

_____ have a calling mechanism involving the EIP.

A

Procedures

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

Have a return mechanism involving the system stack.

A

Procedures

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

For _________, arguments are substituted exactly as entered, without checking for memory, registers, or literals.

A

Macros

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

For _________, the entire code is substituted for each call.

A

Macros

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

Which logic gate outputs a “0” if both of its input values are the same?
i.e. If both inputs are “1” the output is a “0”, if both inputs are “0” the output is still a “0”.

A

XOR

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

What does a NAND gate do?

A

Finds the result of ANDing two variables, then inverts the result.

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

What does a NOR gate do?

A

Finds the result of Oring two variables, then inverts the result.

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

What does a XNOR gate do?

A

Find the result of XORing two variables, then inverts the result.

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

How many possible combinations of values are there for a function of n binary variables i.e. f(A, B, C)?

A

2^n combinations

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

How do I write the following truth table into a Boolean function?

A B C R
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1

A

Select all rows where R = 1
And the values in each row
Or the resulting terms
Set R equal to the expression

R = (~A~B)C + (~A)B(~C) + A(~B~C) + ABC

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

Exclusive OR is the same as _____:

A

A and ~B OR ~A and B

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

Multiple internal buses simplifies what process?

A

Bus arbitration

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