CSE 230 midterm 1 Questions With Complete Solutions
A compiler can be written to generate machine language for
(any, only one) target ISA. Correct Answers any
A name for a memory address Correct Answers label
A trait of code that means source code can be modified as
required and recompiled to run on a different machine Correct
Answers portability
A type of architecture in which only special load and store
instructions can access memory Correct Answers load/store
architecture
A virtual instruction implemented by the assembler and is just a
sequence of one or more physical instructions Correct Answers
pseudoinstruction
Addresses where data comes from and where it goes when it is
executed Correct Answers addressing mode
An assembly language programmer's view of the microprocessor
Correct Answers instruction set architecture
Assembly language instructions that can be executed by the
processor Correct Answers instruction set
Binary encoding of instructions and data Correct Answers
machine language
, Create an array x of 100 bytes all initialized to 0 Correct
Answers x: .space 100
Create an array x of 22 words all initialized to 18 Correct
Answers x: .word 18 : 22
Create an array x of four bytes 0, 1, 2, 3 Correct Answers
x: .byte 0, 1, 2, 3
Create an array x of words 10, 20, 30, 40, 50 Correct Answers
x: .word 10, 20, 30, 40, 50
Create an array x with 50 bytes all initialized to 1 Correct
Answers x: .byte 1 : 50
Data on which an instruction operates Correct Answers
operand
Device which generates the master clock signal and coordinates
the activities of a system Correct Answers system clock
Exit the program Correct Answers .eqv SYS_EXIT 10; addi
$v0, $zero, SYS_EXIT; syscall
HLLs are generally hardware-(dependent, independent). Correct
Answers independent
How many bits make up a half-word? Correct Answers 16
How many bits make up a word? Correct Answers 32
A compiler can be written to generate machine language for
(any, only one) target ISA. Correct Answers any
A name for a memory address Correct Answers label
A trait of code that means source code can be modified as
required and recompiled to run on a different machine Correct
Answers portability
A type of architecture in which only special load and store
instructions can access memory Correct Answers load/store
architecture
A virtual instruction implemented by the assembler and is just a
sequence of one or more physical instructions Correct Answers
pseudoinstruction
Addresses where data comes from and where it goes when it is
executed Correct Answers addressing mode
An assembly language programmer's view of the microprocessor
Correct Answers instruction set architecture
Assembly language instructions that can be executed by the
processor Correct Answers instruction set
Binary encoding of instructions and data Correct Answers
machine language
, Create an array x of 100 bytes all initialized to 0 Correct
Answers x: .space 100
Create an array x of 22 words all initialized to 18 Correct
Answers x: .word 18 : 22
Create an array x of four bytes 0, 1, 2, 3 Correct Answers
x: .byte 0, 1, 2, 3
Create an array x of words 10, 20, 30, 40, 50 Correct Answers
x: .word 10, 20, 30, 40, 50
Create an array x with 50 bytes all initialized to 1 Correct
Answers x: .byte 1 : 50
Data on which an instruction operates Correct Answers
operand
Device which generates the master clock signal and coordinates
the activities of a system Correct Answers system clock
Exit the program Correct Answers .eqv SYS_EXIT 10; addi
$v0, $zero, SYS_EXIT; syscall
HLLs are generally hardware-(dependent, independent). Correct
Answers independent
How many bits make up a half-word? Correct Answers 16
How many bits make up a word? Correct Answers 32