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
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

CECS 341 Exam 1 | Questions with 100% Correct Answers

Document preview thumbnail
Preview 2 out of 9 pages

CECS 341 Exam 1 | Questions with 100% Correct Answers A computer in an Amazon building accessed by thousands of people for online shopping. a. Embedded b. Server c. PC A terabyte is one _____ bytes. a. Thousand b. Million c. Billion d. Trillion The collection of software on a computer that provides services to application software. a. System software b. Application software c. Compiler The ISA includes anything programmers need to know to make a binary machine language program work correctly, including instructions, I/O devices, and so on. a. True b. False "Bit" is short for "binary digit." a. True b. False Computers use binary because binary is more powerful than decimal numbers. a. True b. False Operating system and compiler are central to every computer system. a. True b. False Although binary's alphabet contains only two "letters", 0 and 1, the binary alphabet can represent as much information as the English alphabet's 26 letters. a. True b. False The number 12 can be represented in binary as 1100. If a computer's memory location contains , then that location contains the number 12. a. True b. False The corresponding binary representation of number 5C in hexadecimal is ___. a. b. c. d. An advantage of a high-level language (HLL) is allowing a programmer to ________ a. Think more naturally b. Think like a machine The following could be an assembly language instruction: . a. True b. False Computer A requires 10 seconds to compress a file. Computer B requires 5 seconds. Which computer has the higher performance? a. A b. B Computer A: 2GHz, 10s CPU time. In order to design a computer B with 6s CPU time and 2.4 times clock cycles (CPI) of computer A assuming both use the same amount of instruction count, how fast must computer B clock be? a. 2 GHz b. 4 GHz c. 6 GHz d. 8 GHz e. None of above To determine how many times faster Computer C is than Computer D, which is the correct calculation? a. PerfC / PerfD b. PerfD / PerfC A given application written in Java runs 15 seconds on a desktop processor. A new Java compiler is released that requires only 0.6 as many instructions as the old compiler. Unfortunately, it increases the CPI by 1.1. How fast can we expect the application to run using this new compiler? a. 15x 0.6 /1.1 = 8.2 sec 3 b. 15 x 0.6 x 1.1 = 9.9 sec c. 15 x 1.1 / 0.6 = 27.5 sec Replacing a processor in a computer with a faster processor has what effect? a. Decreases response time b. Increases throughput c. Both (decreases response time and increases throughput) As clock rates increased in early Intel processors, power _____. a. Increased b. Decreased Which improvement has a bigger impact on power? a. 25% reduction in voltage b. 25% reduction in frequency switching Instructions, as well as data, can be stored in memory as numbers. a. True b. False Multiple operations are allowed per MIPS instruction a. True b. False The alignment restriction refers to that words must start at addresses that are multiple of 4 in MIPS a. True b. False Since registers are faster to access than memory, the compiler should keep all used variables in registers a. True b. False rt is always referred as the second source register for MIPS instruction. a. True b. False Indicate whether name $t9 refers to a MIPS register. a. True b. False Indicate whether name $one refers to a MIPS register a. True b. False Indicate whether name Memory[0] refers to a MIPS register. a. True b. False Indicate whether addi $s1, $s3, 50 is a valid MIPS instruction. a. True b. False Indicate whether lw $s1, 20($s8) is a valid MIPS instruction. a. True b. False More registers may benefit an assembly program, but may directly lead to a _____ clock frequency. a. Faster b. Same c. Slower d. Broken Assume $s3 has 5000, and words addressed 5000..5002 have the data shown: 5000: 99 5001: 77 5002: 323 What address will be computed by lw $t0, 2($s3): a. 5000 b. 5001 c. 5002 Assume $s3 has 5000, and words addressed 5000..5002 have the data shown: 5000: 99 5001: 77 5002: 323 Assume $s2 has 5001. What value will be put in $t2 by lw $t2, 1($s2)? a. 323 b. 99 c. 77 d. 88 Consider the 32-bit binary number , stored in the word with address 5000. For a big-endian architecture, what value is stored in byte 5003? a. b. c. d. Consider the 32-bit binary number , stored in the word with address 5000. For a big-endian architecture, what value is stored in byte 5001? a. b. c. d. Consider the 32-bit binary number , stored in the word with address 5000. For a little-endian architecture, what value is stored in byte 5001? a. 5 b. c. d. If $s3 has 900, $t0 has 77, and memory locations 900, 904, and 908 have 10, 15, 20 respectively, what does location 904 have after the following instruction? sw $t0, 8($s3) a. 10 b. 15 c. 20 d. 77 Given the following 32-bit number, what is the most significant bit's value? a. 0 b. 1 In two's complement, is the following number positive or negative? a. Positive b. Negative Knowing that 231 is 2,147,483,648, what is the base ten value of the following two's complement number? a. 0 b. -1

Content preview

CECS 341 Exam 1



A computer in an Amazon building accessed by thousands of people for online
shopping.

a. Embedded
b. Server
c. PC

A terabyte is one _____ bytes.

a. Thousand
b. Million
c. Billion
d. Trillion

The collection of software on a computer that provides services to application software.

a. System software
b. Application software
c. Compiler

The ISA includes anything programmers need to know to make a binary machine
language program work correctly, including instructions, I/O devices, and so on.
a. True
b. False

"Bit" is short for "binary digit."
a. True
b. False

Computers use binary because binary is more powerful than decimal numbers.
a. True
b. False

Operating system and compiler are central to every computer system.
a. True
b. False

Although binary's alphabet contains only two "letters", 0 and 1, the binary alphabet can
represent as much information as the English alphabet's 26 letters.

, a. True
b. False

The number 12 can be represented in binary as 1100. If a computer's memory location
contains 00001100, then that location contains the number 12.
a. True
b. False

The corresponding binary representation of number 5C in hexadecimal is ___.

a. 10101110
b. 01011101
c. 01011100
d. 10111100

An advantage of a high-level language (HLL) is allowing a programmer to ________
a. Think more naturally
b. Think like a machine

The following could be an assembly language instruction: 1000110010100000.
a. True
b. False

Computer A requires 10 seconds to compress a file. Computer B requires 5 seconds.
Which computer has the higher performance?
a. A
b. B

Computer A: 2GHz, 10s CPU time. In order to design a computer B with 6s CPU time
and 2.4 times clock cycles (CPI) of computer A assuming both use the same amount of
instruction count, how fast must computer B clock be?

a. 2 GHz
b. 4 GHz
c. 6 GHz
d. 8 GHz
e. None of above

To determine how many times faster Computer C is than Computer D, which is the
correct calculation?
a. PerfC / PerfD
b. PerfD / PerfC

A given application written in Java runs 15 seconds on a desktop processor. A new
Java compiler is released that requires only 0.6 as many instructions as the old

Document information

Uploaded on
March 31, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

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

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.
Jumuja
3.9
(121)
Sold
589
Followers
417
Items
2856
Last sold
3 days ago




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