Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSE 230 Exam | Answered with complete solutions

Rating
-
Sold
-
Pages
12
Grade
A
Uploaded on
26-02-2025
Written in
2024/2025

CSE 230 Exam | Answered with complete solutions In the compilation process, the ______ arranges the symbol table in memory and generates final executable machine code. Backend Select which of the following are part of the compilation process: Lexical Analysis Syntax Analysis Optimization Linking Code Generation In the compilation process, the ______ performs program analysis and optimization. Middle Stage Which of the follow best matches the definition for Syntax Analysis? Performs syntax rules checking and constructs a symbol table and abstract syntax tree. Which of the follow best matches the definition for Lexical Analysis? Separates the input source code text into tokens. Which of the follow best matches the function of the Middle Stage in the compilation process? Performs program analysis and optimization. In the compilation process, the ______ separates the input source code text into tokens. Lexical Analyzer (lexer) A computer consists of five major modules. What module do registers belong to? Data Path The ______ of the CPU stores a small number of pieces of information, commonly the temporary results of calculations. Registers Which of the following best matches the definition of the Bus? Carries data between the ALU, registers, memory, and peripherals. The ______ of the CPU acts as an interface between the processor and the outside world, including long-term storage and user interfaces. IO / Peripherals A computer consists of five major modules. What module does ALU belong to? Data Path If two computers made by different companies have the same machine language, that means they have the same: Architecture Which of the following best matches the definition of the Datapath? Contains the ALU and Registers, and the interconnection between them. The ______ of the CPU carries data between the ALU, registers, memory, and peripherals. Bus The ______ of the CPU contains the ALU and Registers, and the interconnection between them. Datapath Which of the following best matches the definition of the Control Unit? Coordinates the flow of information around the processor. The ______ of the CPU stores a small number of pieces of information, commonly the temporary results of calculations. Registers Instruction cycle fetch, decode, execute, store Decode Hardware Data Memory Control Unit Fetch Hardware Instruction Memory Program Counter Execute Hardware ALU Store Hardware Data Memory Program Counter System Clock Coordinates Activity Latches Memory Select the hardware that is active during the Execute Stage of the instruction cycle: ALU Which of the following are stages in the instruction cycle? Execute Decode Fetch Store Which of the following are NOT stages in the instruction cycle? Link Jump A program consisting of 323 instructions is executing on a simple processor. Each instruction takes 4 cycles to complete, with a clock rate of 339 KHz. How long will it take to execute the program? Give your answer in units of milliseconds with at least 1 decimal place of precision. 3.8 Select the hardware that is active during the Store stage of the instruction cycle: Data Memory Program Counter Select the hardware that is active during the Fetch Stage of the instruction cycle: Program Counter Instruction Memory A program consisting of 946 instructions is executing on a simple processor. Each instruction takes 2 cycles to complete, with a clock rate of 6 MHz. How long will it take to execute the program? Give your answer in units of microseconds with at least 1 decimal place of precision 315.3 clock frequency f = 1/T (1Hz = 1 cycle per second) Speed 1 Program Execution / Time X is n times faster than Y SpeedX / SpeedY = n TimeY/TimeX = n Pareto Principle 80% of results generated by 20% of code What design effort can improve the performance of a computer? Decrease the clock cycles used by the program. Decrease the CPI In comparing two computers, we execute a benchmark on each and measure the resulting speeds: Computer A: 733 Computer B: 979 How many times faster is Computer A than Computer B? .7 Which of the follow best matches this definition: The total number of instructions in a given program. Instruction Count Which of the follow best matches this definition: The duration of one clock cycle in seconds. Clock Period Which of the follow best matches this definition: The frequency of the clock signal, in cycles per second. Clock Rate In comparing two computers, we execute a benchmark on each and measure the resulting execution times: Computer A: 85 Computer B: 243 How many times faster is Computer B than Computer A? .3 propagation delay the time taken for an electrical signal to travel through a wire or logic system A designer chooses to use a cheaper polymer for packaging that decreases the transfer of heat to a heat sink. All else being constant, will the performance likely increase, decrease, or stay the same? Decrease Select the items below that a designer can modify to effect propagation delay (select all that apply). Manufacturing Process Processor Organization A designer chooses to use a manufacturing process that decreases the feature size on the processor. All else being constant, will the performance likely increase, decrease, or stay the same? Increase A designer chooses to use an organization that increases the logic depth of the processor. All else being constant, will the performance likely increase, decrease, or stay the same? Decrease A designer chooses to use an organization that decreases the logic depth of the processor. All else being constant, will the performance likely increase, decrease, or stay the same? Increase A designer chooses to use a manufacturing process that increases the feature size on the processor. All else being constant, will the performance likely increase, decrease, or stay the same? Decrease The execution time E = IC CPI T E= (IC*CPI)/F E= (IC1CPI1+IC2CPI2+...)/f E= (IC1CPI1+IC2CPI2+...)T IC = instruction count CPI = cycles per instruction T = clock period F = clock rate How many symbols are used in the binary number system? 2 How many symbols are used in the decimal number system? 10 A binary "0" is represented by what physical phenomena in a modern computer? Low Voltage A binary "1" is represented by what physical phenomena in a modern computer? High Voltage What indicates a negative number in the two's complement representation? The most significant bit is 1 A variable of type signed short stores a value of -32768, If the variable value is decremented what exception will occur? Underflow. A variable of type unsigned char stores a value of zero. If the variable value is decremented, what exception will occur? Underflow. A variable of type signed int stores a value of -2147483648, If the variable value is decremented what exception will occur? Underflow. A variable of type signed short stores a value of 32767. If the variable value is incremented what exception will occur? Overflow. Which of the following are causes of overflow? Adding to a variable when its value is at the upper end of the datatype range. A variable of type unsigned short stores a value of zero. If the variable value is decremented, what exception will occur? Underflow. A variable of type unsigned short stores a value of 32767. If the variable value is decremented, what exception will occur? No exception. A variable of type unsigned int stores a value of 4,294,967,295 If the variable value is decremented what exception will occur? No exception. Which of the following are causes of underflow? Subtracting from a variable when its value is at the lower end of the datatype range. A variable of type unsigned int stores a value of zero. If the variable value is decremented, what exception will occur? Underflow. In which of the following situations will endianness become an issue? Transferring a memory block from a Little-Endian processor to a Big-Endian processor. Transferring a memory block from a Big-Endian processor to a Little-Endian processor. Select the definition of big-endian The most significant byte of a multi-byte datatype is stored at a lower address than the least significant byte. Select the definition of little-endian. The least significant bit of a single byte datatype is stored at a lower address than the most significant bit. What register stores a return value of a procedure? $v0 What register stores a temporary value that the caller procedure must save before calling a nested procedure? $t0 What register stores a parameter value of a procedure? #a0 What are the main reasons for writing procedures in assembly programs? Select all that apply. Easier to reuse the code Easier to understand and to debug What register stores the return address of a procedure? $ra What register stores a temporary value that the callee procedure must save before performing it's task? $s0 What register does the "jal" instruction automatically update? $ra In a procedure call, what is responsible for saving the $s0 - $s7 registers? Callee Procedure In a procedure call, what is responsible for saving the $t0 - $t9 registers? Caller Procedure In MIPS, the stack pointer is manipulated using the instruction addiu $sp, $sp, XX where "XX" is a number that may be positive or negative. If we need to reserve enough room on the stack for 8 integers in addition to the $ra register, what is the value of XX? -36 A procedure does not call another procedure. How does it differ from a procedure that does call another procedure? Register $ra does not need to be saved to stack In a procedure call, the $a0-$a3 registers are used for what purpose? Passing Parameters

