Professional Documents
Culture Documents
Page 1 of 5
Which of the following keeps track of the location where the Little Man must look for the
next instruction in Little Man Computer?
a)
b)
c)
d)
2.
Hand Counter
Calculator
Mail Box
Input-tray
a)
b)
c)
d)
3.
4.
The concept that instructions and data are indistinguishable, except in how they are
used, provides ____________.
a)
for more program simplicity and is widely adopted
b)
for more program complexity and is not widely adopted
c)
for programmers to modify instructions and then execute them
d)
for programmers to test program efficiency independent of the contents of the
data
5.
In all cases, the first thing the Little Man does is ____________.
a)
b)
c)
d)
6.
The numbers used to hold the mailbox values in the LMC are what data type and range?
a)
b)
c)
d)
7.
The numbers used in the mailbox addresses in the LMC are what data type and range?
a)
b)
c)
d)
Level 1
Tutorial
Computer Architecture
8.
a)
b)
c)
d)
9.
9
8
7
6
a)
b)
c)
d)
Level 1
1
2
3
0
a)
b)
c)
d)
15.
1
2
3
4
a)
b)
c)
d)
14.
1
2
3
4
a)
b)
c)
d)
13.
2
3
4
5
a)
b)
c)
d)
12.
IN BASKET
N BASKET / OUT BASKET
IN BASKET / OUT BASKET and the reset button
three-digit numbers placed in the IN BASKET
a)
b)
c)
d)
11.
instruction counter
OUT BASKET
IN BASKET
Op Code
a)
b)
c)
d)
10.
Page 2 of 5
9
8
7
6
Tutorial
Computer Architecture
16.
a)
b)
c)
d)
17.
1, 2, 3, and 5
1, 2, and 5
3 and 5
1,2, and 3
a)
b)
c)
d)
Level 1
1, 2, 3, and 5
2, 3, and 5
1,2, and 3
just 3
What instruction code(s) replace (overwrite) the old value in the calculator?
a)
b)
c)
d)
23.
What instruction code(s) replace (overwrite) the old value in the mailbox?
a)
b)
c)
d)
22.
If the value 323, stored at address 89, is being executed, then I know ____________.
a)
b)
c)
d)
21.
433
333
533
833
a)
b)
c)
d)
20.
456
356
956
856
The code to load the value into the calculator from address 33 one uses LMC code _____
a)
b)
c)
d)
19.
1
2
3
4
The code to store the value in the calculator to the address 56 one uses LMC code _____
a)
b)
c)
d)
18.
Page 3 of 5
just 7
just 8
7 and 8
6, 7 and 8
Tutorial
Computer Architecture
24.
a)
b)
c)
d)
25.
If the value in the calculator is 46, and the instruction being executed is 877, the Little Man
a)
b)
c)
d)
Level 1
a)
b)
c)
d)
28.
a)
b)
c)
d)
27.
a)
b)
c)
d)
26.
Page 4 of 5
Tutorial
Computer Architecture
Page 5 of 5
SECTION B
Exercises
29.
30.
Write a LMC program that able to calculate the perimeter of a rectangle, based on two
input values.
31.
Write a LMC program, enter two input value and find out the largest among the two
input number.
32.
Write a program to stop at 100, and restoring (Loop) the value each time after checking the
count. The output of the program is 2,4,6,8,10.98 (even numbers from to 100)
33.
A complete Little Man Computer (LMC) program is shown below. Carefully trace
through the program find out the task performed by this program and provide suitable
working steps indicating clearly how you arrived at the solution.
00
01
02
03
04
05
06
07
08
09
10
11
34.
Level 1
LDA 09
OUT
ADD 10
STO 12
SUB 11
BRP 08
LDA 12
BR 01
HLT
DAT 02
DAT 02
DAT 100
509
902
110
312
211
808
512
601
000
002
002
100
Tutorial