Question Bank CPIT 210
Question Bank CPIT 210
Question Bank CPIT 210
RISC CISC
Columns are difficult columns are easy
emphasis on hardware emphasis on software
the register is less complexity in compiler
use allot of microprogramming instruction set with formats less
addressing modes more than CISC Less addressing modes
multiple instruction formats and size. register more
Q. Illustrate what do you mean by Interrupt. Write its main purpose. Discuss hardware interrupt, Software
interrupt and priority interrupt. Explain how interrupts are prioritized.
Logical addresses
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Page Table:
is a data structure used by the virtual memory system to store the mapping between logical addresses and
physical addresses.
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Q. What do you understand by XOR gate. Discuss it briefly.
• The XOR (exclusive-OR) gate acts in the same way as the logical "either/or." The output is "true" if
either, but not both, of the inputs are "true." The output is "false" if both inputs are "false" or if both
inputs are "true."
What are in the general-purpose registers and Segment registers. Briefly describe them.
Ans: General-purpose registers are EAX, EBX, ECX, EDX, EDI, ESI, EBP, and ESP and in the EFLAGS register. The
segment registers are CS, DS, SS, ES, FS, and GS.
AL, BL, CL and DL are eight-bit, general purpose registers where data is stored.
Define the term MAR, Program Counter (PC) & the Instruction Register (IR)
Memory Address Registers (MAR): holds the address of location into which the word is to be stored by CPU
The PC: is the register that contains the address of the next instruction to be fetched.
The IR: is the register that holds the loaded instruction for execution.
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Data bus: The data lines provide a path for moving data among system modules. These lines, collectively,
are called the data bus. The data bus may consist of 32, 64, 128, or even more separate lines, the number
of lines being referred to as the width of the data bus.
Latches A latch is a memory element whose excitation signals control the state of the device. A latch has two stages
set and reset. Set stage sets the output to 1. Reset stage set the output to 0
L3 cache: Level 3 or L3 cache is specialized memory that works together with L1 and L2 cache to improve
computer performance.
What is the difference between DRAM and SRAM?
DRA SRA
M M
Slow Fast
Capacit Circ
ors uit
Need to refresh every MS No need to refresh
Cheaper Expensive
Define Addressing mode? Discuss immediate and indirect addressing mode using diagram.
Immediate addressing: The operand is given explicitly as the instruction, meaning operand is part of the
instruction.
• Operand is an immediate (constant) value.
• Immediate values are encoded directly into the instruction.
• No memory access is required.
• Fast addressing mode.
• Examples:
• ADD 5 meaning add 5 to contents of accumulator, here 5 is an operand
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Indirect Addressing: Memory cell pointed to by Address field contains the address of (pointer to) the
operand.
Q. Write the command for data input from I/O port 07 to AL and Data output to I/O port 07 from AL
IN and OUT transfer data between an I/O device and the microprocessor's accumulator (AL, AX or EAX).
• IN Read from a port
• OUT Write to a port
• IN 07 Data input from I/O port 07 to AL.
• OUT 01 Data output to I/O port 07 from AL.
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Q. Analyze the instruction 3
# Mnemonics Meaning
1 MOV AL,15 Copy 15 into AL
2 MOV BL,[15] Copy RAM [15] into BL
3 MOV [15], CL Copy CL into RAM [15]
4 DIV DL, AL DL / AL
5 MUL CL,03 CL * 3
6 BRZ X Branch instruction, Branch to location X if result is zero.
7 BRN X Branch to location X if result is negative
8 Branch to location X if overflow occurs.
BRO X
9 Branch to location X if result is positive.
BRP X
10 CMP AL,BL Set 'Z' flag if AL = BL. Set 'S' flag if AL < BL.
Q. Draw Diagram
Design logic gate for X, Y and Z for this formula ? 6
, A̅ ( �̅ + �̅)
(���) + � (�̅ + �̅ ), ( �̅ + �̅) ( �̅ + �̅ ) �̅
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Draw K map and solve the equation and then draw circuit 6
Y = A̅ B C̅ + A̅ B̅ C + A B̅ C̅ + A̅ B̅ C̅
Y = A̅ B̅ C̅ + A̅ B C̅ + A̅ B̅
Y = A̅ B + A B + A B̅
Draw the truth table for Carry A.B + A.C + B.C and Sum
INPUT OUTPUT
Carry Sum
A B C
A.B+A.C+B.C
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
Q. Analyze Diagram
Identify the tracks, Sectors, intersect or gap and inter track gap on the magnetic disk? 2
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Find the value into Decimal Number System – 1
(2C)16 , (4D)16 , (6A)16 .
22, 18, 15
+15
-20
--------------------
-128+64+32+16+8+0+2+1
00001111
11111011 = -5
11101011
1
4E
- 2F
-----------------
- FF 15 15
2F 2 15 = 13 0 = D0
4 14 ¿ 14∧4+ 13=17−16=1=11 E
13 0
0010 = 2 1101=D .1100=C (2D.C), 0010 =2 1111=F .0110 = 6 (2F.6), 0011=3 1101=D .0100 =4 (3D.4)
This study source was downloaded by 100000845003804 from CourseHero.com on 08-19-2022 06:29:13 GMT -05:00
https://www.coursehero.com/file/140671415/Question-Bank-CPIT-210docx/
Powered by TCPDF (www.tcpdf.org)