wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Architecture and Organization

Total questions: 55

Worksheet time: 29mins

Name
Class
Date
1.

Convert the following integer as a 2's complement: -330

a)

1010111110

b)

1010110110

c)

1110110111

d)

1111110111

2.

Convert the following 2's complement integer number to a decimal number:

111 1111 1111 1111 1111 1011

a)

-123

b)

123

c)

-5

d)

-3206

3.

What is the 2's complement of 01 0001 0101?

a)

10 1111 1111

b)

10 1110 1011

c)

11 1111 1011

d)

10 1110 1111

4.

-15 in a sign magnitude representation is

a)

10111

b)

01111

c)

11111

d)

10101

5.

For an 8 bit signed integer number, the range of integers is

a)

-32 to +31

b)

-128 to +127

c)

0 to 256

d)

-64 to +63

6.

How many bits will be required to represent -88 as a 2's complement signed integer number?

a)

6 bit

b)

10 bit

c)

12 bit

d)

9 bit

7.

-32 can be represented as a sign magnitude number as

a)

00100000

b)

10100000

c)

11100000

d)

10101000

8.

The first complement of -32 is (assume 8 bit number)

a)

11011111

b)

10100000

c)

11100000

d)

11011011

9.

What is the weight of the most significant bit of an 8 bit signed integer?

a)

128

b)

-128

c)

256

d)

-256

10.

Convert the following the following 2's complement signed integer into decimal:

100001110

a)

-242

b)

-252

c)

-262

d)

-272

11.

Convert decimal 104 to hexadecimal number

a)

x84

b)

x32

c)

x68

d)

x45

12.

Convert x33EF to binary

a)

0111001111111111

b)

0011111111101111

c)

0111011111101111

d)

0011001111101111

13.

Convert octal number 456 (base 8) to binary (base 2)

a)

100101110

b)

111101110

c)

100101111

d)

100111111

14.

Convert x304E to octal number

a)

31116

b)

30116

c)

3116

d)

316

15.

Which of the following operation will result in overflow?

a)

01001 + 01000

b)

01000 + 00100

c)

01001 + 00100

d)

01000 + 10100

16.

Represent 100.625 (decimal) as a fixed point fraction (binary)

a)

1100100.111

b)

1100100.101

c)

1111100.101

d)

1100111.101

17.

"MTN" can be written as ____ in ASCII code

a)

x4D544E

b)

x4D644E

c)

x4D554E

d)

x4D5E4E

18.

Name component A, B and C

a)

A: Memory, B: Control Unit, C: CPU

b)

A: Control Unit, B: Memory, C: CPU

c)

A: Memory, B: CPU, C: Control Unit

d)

A: Control Unit, B: CPU, C: Memory

19.

What is the function of component B

a)

Communicate between CPU, memory and I/O

b)

Move data between computer and external environment

c)

Keep data during process

d)

Perform data processing and control computer operations

20.

What is the function of component A

a)

Communicate between CPU, memory and I/O

b)

Move data between computer and external environment

c)

Keep data during process

d)

Perform data processing and control computer operations

21.

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

a)

I

b)

I and II

c)

I, II and III

d)

I, II, III and IV

22.

Instruction register (IR) consists of current instruction address

a)

True

b)

False

23.

Program Counter (PC) consists of address of the current instruction

a)

True

b)

False

24.

The "F" step of instruction processing is known as

a)

Folding

b)

Fetch

c)

Fixing

d)

Decode

25.

In D steps, _____

a)

compute the address required for memory access.

b)

load the next instruction to IR and increment of PC.

c)

the opcode of the instruction is determined.

d)

determine source operands needed to perform operations.

26.

In OP step, _____

a)

compute the address required for memory access.

b)

load the next instruction to IR and increment of PC.

c)

the opcode of the instruction is determined.

d)

determine source operands needed to perform operations.

27.

In EA step, _____

a)

compute the address required for memory access.

b)

load the next instruction to IR and increment of PC.

c)

the opcode of the instruction is determined.

d)

determine source operands needed to perform operations.

28.

The following instruction belongs to ____ type of instruction:

0 0 0 1 0 1 0 0 0 1 1 0 1 1 1 0

a)

control

b)

operate

c)

add

d)

data movement

29.

The instruction for the following operation is:

R2 <-- R3 + R5

a)

0001010011000101

b)

0010010011000101

c)

0001010011000111

d)

0101010011000101

30.

The instruction for the following operation is:

R2 <-- R3 - 5

a)

0001010011000101

b)

0001010011111011

c)

0001010011011111

d)

0001010011011011

31.

Which of the following is not one of the control instructions?

a)

JMP

b)

TRAP

c)

BR

d)

SDI

32.

Which of the following is not one of the data movement instructions?

a)

SDI

b)

LEA

c)

BR

d)

LD

33.

Equivalent assembly code for instruction at address of x3004 is ____.

a)

ADD R5, R5, #-1

b)

AND R5, R5, #-1

c)

ADD R5, R5, #-5

d)

ADD R3, R5, #-1

34.

Equivalent assembly code for instruction at PC of x3003 is ____.

a)

LD R3, FE

b)

LD R5, FE

c)

ADD R5, R5, #-5

d)

ADD R3, R5, #-1

35.

Suitable comment for instruction at PC of x3001 is ____.

a)

R2 <-- R2 + 0

b)

R2 <-- R5 AND 0

c)

R2 <-- R2 AND 0

d)

R5 <-- R5 AND 0

36.

The condition used in Branch instruction is

a)

R5 < 0

b)

R2 <= 0

c)

R2 < 0

d)

R5 > 0

37.

The address to branch if condition is true is ____.

a)

x3001

b)

x3003

c)

x3005

d)

x3007

38.

The PC offset of ST instruction is ____.

a)

0x31

b)

0xF9

c)

0xFA

d)

0x37

39.

The trap vector used in this program is ____.

a)

x20

b)

x21

c)

x23

d)

x25

40.

The immediate value for ADD instruction at address of x3004 in decimal is ____.

a)

-10

b)

-1

c)

+1

d)

+10

41.

The possible instruction represent the following comment is:

M[PC + PCoffset] <--- R2

a)

LD

b)

ST

c)

LEA

d)

TRAP

42.

If the NZP of Branch instruction is set as 111, the address of the next instruction will be ____.

a)

x3003

b)

x3005

c)

x3006

d)

x3007

43.

If the NZP of Branch instruction is set as 000, the address of the next instruction will be ____.

a)

x3003

b)

x3005

c)

x3006

d)

x3007

44.

In solving problem using programming, the following is the basic construct except

a)

Iterative

b)

Conditional

c)

Sequential

d)

Operational

45.

Which of the following assembly code has error?

I. ADD R2, R2, #-24

II. BRnzp #27

III. LD R2, NUMBER

IV. HALT x23

a)

I and II

b)

II and III

c)

I, II and IV

d)

I, II, III and IV

46.

NUMBER .BLKW 7

SIX .FILL x3018

If the address of NUMBER is x3100, the address of SIX will be

a)

x3101

b)

x3102

c)

x3106

d)

x3108

47.

NUMBER .BLKW 7

SIX .FILL x3018

TEXT .STRING "def"

If the address of NUMBER is x3100, the address of character 'f' will be

a)

x3109

b)

x310A

c)

x310B

d)

x310C

48.

GETC is equivalent to

a)

TRAP 20

b)

TRAP 21

c)

TRAP 23

d)

TRAP 25

49.

- scan program file

- find all labels and calculate the corresponding addresses

These statement is referring to:

a)

First pass of assembly process

b)

Second pass of assembly process

c)

Symbol table

d)

Translation

50.

.ORIG is equivalent to

a)

001100000000001

b)

0011000000000011

c)

0011110000000000

d)

001100000011000

51.

CPU keeps checking status register until new data arrives OR device ready for next data

This statement is referring to

a)

Interrupt

b)

Polling

c)

Assembly

d)

Coding

52.

- 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

a)

Interrupt

b)

Polling

c)

Assembly

d)

Coding

53.

If you type "MTN3013" from your keyboard, the value for KBSR and KBDR will be

a)

KBSR [15] = 1, KBDR [7:0] = 0011 1111

b)

KBSR [15] = 0, KBDR [7:0] = 0011 0011

c)

KBSR [15] = 1, KBDR [7:0] = 0011 0011

d)

KBSR [15] = 0, KBDR [7:0] = 1111 0011

54.

If you would like to display a character 'z' to your monitor, the value for DSR and DDR will be

a)

DSR [15] = 1,

DDR [7:0] = 0111 1010

b)

DSR [15] = 1,

DDR [7:0] = 0111 1010

c)

DSR [15] = 1,

DDR [7:0] = 0011 0011

d)

DSR [15] = 0,

DDR [7:0] = 1111 0011

55.

Select an incorrect statements about instruction priority in LC-3

a)

Consists of 8 priority levels

b)

Level 8 is the highest priority

c)

Level 8 can interrupt Level 3 instruction

d)

Level 3 can interrupt Level 8 instruction