Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Assembly Code

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

When writing assembly language, what is the name for the opcode part of the instruction (1 word, beginning with a silent m)

(a)  

2.

Which part of a machine code instruction does the addressing mode belong to?

a)

opcode

b)

operand

3.

What is the addressing mode called when the operand is the value to be used? (1 word)

(a)  

4.

What is the addressing mode called when the operand is a memory address? (1 word)

(a)  

5.

Which type of language gives you more control over the CPU and memory?

a)

Low level

b)

High level

6.

Which type of language can be run on more than one type of CPU?

a)

Low level

b)

High level

7.

Which type of language is faster to write and easier to read and debug?

a)

Low level

b)

High level

8.

Which type of language produces programs that use less memory?

a)

Low level

b)

High level

9.

What instruction would you run before doing CMP R0, #0 to decide if the number in R1 was odd or even?

a)

ADD R0, R1, #1

b)

AND R0, R1, #1

c)

XOR R0, R1, #1

d)

ORR R0, R1, #1

10.

Which of these is valid AQA assembly code?

a)

ADD R0 R0 1

b)

ADD R0, R0, 1

c)

ADD R0, R0, #1

d)

ADD R0 R0 #1

11.

Which of these is valid AQA assembly code?

a)

LDR R0 #100

b)

LDR R0, #100

c)

LDR R0 100

d)

LDR R0, 100

12.

Which of these is valid AQA assembly code?

a)

Loop:

B Loop

b)

Loop

B Loop

c)

Loop:

B Loop:

d)

Loop

B Loop:

13.

What pair of instructions are needed to make the equivalent of an 'if' statement in a HLL?

a)

CMP & BEQ

b)

ADD & CMP

c)

ADD & BEQ

d)

CMP & XOR

14.

What does a caesar cipher do to an alphabet?

a)

Shifts each letter along by a KEY amount

b)

Performs an XOR of each letter with a KEY

c)

Performs a hash operation on a string

15.

What happens to the PC on a BEQ instruction if the EQ status flag is NOT set?

a)

It is incremented

b)

The CPU halts

c)

It is unchanged

d)

It moves to the next label