Show more Read less
Institution
CSE 230
Course
CSE 230

Content preview

CSE 230 Exam



In the compilation process, the ______ arranges the symbol table in memory and
generates final executable machine code.
Backend

Select which of the following are part of the compilation process:
Lexical Analysis
Syntax Analysis
Optimization
Linking
Code Generation

In the compilation process, the ______ performs program analysis and optimization.
Middle Stage

Which of the follow best matches the definition for Syntax Analysis?
Performs syntax rules checking and constructs a symbol table and abstract syntax tree.

Which of the follow best matches the definition for Lexical Analysis?
Separates the input source code text into tokens.

Which of the follow best matches the function of the Middle Stage in the compilation
process?
Performs program analysis and optimization.

In the compilation process, the ______ separates the input source code text into tokens.
Lexical Analyzer (lexer)

A computer consists of five major modules. What module do registers belong to?
Data Path

The ______ of the CPU stores a small number of pieces of information, commonly the
temporary results of calculations.
Registers

Which of the following best matches the definition of the Bus?
Carries data between the ALU, registers, memory, and peripherals.

The ______ of the CPU acts as an interface between the processor and the outside
world, including long-term storage and user interfaces.
IO / Peripherals

, A computer consists of five major modules. What module does ALU belong to?
Data Path

If two computers made by different companies have the same machine language, that
means they have the same:
Architecture

Which of the following best matches the definition of the Datapath?
Contains the ALU and Registers, and the interconnection between them.

The ______ of the CPU carries data between the ALU, registers, memory, and
peripherals.
Bus

The ______ of the CPU contains the ALU and Registers, and the interconnection
between them.
Datapath

Which of the following best matches the definition of the Control Unit?
Coordinates the flow of information around the processor.

The ______ of the CPU stores a small number of pieces of information, commonly the
temporary results of calculations.
Registers

Instruction cycle
fetch, decode, execute, store

Decode Hardware
Data Memory
Control Unit

Fetch Hardware
Instruction Memory
Program Counter

Execute Hardware
ALU

Store Hardware
Data Memory
Program Counter

System Clock
Coordinates Activity
Latches Memory

Written for

Institution
CSE 230
Course
CSE 230

Document information

Uploaded on
February 26, 2025
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$18.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Bri254 Rasmussen College
Follow You need to be logged in order to follow users or courses
Sold
919
Member since
5 year
Number of followers
738
Documents
3524
Last sold
2 weeks ago
Best Tutorials, Exam guides, Homework help.

When assignments start weighing you down, take a break. I'm here to create a hassle-free experience by providing up-to-date and recent study materials. Kindly message me if you can't find your tutorial and I will help.

4.0

181 reviews

5
106
4
20
3
25
2
6
1
24

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions