wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Instructions & Programs

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

An ALU, control unit, some memory, and a clock can be combined together to make a basic, but functional ___

a)

Unit of Programmable Control

b)

Centric Programming Unit

c)

Central Processing Unit

d)

Programming Central Unit

2.

The thing that makes a CPU powerful is the fact that it is ___

a)

precise

b)

logical

c)

fast

d)

programmable

3.

The CPU is a piece of hardware which is controlled by easy-to-modify ___

a)

software

b)

hardware

c)

firmware

d)

smoothware

4.

How many bits of data were contained in each address of the sample computer memory?

a)

2 bits

b)

4 bits

c)

8 bits

d)

16 bits

5.

For our hypothetical CPU, the first four bits of data specified the ___

a)

register

b)

operation code

c)

address

d)

load instruction

6.

For our hypothetical CPU, the second set of four bits of data specified ___

a)

an opcode

b)

the operation code

c)

an address or registers

d)

the load instruction

7.

The eight bits of data, “0010 1110”, is much easier to read and understand when it's written as ____

a)

LOAD_A 13

b)

LOAD_A 14

c)

LOAD_B 15

d)

LOAD_B 16

8.

Which component of a computer's central processing unit performs an "ADD" instruction?

a)

the ALU

b)

a register

c)

the control unit

d)

RAM

9.

Which instruction is used to change the order of instructions, or to skip some instructions?

a)

LOAD

b)

STORE

c)

SKIP

d)

JUMP

10.

The instruction JUMP 0 would cause the program to go ___

a)

back to the beginning

b)

to the previous command

c)

to check the ALU negative flag

d)

to the end of a program

11.

The instruction JUMP_NEGATIVE only jumps the program if ___

a)

it jumps to the beginning

b)

it's a jump back in the code

c)

the ALU’s negative flag is set to true

d)

it's a jump forward in the code

12.

Computers need to be told when to stop processing, so we need a ___

a)

TERMINAL instruction

b)

CUTOFF instruction

c)

END instruction

d)

HALT instruction

13.

When a program runs forever, and never hits a HALT instruction, it's called ___

a)

bottomless code

b)

a never-ending computation

c)

an infinite loop

d)

a conditional jump

14.

To break out of an infinite loop, what kind of instruction was used?

a)

a conditional jump

b)

a syntax error

c)

a logical error

d)

a HALT instruction

15.

JUMP_NEGATIVE and JUMP IF EQUAL are examples of ___

a)

a conditional jump

b)

an explicit jump

c)

a halt instruction

d)

an explicit instruction

16.

For the instruction JUMP_NEGATIVE 5, the CPU executes the jump to memory location 5 only if ___

a)

the ALU's negative flag is false

b)

the ALU's negative flag is true

c)

it precedes a HALT instuction

d)

location 5 holds a negative value

17.

What new functionality was created by software rather than by the hardware of the ALU?

a)

adding two numbers

b)

subtracting two numbers

c)

dividing two numbers

d)

negative sums

18.

What is the maximum number of instructions when using 4 bit operation codes?

a)

4

b)

8

c)

16

d)

32

19.

In order to incorporate more instructions, modern CPUs use large instruction lengths, as well as ___

a)

defined length instructions

b)

more registers

c)

more RAM

d)

variable length instructions

20.

In 1971, who released the 4004 processor, the first CPU put all into a single chip?

a)

HP

b)

AMD

c)

IBM

d)

Intel

21.

How many instructions were supported by Intel's 4004 processor, the first CPU put all into a single chip?

a)

8

b)

16

c)

32

d)

46

22.

The Intel Core i7 has thousands of different instructions and instruction variants, ranging from one to ___

a)

15 bits long

b)

32 bits long

c)

15 bytes long

d)

32 bytes long