You are on page 1of 5

Computer Architecture

Page 1 of 5

Little Man Computer


SECTION A
Multiple Choice Questions
1.

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

The LMC code 556 means to ____________.

a)
b)
c)
d)

Load the value in address 56 into the calculator


add the value in address 56 into the value already in the calculator
Store the value in the calculator into address 56
add the value in the calculator to the number in address 56

3.

The LMC instruction code format "ABC", is defined as ____________.


a)
A is the operation code and BC is the address
b)
AB is the operation code and C is the address
c)
C is the operation code and AB is the address
d)
A is the operation code, B is the address offset and C is the MAILBOX

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.

integer -999 to +999


whole numbers from 000 to 999
excess-500, ranges from 000 to 999
excess-100, ranges from -999 to 999

The numbers used in the mailbox addresses in the LMC are what data type and range?

a)
b)
c)
d)

Level 1

read the INBOX


increment the value in the calculator
fetch the value in the calculator
fetch the value in the location counter

integer -99 to +99


whole numbers from 00 to 99
excess-50, ranges from 00 to 99
excess-100, ranges from -99 to 99

Asia Pacific University of Information Technology

Tutorial

Computer Architecture

8.

What component is NOT part of the LMC?

a)
b)
c)
d)
9.

9
8
7
6

The OUTPUT instruction is defined as op-code ____________.

a)
b)
c)
d)

Level 1

1
2
3
0

The INPUT instruction is defined as op-code ____________.

a)
b)
c)
d)
15.

1
2
3
4

The COFFEE BREAK or HALT instruction is defined as op-code ____________.

a)
b)
c)
d)
14.

1
2
3
4

The ADD instruction is defined as op-code ____________.

a)
b)
c)
d)
13.

2
3
4
5

The STORE instruction is defined as op-code ____________.

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

The LOAD instruction is defined as op-code ____________.

a)
b)
c)
d)
11.

instruction counter
OUT BASKET
IN BASKET
Op Code

The ways to communicate with the LMC are ____________.

a)
b)
c)
d)
10.

Page 2 of 5

9
8
7
6

Asia Pacific University of Information Technology

Tutorial

Computer Architecture

16.

The SUBTRACT instruction is defined as op-code ____________.

a)
b)
c)
d)
17.

1, 2, 3, and 5
1, 2, and 5
3 and 5
1,2, and 3

The LMC instruction code(s) to branch or loop are ____________.

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.

to STORE the value in the calculator into address 23


to STORE the value in the calculator into address 89
to STORE the value into the calculator
to BRANCH to address 23 and resume execution

What instruction code(s) replace (overwrite) the old value in the mailbox?

a)
b)
c)
d)
22.

just the value 278


SUBTRACT the value located in address 78
SUBTRACT the value located in address 42
SUBTRACT the value located in the calculator

If the value 323, stored at address 89, is being executed, then I know ____________.

a)
b)
c)
d)
21.

433
333
533
833

The value 278 in address 42 means ____________.

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

Asia Pacific University of Information Technology

Tutorial

Computer Architecture

24.

The last step of the Little Man is to ____________.

a)
b)
c)
d)
25.

help make a program listing easier to read


help the computer understand exactly what the instruction is
help desk check the program for errors
help the programmer make a flow diagram

If the value in the calculator is 46, and the instruction being executed is 877, the Little Man

a)
b)
c)
d)

Level 1

made up of a control unit, instruction pointer, and instructions stored as data


made up of a arithmetic unit, memory, and instructions stored as data
made up of a control unit, arithmetic unit and memory
made up of a CPU and memory

Mnemonics are used in program listings to ____________.

a)
b)
c)
d)
28.

by efficiency of program execution


by both priority evaluation and efficiency of program execution
sequentially starting at the first address 00
sequentially starting at the first address of execution

Von Neumann defined the functional organization of the computer to be ____________.

a)
b)
c)
d)
27.

increment the program counter


decode the next instruction
store the results of a computation unless it is an I/O operation
store the results of a computation

Memory containing the instructions is accessed ____________.

a)
b)
c)
d)
26.

Page 4 of 5

jump to address 77 and continue to execute instructions


continue to next executable instruction
continue to next instruction regardless if it is an instruction or not
read the IN BOX

Asia Pacific University of Information Technology

Tutorial

Computer Architecture

Page 5 of 5

SECTION B
Exercises
29.

Write LMC program to produce the sum of three input values.

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

List and explain five (5) guidelines of Von Neumann architecture.

Asia Pacific University of Information Technology

Tutorial

You might also like