Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Architecture Quiz

Total questions: 53

Worksheet time: 32mins

Name
Class
Date
1.

The operation of the processor is defined in terms of _____ it exectutes referred to as ____.

a)

a. machine instructions

b)

b. operations

c)

c. computer instructions

d)

d. clock cycles

2.

A fast interrupt can be interrupted by normal interrupt. True or False?

a)

True

b)

False

3.

List data processing instructions:

a)

Arithmetic, mathematic

b)

Logical, Arithmetic

c)

Mathematic, Processing

4.

The collection of different instructions that the _ can execute is referred to as the _:

a)

processor

b)

processor's instruction set

5.

Show a formula for calculation of total time required for a pipeline with k stages to execute n instructions and with cycle time tau

4 lines
6.

What is the type of addressing mode given by the algorithm EA = (A)?

(a)  

7.

Why do we need a pointer in a stack?

a)

We need it to store the address of the top of the stack

b)

We need it to store the address of the back of the stack

c)

We need it to store the address of the top of the block

d)

We need it to store the address of the back of the block

8.

This set of registers contain status information

(a)  

9.

In the ARM architecture, the PC is stored in this register

(a)  

10.

Inputs for the operation are called

a)

Source operand reference

b)

Opcode

c)

Processing system

11.

(R1) = 10100101 and (R2) = 11111111. What is the result of (R1) XOR (R2) = ?

(a)  

12.

Consider an expression X = X + Y.X and Y correspond to locations 400 and 401 in a main memory. Show the steps to accomplish this calculations with machine instructions

4 lines
13.

Operation is determined by a binary code, known as

a)

opcode

b)

Operation code

c)

IBBE

14.

The first stage in the interrupt cycle execution:

a)

In the first step, the contents of the PC are transferred to the MBR, so that they can be saved for return from the interrupt

b)

: In the first step, the contents of the PC are transferred to the MBR, so that they go to the stack

15.

Categories of user-visible registers are

a)

General purpose, Data, address, condition codes

b)

address, condition codes

c)

Address ,General purpose, Data,

d)

Condition codes

16.

A conditional branch instruction makes the address of the next instruction to be fetched unknown. True of False?

a)

True

b)

False

17.

The name of the CPSR register stands for

a)

current status program register

b)

Before status program register

18.

STRB R0, [R1, #12]!. What type of indexing is used in the given instruction?

(a)  

19.

In the ARM architecture, the PC register is visible for all modes of execution. True or False?

a)

True

b)

False

20.

In a system without virtual memory, the EA will be either a main memory address or a register. True of False?

a)

True

b)

False

21.

List elements of machine instruction

a)

Operation

b)

Operation code, Source operand reference, result operand reference, next instruction reference

c)

Result operand reference,Operation code, Source operand reference,

d)

Result operand reference, Next instruction reference

22.

For a given instruction length, there's clearly a trade-off between the number of opcodes and the power of addressing mode. True or False?

a)

True

b)

False

23.

No memory reference to obtain the operand. This is advantage of the addressing mode called _

a)

Immediate addressing

b)

Indirect addressing

c)

Direct addressing

24.

Opcodes are represented by abbreviations called ___

a)

a. instruction

b)

b. mnemonics

c)

c. immediates

d)

d. operands

25.

Displacement addressing combines the capabilities of which type addressing modes?

a)

a. Direct and immediate

b)

b. Direct and stack

c)

c. Direct and register

d)

d. Direct and register indirect

26.

Thumb instructions are unconditional, so the condition code field is not used. True or False?

a)

a. True

b)

b. False

27.

A size of instructions in the Thumb instruction set?

a)

a. 32 bits

b)

b. 16 bits

c)

c. 64 bits

d)

d. 8 bits

28.

List the types of hazards

a)

a. Resource, Data

b)

b. Resource, Data, Control, Transfer

c)

c. Resource, Data, Control

d)

d. Resource, Control

29.

What addressing mode is used for indexing?

a)

a. Direct and register

b)

b. Stack

c)

c. Displacement

d)

