wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

9618 15.1 RISC/CISC and Assembly

Total questions: 11

Worksheet time: 10mins

Name
Class
Date
1.

Several CISC instructions may be equivalent to a single RISC instruction

a)

TRUE

b)

FALSE

2.

CISC aims to use as few lines of assembly code as possible, even if more clock cycles are needed as a result.

a)

TRUE

b)

FALSE

3.

RISC aims to improve processing speed by simplifying instructions so that one line takes one clock cycle.

a)

TRUE

b)

FALSE

4.

RISC code may have more lines of code than the CISC equivalent

a)

TRUE

b)

FALSE

5.

Pipelining means...

a)

The fetch-decode-execute cycle runs more efficiently

b)

A full fetch-decode-execute cycle must complete before starting the next

c)

The next instruction is fetched while the previous instruction is still decoding

d)

CISC processors can run more efficiently

e)

RISC processors can run more efficiently

6.

The instruction LDI loads a value into ACC using indirect addressing. Based on the contents of the registers and memory, what value will be loaded into the ACC as a result of the instruction LDI 45?

(a)  

7.

The instruction LDX uses indexed addressing to load a value into the ACC. Based on the content of the registers and memory, write an instruction that would load the number 52 into the ACC. You can only use LDX.

(a)  

8.

There are ​ (a)   stages of processing an instruction. It takes one instruction five clock cycles to pass through all stages. Without pipelining, it would take ​ (b)   cycles to execute four instructions. With pipelining, this can be improved to just ​ (c)   cycles. Pipelining is normally only available on ​ (d)   processors.

Choose from the below words
5
20
8
RISC
4
25
15
30
10
CISC
9.

Draw logarithmic time complexity

10.

Match the following OOP terminology to the correct example

a)
Containment
1.

ClassA has an attribute of type ClassB.

b)
Inheritance
2.

ClassA receives all attributes and methods of ClassB.

c)

Polymorphism

3.

MethodA has the ability to behave differently in different situations.

d)

Encapsulation

4.

Access to attributes and methods can be limited and controlled by the programmer.

11.

Match the following declarative programming vocabulary to the code examples.

a)

Fact

1.

A concrete piece of information e.g. likes(adam, apples).

b)

Rule

2.

A clause containing at least one variable e.g. likes(adam, Food) :- isfruit(Food).

c)

Query

3.

A statement that returns either true or false, or the value of a variable e.g. likes(adam, Food).

d)

Knowledge Base

4.

A collection of clauses

e)

Clause

5.

A fact or a rule