wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

WJEC 2.3.3 Assembly Language

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Every computer processor has the same instruction set

a)

True

b)

False

2.

What are the 2 parts of the instruction?

a)

Opinstruction and Opmemory

b)

Opcommand and Opstate

c)

Opcode and Operand

d)

Opcommand and Opmemory

3.
What is Assembly code?
a)
Another name for Pseudocode
b)
A programming language that uses mnemonic codes
c)
A program that joins pieces of code together
d)
Another name for machine code
4.

In Little Man Computer which assembly instruction loads a value from memory onto the accumulator?

a)

STA x

b)

LDA x

c)

ADD x

d)

SUB x

e)

INP

5.

In Little Man Computer which assembly instruction stores the value in the accumulator to a memory location?

a)

STA x

b)

LDA x

c)

ADD x

d)

SUB x

e)

INP

6.

What translates assembly code into machine code?

a)

compiler

b)

assembler

c)

linker

d)

loader

e)

interpreter

7.

Each assembly instruction usually has an address or data called an

a)

opcode

b)

operand

c)

mnemonic

d)

instruction set

8.
Different CPUs require different assemblers.
a)
True
b)
False
9.
What is machine code?
a)
Instructions in binary
b)
Instructions and data in binary
c)
Python code
d)
Mnemonics like LDA
10.
What does the store instruction need to go with it
a)
The data to be stored
b)
Nothing
c)
A second istruction
d)
The memory location to store the data in the accumulator
11.
Little Man wants to read an input from user. Hence, he needs to use .....
a)
INP
b)
OUT
c)
LDA
d)
DAT
12.
What does the following instruction do in LMC: 
A DAT 5
a)
Creates a memory location called B
b)
Creates a memory location labelled 5 which stores the letter A
c)
Create a memory location labelled A which stores the number 5
d)
Creates a memory location labelled C
13.

What Mnemonic is used by the LMC to stop the program

a)

HLT

b)

STO

c)

STP

d)

STA

14.

What Mnemonic is used for Addition by the LMC

a)

ADD

b)

ADS

c)

ODD

d)

IDD

15.

What Mnemonic is used to Subtract by the LMC

a)

SUB

b)

SBU

c)

SBB

d)

SUU