Documente Academic
Documente Profesional
Documente Cultură
2. Prevent changing the location POPA which register is not loaded with data
Answer: SP or ESP
*note: POPA Pop All Registers; Intel 80x86; move memory pointed to by stack pointer to all 16-bit general
purpose registers (except for SP); does not affect flags
5. How many additional control reg are activated based from Pentium’s protected mode
Answer: 5
10. AX, BX, CX = 1234H, 5678H, 9ABCH ; result of SHRD BX, CX, 8?
Answer: BC56; Machine Code: 0FAC CB08
*note: 9ABC -> 5678 ??? waz diz
11. Lower byte of flag reg = 83H. Which flag registers are set as a result of LAHF instruction?
Answer: SF (James)
13. Based from order, when PUSHA is applied which register is PUSHED first?
Answer: AX
*note: Processors pushed the registers in the order: AX, CX, DX, BX, SP, BP, SI and DI. The SP word
pushed is the value before the first register is pushed.
15. Based from order, when PUSHA is applied which register is PUSHED last?
Answer: DI
*note: Processors pushed the registers in the order: AX, CX, DX, BX, SP, BP, SI and DI. The SP word
pushed is the value before the first register is pushed.
16. Standard bus connector agreed by PC bus connector agreed upon by the PC business
comprising of 62 pins found in early PC motherboards that allow expansion with the 8088
microprocessor
Answer: ISA connector - RYAN
Answer: (c) Birds that do not live on honey are dull in color
20. Determine in-degree in vertex b? Answer: 5
Matrix: a b c d
a 0 2 3 0
b 1 2 2 1
c 2 1 1 0
d 1 0 0 2
*note: the number of head ends adjacent to a vertex is called the indegree of the vertex and the number
of tail ends adjacent to a vertex is its outdegree
Ex.
Note: Eulerian circuit - visits every edge exactly once and starts and ends on the same vertex
Hamiltonian path - visit every vertex only once
25. Which of the ff relation from Set A {integer numbers} is considered as equivalence relation?
a. R = {(a,b) | a > b or a = b }
b. R = {(a,b) | a b (mod m) with m > 1}
c. R = {(a,b) | a + b = 3}
d. R = {(a,b) | a < b}
28. Which of the following relations from Set A = [1,2,3,4] to Set A is considered transitive?
Answer: {(1,1),(1,2),(2,1)}
0 0 0 0 1
0 1 0 1 1
1 0 0 1 1
1 1 1 1 1
31. Give the adjacency matrix of the graph G {a,b,c,d}, How many number of paths from a to d
has a length exactly equal to 4?
a b c d
a 0 1 1 0
b 1 0 0 1
c 1 0 0 1
d 0 1 1 0
Answer: 8
32. A u A’ = U
ANSWER: COMPLEMENT LAW - DAN
34. GIven a synchronous sequential circuit what is the next state with input = 0, if the current
state is 010?
Answer: 100
35. Decimal parallel adder that adds 5 decimal digits requires how many BCD adder stages?
Answer: 5 - in parallel adder n digits need n stages (pag multiplier n-1)
A + BC
A'B + C
ABC + A'B'C'
40. 4 input (D0-D3) priority encoder circuit contain 3 output (x,y) pertaining to arbitrary values.
What is the function for least significant bit x?
Answer: D2 + D3
43. Master slave D-flip flop is similar to a synchronous edge triggered flip flop, therefore it
should have the ff behavior except?
Answer: a change in output is activated by a clock pulse.
44. GIven a synchronous sequential circuit what is the next state with input = 1, if the current
state is 001?
Answer: 010 - room 304
45. Product term wherein which all variables appear once rather complement or
uncomplemented
Answer: minterm
46. 74LS83 is an example 4-bit parallel adder to expant to 8-bit you must
Answer: Two half adders with the carry output of one connected to the input of the other
010 = 2
F=xy’z’ + xyz
x\yz 00 01 11 10
0 0 0 0 0
1 1 0 1 0
F’ = x(y+z’)(y’+z)
55. System signal used in troubleshooting techniques for 8088 hardware architecture?
Answer: INTR
56. Addressing mode executes its instructions within CPU without the necessity of reference
memory for operands?
Answer: Register Mode
57. The ____ part specifies the addressing mode for the selected instruction
a. MOD
b. Addr-low
c. REG
d. R/M
Answer: MOD
58. Flag register contains 10000011 on its lower byte which flag registers are set as a result of
executing LAHF instruction?
Answer: SF and CF
59. Which technique does the Pentium Pro employs where the processor looks ahead into the
instruction stream pipeline can be kept busy?
Answer: Speculative execution
61. 2 to 4 line decoder, made of NAND gates which input would produce an output of 1011 from
D0 to D3
a. 1XX
b. 001 ← this was my guess
c. 011
d. 010
Guess:
D0 0111
D1 1011
D2 1101
D3 1110
64. How many 4-binary adders are needed to create a single digit binary adder?
Answer: 4? idk
65. 4-bit magnitude comparator combinational circuit A < B what logic gate?
Answer: 4-input OR gate
*note: if A = B, 4 input AND logic gate
68. If 8088 has frequency of 4MHz, the time of one T state? [200 ns; 80 ns, 250 ns; 300 ns]
Answer: 250 ns
69. The adjacency matrix of the graph is seen below, determine how many edges are in the
graph.
Answer: 10
72. This input is used to force the Pentium to limit addressable memory to 1 Mb to emulate the
memory space of the 8086.
Answer: A20M
74. The binary value 0111 represent a decimal value of 1 in this decimal code
Answer: 8 4-2-1
75. given the following point below
Gr to SW 113 mi
Gr to Kal 56 mi
Gr to Det 147 mi
Gr to Tol 167 mi
Kal to SW 137 mi
Kal to Det 135 mi
Kal to Tol 133 mi
Tol to Det 58 mi
Tol to SW 142 mi
Det to SW 98 mi
76. A parity bit is used in error detecting codes, if an ASCII of T is used with odd parity the result
is
Answer: 0101 0100
79. These instructions are used to preserve the contents of the outer loop counter
Answer: PUSH and POP
80. Digital integrated circuits are classified not only by their complexity or logical operation, but
also by the specific circuit technology to which they belong. The circuit technology is referred to
as ____.
Answer: digital logic family
81. Simplify F(v, w, x, y, z) = Σm (0, 1, 2, 4, 5, 8, 9, 10, 12, 16, 17, 18, 20, 21, 24, 26, 29) using
Karnaugh map.
a. v’w’y’ + v’x’z’ + vxz + v’y’z’ + v’x’y’ + vxy’z
b. w’y’ + x’z’ + v’y’z’ + v’x’y’ + vxy’z
c. none of the choices
d. vw’y’+ v’x’z’ + vxz + v’y’z’ + v’x’y’ + v’xy’z
82. The 74LS83 is an example of a 4-bit parallel adder. To expand this device to an 8-bit adder,
you must
Ans: Use two adders with the carry output of one connected to the carry input of the
other
83. A processor running in this mode can exploit only the lowest 20 bits of its address bus and is
therefore limited to the meager 1MB memory space.
Answer: Real mode
84. This method of storing 16-bit numbers in memory, wherein the lower byte is already
read/write to the lower memory address
Answer: Little Endian
85. . Intel introduced cache memory for this microprocessor when it was launched. The Western
Design Center, Inc (WDC) introduced this microprocessor in 1982 and was used as the CPU in
the Apple IIe and IIc personal computers.
Answer: CMOS 8502
86. Exclusive-OR (XOR) logic gates can be constructed from what other logic gates?
Answer: AND gates, OR gates, and NOT gates
p xor q = -(p ^ q) ^ (p v q)
89. What is the canonical form of the simplified function F = C ‘D + ABC ‘+ ABD ‘+ A ‘B ‘D
a. M (0,1,2,3,5,9,11,12,14)
b. M (1,3,4,5,6,7,9,10,12,14,15)
c. M (0,2,4,6,7,8,10,11,15)
d. M (1,3,5,9,12,13,14)
90. Determine the canonical form of the simplified Boolean expression F = x‘y‘z + xy
a. m (0,5,7)
b. m (2,4,7)
c. m (2,3,7)
d. m (1,6,7)
91. Determine the canonical form of the simplified Boolean expression F=x‘y‘z‘ + xz
a. m (0,5,7)
b. m (2,4,7)
c. m (0,2,3,7)
d. m (1,6,7)
92. Determine the canonical form of the simplified Boolean expression F2 = xy‘z‘ + x‘y
a. m (0,5,7)
b. m (2,4,7)
c. m (2,3,4)
d. m (1,6,7)
93. How many pass will it take in order to sort the single digit array 3 5 4 1 2 using selection
sort?
a.) 5
b.) 4
c.) 6
d.) 10
94. 4 input (D0-D3) priority encoder circuit contain 3 output (x,y) pertaining to arbitrary values.
What is the function for least significant bit y?
Answer: D2 + D3
(MSB - D3 + D1D2’)
96. The higher byte of the flag register contains 83h. Which flag registers are cleared as a result
of executing LAHF instruction?
Answer: AF
97. The graph is represented by the adjacency matrix below. Determine the out-degree in vertex
d
Answer: 3
A B C T
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
Answer: T=A’B’C’+A’B’C+A’BC’
99. A 2 by 2 bit multiplier is simply implemented using which of the following combinational
circuit?
Answer: 2 Half Adders and 4 AND gates
101. This is the time needed by a gate in processing its input signals before the output signal
can be generated
Answer: propagation delay time
102. An algorithm that uses Hamiltonian cycle to solve uses a Big-O notation of
Answer:logarithmic complexity
104. Express the function below as a standard form product of maxterms. F = xy + x'z
105. Express the following function as a sum of minterms: (xy + z)(y + xz)
x’yz + xy’z + xyz’ + xyz
x’y’z + xy’z + xyz
x’yz + x’y’z + xyz’+ xyz
x’y’z + xyz’ + x’y’z’
A + BC
ABC + A'B'C'
A'(B' + C')
AB + C
A\BC 00 01 11 10
0 0 0 1 0
1 1 1 1 1
109. Determine which of the given relations on the set of all integers is an antisymmetric relation
where (x, y) is an element of R.
x is not equal to y
x is greater than or equal to y2
x is a multiple of y
xy is greater than or equal to 1
110. Determine which of the given relations on the set of all integers is an equivalence relation
where (x, y) is an element of R.
x is a multiple of y
x greater than or equal to y2
x = y2
x and y are both negative or both nonnegative
111. An algorithm that uses Hamiltonian cycle to solve uses a Big-O notation of
Answer: logarithmic complexity
Eulerian Path/bubble sort ----> Linear Complexity
Selection ----> quadratic
B'C + CD + BD
B'D' + BD +B'C
B'D' + BD + A'C'D
A'B'D' + AB'D' + CD
Order:
Not - Negation
And - Conjunction
Or - Disjunction
Implication
Equivalence
Modifies flags
● NOT -> None
● OR -> CF OF PF SF ZF (AF undefined)
● PUSHA -> None
● PUSHF -> None
● SAL/SHL -> CF OF PF SF ZF (AF undefined)
● XOR -> CF OF PF SF ZF (AF undefined)