d. Immediate

30.

The register indirect addressing requires two memory references. True or False?

a)

a. True

b)

b. False

31.

This register contains the address of a location in memory

a)

a. MBR

b)

b. MAR

c)

c. PC

d)

d. IR

32.

This register contains the address of an instruction to be fetched

a)

a. PC

b)

b. MBR

c)

c. MAR

d)

d. IR

33.

What does the fetch stage perform?

a)

Reads the next instruction from memory into the processor

b)

Reads the current instruction from memory into the processor

c)

Reads the next instruction from memory into the another part of the memory

d)

Reads the next instruction from processor into the memory

34.

List data processing instructions

a)

a. test and branch instructions

b)

b. logic instructions, test and branch instructions

c)

c. arithmetic, I/O instructions

d)

d. arithmetic, logic instructions

35.

What is the type of addressing mode given by the algorithm Operand = A?

a)

a. Operand

b)

b. Register indirect

c)

c. Direct

d)

d. Immediate

36.

How many execution modes does the ARM architecture support?

a)

a. 8

b)

b. 6

c)

c. sometimes 6, sometimes 7

d)

d. 7

37.

No memory reference to obtain the operand. This is advantage of the addressing mode called ___

a)

a. Immediate direct

b)

b. Register

c)

c. Immediate

d)

d. Direct

38.

Data registers can be employed in the calculation of an operand address. True or False?

a)

a. False

b)

b. True

39.

(R1) = 10100101 and (R2) = 00001111. What is the result of (R1) AND (R2) = ?

a)

a. 00010101

b)

b. 00000101

c)

c. 00011011

d)

d. 10100101

40.

What does the fetch stage perform?

a)

a. Reads the next instruction from memory into the processor

b)

b. Reads the current instruction from memory into the processor

41.

Status information is contained in this set of registers:

a)

a. MAR

b)

b. MBR

c)

c. PSW

d)

d. PC

42.

What is the type of addressing mode given by the algorithm EA = A?

a)

a. Register indirect

b)

b. Register

c)

c. Indirect

d)

d. Direct

43.

In a virtual memory system, the EA is a virtual address or a register. True or False?

a)

a. False

b)

b. True

44.

In this type of shift operation, the data are treated as a signed integer and the sign bit is not shifted.

a)

a. Logical shift left

b)

b. Logical

c)

c. Arithmetic

d)

d. Arithmetic shift right

45.

What is the type of addressing mode given by the algorithm EA = (R)?

a)

a. Direct

b)

b. Register indirect

c)

c. Register direct

d)

d. Indirect

46.

In a system without virtual memory, the EA will be either a main memory address or a register. True or False?

a)

a. False

b)

b. True

47.

The memory address is the base register value. An offset is added or subtracted from the base register value and the result is written back to the base register. What type of indexing is this?

a)

a. Offset

b)

b. Postindex

c)

c. No such indexing exists

d)

d. Preindex

48.

What is the type of addressing mode given by the algorithm EA = A + (R)?

a)

a. Register indirect

b)

b. Displacement

c)

c. Indirect

d)

d. Register-displacement

49.

These instructions operate on the bits of a word as bits rather than as numbers

a)

a. Logic

b)

b. I/O

c)

c. Branch

d)

d. Arithmetic

50.

List main components of a CPU?

a)

a. ALU, system bus, control unit

b)

b. ALU, registers, internal CPU bus

c)

c. ALU, registers, control unit

d)

d. ALU, control unit, control paths

51.

In the ARM architecture, the stack pointer address is stored in this register

a)

a. R15

b)

b. R13

c)

c. R18

d)

d. R14

52.

This register contains a word of data to be written to memory or the word most recently read.

a)

a. MAR

b)

b. IR

c)

c. MBR

d)

d. PC

53.

List the stages of instruction cycle

a)

a. Fetch, Execute, Interrupt

b)

b. Fetch, Encode, Execute, Decode, Interrupt

c)

c. Fetch, Encode, Execute, Interrupt

d)

d. Fetch, Decode, Interrupt