CS250 Exam 1 Study Guide #1 Questions with Correct Answers
An assembler translates machine language instructions like
1000110010100000
to assembly language instructions like
add A,B. (T / F) - ✔✔True
Execution Time Formula is: - ✔✔CPU Time = Instructions * (Cycles per Instruction)
* Clock Cycle Time
The central ideal that this course is built around is the __________ - ✔✔ISA
The MIPS CPU is able to directly execute MIPS assembly programs. (T/F) -
✔✔False
Match the math statements below with the C type where the statement is
incorrect.
x + 1 > x - ✔✔Integers
Match the math statements below with the C type where the statement is
incorrect.
a + b = b + a - ✔✔Neither int or float
Match the math statements below with the C type where the statement is
incorrect.
(a + b) + c = a + (b + c) - ✔✔float (rounding)
, MIPS, like the X86, are both CISC computers? (T/F) - ✔✔False, MIPS is RISC
The R in RISC is for reduced. What about a RISC ISA is reduced. - ✔✔The
instructions in the ISA are simpler.
Operand - ✔✔A value that is the source or destination of an assembly language
task.
Operator - ✔✔The task that an assembly instruction performs.
An Instruction Set Architecture must define - ✔✔How many operands for each
operation, The encoding of the machine code, Where the operands can be found,
Which operations are available
An integrated circuit is often called a - ✔✔chip
Computers use binary because binary is more powerful than decimal numbers
(T/F) - ✔✔False
A CPU is also known as a - ✔✔processor
Is li a psuedoinstruction or a real instruction in MIPS? - ✔✔Psuedo
Is subi a pseudo instruction or a real instruction in MIPS? - ✔✔Pseudo
An assembler translates machine language instructions like
1000110010100000
to assembly language instructions like
add A,B. (T / F) - ✔✔True
Execution Time Formula is: - ✔✔CPU Time = Instructions * (Cycles per Instruction)
* Clock Cycle Time
The central ideal that this course is built around is the __________ - ✔✔ISA
The MIPS CPU is able to directly execute MIPS assembly programs. (T/F) -
✔✔False
Match the math statements below with the C type where the statement is
incorrect.
x + 1 > x - ✔✔Integers
Match the math statements below with the C type where the statement is
incorrect.
a + b = b + a - ✔✔Neither int or float
Match the math statements below with the C type where the statement is
incorrect.
(a + b) + c = a + (b + c) - ✔✔float (rounding)
, MIPS, like the X86, are both CISC computers? (T/F) - ✔✔False, MIPS is RISC
The R in RISC is for reduced. What about a RISC ISA is reduced. - ✔✔The
instructions in the ISA are simpler.
Operand - ✔✔A value that is the source or destination of an assembly language
task.
Operator - ✔✔The task that an assembly instruction performs.
An Instruction Set Architecture must define - ✔✔How many operands for each
operation, The encoding of the machine code, Where the operands can be found,
Which operations are available
An integrated circuit is often called a - ✔✔chip
Computers use binary because binary is more powerful than decimal numbers
(T/F) - ✔✔False
A CPU is also known as a - ✔✔processor
Is li a psuedoinstruction or a real instruction in MIPS? - ✔✔Psuedo
Is subi a pseudo instruction or a real instruction in MIPS? - ✔✔Pseudo