NEW
Font size
WorksheetsComputer Architecture and Organization
Total questions: 55
Worksheet time: 29mins
Convert the following integer as a 2's complement: -330
1010111110
1010110110
1110110111
1111110111
Convert the following 2's complement integer number to a decimal number:
111 1111 1111 1111 1111 1011
-123
123
-5
-3206
What is the 2's complement of 01 0001 0101?
10 1111 1111
10 1110 1011
11 1111 1011
10 1110 1111
-15 in a sign magnitude representation is
10111
01111
11111
10101
For an 8 bit signed integer number, the range of integers is
-32 to +31
-128 to +127
0 to 256
-64 to +63
How many bits will be required to represent -88 as a 2's complement signed integer number?
6 bit
10 bit
12 bit
9 bit
-32 can be represented as a sign magnitude number as
00100000
10100000
11100000
10101000
The first complement of -32 is (assume 8 bit number)
11011111
10100000
11100000
11011011
What is the weight of the most significant bit of an 8 bit signed integer?
128
-128
256
-256
Convert the following the following 2's complement signed integer into decimal:
100001110
-242
-252
-262
-272
Convert decimal 104 to hexadecimal number
x84
x32
x68
x45
Convert x33EF to binary
0111001111111111
0011111111101111
0111011111101111
0011001111101111
Convert octal number 456 (base 8) to binary (base 2)
100101110
111101110
100101111
100111111
Convert x304E to octal number
31116
30116
3116
316
Which of the following operation will result in overflow?
01001 + 01000
01000 + 00100
01001 + 00100
01000 + 10100
Represent 100.625 (decimal) as a fixed point fraction (binary)
1100100.111
1100100.101
1111100.101
1100111.101
"MTN" can be written as ____ in ASCII code
x4D544E
x4D644E
x4D554E
x4D5E4E
Name component A, B and C
A: Memory, B: Control Unit, C: CPU
A: Control Unit, B: Memory, C: CPU
A: Memory, B: CPU, C: Control Unit
A: Control Unit, B: CPU, C: Memory
What is the function of component B
Communicate between CPU, memory and I/O
Move data between computer and external environment
Keep data during process
Perform data processing and control computer operations
What is the function of component A
Communicate between CPU, memory and I/O
Move data between computer and external environment
Keep data during process
Perform data processing and control computer operations
Correct correct statement(s) about LC-3
I. Consists of 8 registers
II. The size of memory location is a word or two byte
III. Memory consists of 65536 locations
IV. Consist of 16 instructions
I
I and II
I, II and III
I, II, III and IV
Instruction register (IR) consists of current instruction address
True
False
Program Counter (PC) consists of address of the current instruction
True
False
The "F" step of instruction processing is known as
Folding
Fetch
Fixing
Decode
In D steps, _____
compute the address required for memory access.
load the next instruction to IR and increment of PC.
the opcode of the instruction is determined.
determine source operands needed to perform operations.
In OP step, _____
compute the address required for memory access.
load the next instruction to IR and increment of PC.
the opcode of the instruction is determined.
determine source operands needed to perform operations.
In EA step, _____
compute the address required for memory access.
load the next instruction to IR and increment of PC.
the opcode of the instruction is determined.
determine source operands needed to perform operations.
The following instruction belongs to ____ type of instruction:
0 0 0 1 0 1 0 0 0 1 1 0 1 1 1 0
control
operate
add
data movement
The instruction for the following operation is:
R2 <-- R3 + R5
0001010011000101
0010010011000101
0001010011000111
0101010011000101
The instruction for the following operation is:
R2 <-- R3 - 5
0001010011000101
0001010011111011
0001010011011111
0001010011011011
Which of the following is not one of the control instructions?
JMP
TRAP
BR
SDI
Which of the following is not one of the data movement instructions?
SDI
LEA
BR
LD
Equivalent assembly code for instruction at address of x3004 is ____.
ADD R5, R5, #-1
AND R5, R5, #-1
ADD R5, R5, #-5
ADD R3, R5, #-1
Equivalent assembly code for instruction at PC of x3003 is ____.
LD R3, FE
LD R5, FE
ADD R5, R5, #-5
ADD R3, R5, #-1
Suitable comment for instruction at PC of x3001 is ____.
R2 <-- R2 + 0
R2 <-- R5 AND 0
R2 <-- R2 AND 0
R5 <-- R5 AND 0
The condition used in Branch instruction is
R5 < 0
R2 <= 0
R2 < 0
R5 > 0
The address to branch if condition is true is ____.
x3001
x3003
x3005
x3007
The PC offset of ST instruction is ____.
0x31
0xF9
0xFA
0x37
The trap vector used in this program is ____.
x20
x21
x23
x25
The immediate value for ADD instruction at address of x3004 in decimal is ____.
-10
-1
+1
+10
The possible instruction represent the following comment is:
M[PC + PCoffset] <--- R2
LD
ST
LEA
TRAP
If the NZP of Branch instruction is set as 111, the address of the next instruction will be ____.
x3003
x3005
x3006
x3007
If the NZP of Branch instruction is set as 000, the address of the next instruction will be ____.
x3003
x3005
x3006
x3007
In solving problem using programming, the following is the basic construct except
Iterative
Conditional
Sequential
Operational
Which of the following assembly code has error?
I. ADD R2, R2, #-24
II. BRnzp #27
III. LD R2, NUMBER
IV. HALT x23
I and II
II and III
I, II and IV
I, II, III and IV
NUMBER .BLKW 7
SIX .FILL x3018
If the address of NUMBER is x3100, the address of SIX will be
x3101
x3102
x3106
x3108
NUMBER .BLKW 7
SIX .FILL x3018
TEXT .STRING "def"
If the address of NUMBER is x3100, the address of character 'f' will be
x3109
x310A
x310B
x310C
GETC is equivalent to
TRAP 20
TRAP 21
TRAP 23
TRAP 25
- scan program file
- find all labels and calculate the corresponding addresses
These statement is referring to:
First pass of assembly process
Second pass of assembly process
Symbol table
Translation
.ORIG is equivalent to
001100000000001
0011000000000011
0011110000000000
001100000011000
CPU keeps checking status register until new data arrives OR device ready for next data
This statement is referring to
Interrupt
Polling
Assembly
Coding
- Device sends a special signal to CPU when new data arrives OR device ready for next data
- CPU can be performing other tasks instead of polling device
These statements are referring to
Interrupt
Polling
Assembly
Coding
If you type "MTN3013" from your keyboard, the value for KBSR and KBDR will be
KBSR [15] = 1, KBDR [7:0] = 0011 1111
KBSR [15] = 0, KBDR [7:0] = 0011 0011
KBSR [15] = 1, KBDR [7:0] = 0011 0011
KBSR [15] = 0, KBDR [7:0] = 1111 0011
If you would like to display a character 'z' to your monitor, the value for DSR and DDR will be
DSR [15] = 1,
DDR [7:0] = 0111 1010
DSR [15] = 1,
DDR [7:0] = 0111 1010
DSR [15] = 1,
DDR [7:0] = 0011 0011
DSR [15] = 0,
DDR [7:0] = 1111 0011
Select an incorrect statements about instruction priority in LC-3
Consists of 8 priority levels
Level 8 is the highest priority
Level 8 can interrupt Level 3 instruction
Level 3 can interrupt Level 8 instruction
