The ALU can compute a fixed set of functions on its two 16-bit inputs

computer science

Description

 

  1.            
    Which of the             following statemen(s) about the Hack ALU is/are WRONG?

Circle the letter corresponding to the wrong alternative(s)

a. The ALU is part of the computer's CPU

b. The ALU is eventually based on a set of NAND gates

c. The ALU can compute a fixed set of functions on its two 16-bit inputs

d. The ALU implementation is based on sequential logic

e. The efficiency of the ALU is related to the efficiency of the Adder chip

 

2. In the Hack machine language, the ability to use a command like @label before the label was actually declared in the program is thanks to the

a. fact that the order of HDL statements is insignificant

b. subsequent VM translation process

c. multi-purpose use of the A register

d. fact that the program counter feeds directly from the A register

e. two-pass assembly process

 

 

 

 

 

 

3. You have to implement the VM language presented in this course. Which of the following virtual segments is the easiest to handle?

a. static

b. local

c. argument

d. constant

e. this

 

4. The return value of a function when it is completed is stored, in:

 

a. calling Frame Arg[?]

b. calling Frame LCL

c. calling Frame SP

d. working Frame Arg[?]

e. working Frame LCL

f. working Frame SP

g. none of the above

 

5. A symbol may be:

 

a. @followed by a number

b. @followed by a lower case word

c. @followed by upper case word

d. a and b

e. b and c

f. All of the above

 

6. True/False? Mark T for true or F for false

 

_____the condition i <= 100 is equivalent to i - 100 <= 0


Related Questions in computer science category