Skip to main content

Computer Architecture Review Questions - 255 Verified Questions

Page 1


Course Introduction

Computer Architecture

Review Questions

Computer Architecture explores the fundamental concepts and design principles that form the backbone of modern computer systems. The course covers topics such as processor design, instruction set architectures, memory hierarchies, input/output mechanisms, and performance evaluation techniques. Students will learn how hardware components interact, how design choices impact system efficiency, and the trade-offs involved in contemporary architectural decisions. Through theoretical foundations and practical examples, the course provides a comprehensive understanding of how computers execute instructions and manage data efficiently.

Recommended Textbook

Assembly Language for x86 Processors 7th Edition by Kip R. Irvine

Available Study Resources on Quizplus

17 Chapters

255 Verified Questions

255 Flashcards

Source URL: https://quizplus.com/study-set/3977

Page 2

Chapter 1: Basic Concepts Assessment

Available Study Resources on Quizplus for this Chatper

14 Verified Questions

14 Flashcards

Source URL: https://quizplus.com/quiz/79902

Sample Questions

Q1) The sum of 3AB4h and 0429h is 3EDDh.

A)True

B)False

Answer: True

Q2) Suppose there is a virtual machine containing levels V1 and V2,where V2 is above V1 in the machine hierarchy.The programs written in language V2 can be executed by a program running at level V1.

A)True

B)False

Answer: True

Q3) The 8-bit two's complement of binary 00000010 is 11111110.

A)True

B)False Answer: True

Q4) The sum of all powers of 2 from 20 to 28 is 511.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above.

Page 3

Chapter 2: X86 Processor Architecture Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79901

Sample Questions

Q1) Another name for "machine cycle" is clock cycle.

A)True

B)False

Answer: True

Q2) In Real-address mode,multiple programs can run at the same time,but they can only address physical memory.

A)True

B)False

Answer: False

Q3) The Zero flag is clear when the result of an arithmetic operation is zero.

A)True

B)False

Answer: False

Q4) When running in 64-bit mode,only the lowest 48 bits of address operands are used.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above.

4

Chapter 3: Assembly Language

Fundamentals-assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79900

Sample Questions

Q1) The SDWORD directive is used when defining signed 32-bit integers. A)True

B)False Answer: False

Q2) Identifiers are by default,case sensitive. A)True

B)False Answer: False

Q3) The following is a valid data definition statement: helloStr SWORD -32768 A)True

B)False Answer: True

Q4) An identifier in assembly language may only contain letters and digits. A)True

B)False Answer: False

To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Data Transfers,addressing,and

Arithmetic-assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79899

Sample Questions

Q1) Suppose BX and DX both contain positive integers.If adding them produces a negative result,the Overflow flag will be set.

A)True

B)False

Q2) If AL contains +127 and you add 3 to AL,the Overflow flag will be set.

A)True

B)False

Q3) The Overflow flag will never be set when subtracting a positive integer from a negative integer.

A)True

B)False

Q4) When you move a 16-bit constant or an 8-bit constant into a 64-bit register,the upper bits of the destination operand are cleared.

A)True

B)False

Q5) The MOV instruction permits a move between two 8-bit memory operands,as long as one operand uses the BYTE PTR operator.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 6

Chapter 5: Procedures-assessment

Available Study Resources on Quizplus for this Chatper

16 Verified Questions

16 Flashcards

Source URL: https://quizplus.com/quiz/79898

Sample Questions

Q1) By default,labels are visible only within the procedure in which they are declared.

A)True

B)False

Q2) When the POP instruction executes,the ESP register is incremented after the value it points to is copied from the stack.

A)True

B)False

Q3) The RandomRange procedure always produces a random integer between 0 and 0FFFFFFFFh

A)True

B)False

Q4) The ESP register always points to the next available position (NAP)where a new value will be pushed on the stack.

A)True

B)False

Q5) In 32-bit mode,immediate values pushed on the stack are always 32 bits long.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 7

Chapter 6: Conditional Processing Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79897

Sample Questions

Q1) The JECXZ instruction jumps to a target label when the CX register is equal to zero.

A)True

B)False

Q2) ANDing an operand with 1 sets the zero flag if the operand was originally an even number.

A)True

B)False

Q3) The OR instruction can be used to find the intersection of two bit-mapped sets.

A)True

B)False

Q4) With unsigned operands,the CMP instruction sets the Carry flag when the destination operand is less than the source operand.

A)True

B)False

Q5) With signed operands,the CMP instruction makes the Sign flag equal to the Overflow flag when the destination operand is less than the source operand.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: Integer Arithmetic Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79896

Sample Questions

Q1) RDX will equal 1 after the following instructions have executed. mov rax,0FFFF0000FFFF0000h mov rbx,2 mul rbx

A)True

B)False

Q2) The binary value of AL after the following instructions have executed is 00001101. mov al,01101011b shr al,2

A)True

B)False

Q3) The ROR instruction is only suitable for signed integers.

A)True B)False

Q4) The SAR instruction is suitable for signed integers. A)True B)False

To view all questions and flashcards with answers, click on the resource link above.

9

Chapter 8: Advanced Procedures Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79895

Sample Questions

Q1) Stack parameters are usually expressed as positive offsets from ESP.

A)True

B)False

Q2) The C calling convention requires the calling program to reset the stack pointer after the subroutine has returned.

A)True

B)False

Q3) In 32-bit programs,ADDR and OFFSET return the same value.

A)True

B)False

Q4) The following is a valid LOCAL declaration: LOCAL LastName:BYTE(25)

A)True

B)False

Q5) When a subroutine argument is passed by value,the calling program pushes the argument's address on the stack.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above.

Page 10

Chapter 9: Strings and Arrays Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79894

Sample Questions

Q1) The REPNZ CMPSB instruction pair will execute as long as the byte pointed to by ESI is not equal to the byte pointed to by EDI.

A)True

B)False

Q2) On the first pass through an array of N items,the inner loop of a bubble sort executes N - 1 times.

A)True

B)False

Q3) The EDX and ECX registers can be combined in a based-indexed operand.

A)True

B)False

Q4) array[EDX+ESI] is an example of a base-index-displacement operand. A)True B)False

Q5) The MOVSW instruction copies a word from the location addressed by ESI to the location addressed by EDI.

A)True B)False

To view all questions and flashcards with answers, click on the resource link above. Page 11

Chapter 10: Structures and Macros Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79893

Sample Questions

Q1) The following statement permits assembly if arg1 is exactly the same as arg2? (case-senstitive comparison): IFIDN <arg1>,<arg2>

A)True

B)False

Q2) An array can be declared as a structure member.

A)True B)False

Q3) Replacing macro invocations with procedure calls tends to make a program run faster.

A)True

B)False

Q4) All fields in a UNION begin at the same offset. A)True

B)False

Q5) When a macro is invoked,the CALL instruction executes if the macro uses the ASPROC operator.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 12

Chapter 11: Ms-Windows Programming Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79892

Sample Questions

Q1) The SetConsoleTextAttribute function can be used to change the color of text that has already been written to the screen buffer.

A)True B)False

Q2) The CREATE_NEW constant can be passed to the creationDisposition parameter in the CreateFile function.

A)True B)False

Q3) The COORD structure defined in MS-Windows specifies X and Y screen coordinates in pixel coordinates.

A)True

B)False

Q4) The LPSTR data type in the Win32 API is a 32-bit pointer to a character string. A)True B)False

Q5) A application programming interface (API)includes functions,data types and constants.

A)True B)False

To view all questions and flashcards with answers, click on the resource link above. Page 13

Chapter 12: Floating-Point Processing and Instruction

Encoding Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79891

Sample Questions

Q1) After calling the FCOM instruction to compare two floating-point values,you must execute the FNSTSW instruction,followed by FPOP to prepare the CPU to recognize branching instructions such as JG and JL.

A)True

B)False

Q2) In the encoding of a MOV from a register to any other operand (89/r),the /r indicates that a Mod R/M byte follows the opcode.

A)True

B)False

Q3) The binary floating-point number 111.0001 is equivalent to decimal 7 1/8.

A)True B)False

Q4) In x86 machine instructions,the ModR/M field identifies the addressing mode and operands.

A)True

B)False

Q5) The first byte of every x86 machine instruction is the ModR/M byte.

A)True B)False

To view all questions and flashcards with answers, click on the resource link above. Page 14

Chapter 13: High-Level Language Interface-- Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79890

Sample Questions

Q1) The EVEN and ALIGN directives can be used in Visual C++ inline assembly code.

A)True

B)False

Q2) C language programs automatically convert external identifiers to all uppercase letters.

A)True

B)False

Q3) The "C" specifier in extern declarations of procedures called from C++ tells the compiler to avoid decorating (changing)the procdure name.

A)True

B)False

Q4) In 32-bit mode,the offsets of stack parameters should always be calculated from EBP.

A)True

B)False

Q5) Although STDCALL is compatible with the Win32 API, it does not match the calling convention used by C programs.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 15

Chapter 14: 16-Bit Ms-Dos Programming Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79889

Sample Questions

Q1) MS-DOS services are handled by INT 21h.

A)True

B)False

Q2) The device names for parallel printer port 1 are both PRN and LPT1.

A)True

B)False

Q3) Writing data to a text file usually takes more CPU time than writing data to a binary file.

A)True

B)False

Q4) INT 21h,function 10h writes a string to standard output.

A)True

B)False

Q5) Video services are handled by INT 16h.

A)True

B)False

Q6) When a MS-DOS function needs to access the computer's hardware,it calls a function in the BIOS.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 16

Chapter 15: Disk Fundamentals Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79888

Sample Questions

Q1) Two important measurements of hard disk efficiency are the average seek time and the disk rotation speed.

A)True

B)False

Q2) The extended directory format in MS-Windows (for long filenames)contains separate entries for the date when a file was created,and when the file was last modified.

A)True

B)False

Q3) A sector contains multiple cylinders.

A)True

B)False

Q4) A track contains multiple sectors.

A)True

B)False

Q5) An extended partition can be divided into any number of logical partitions.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 17

Chapter 16: Bios-Level Programming Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79887

Sample Questions

Q1) The BIOS data area includes the current video mode.

A)True

B)False

Q2) The fastest way to write characters to the video display is by calling INT 10h.

A)True

B)False

Q3) INT 10h function 9 displays a character and attribute at the current cursor position.

A)True

B)False

Q4) Keys stored in the keyboard typeahead buffer can only be retrieved by calling INT 16h.

A)True

B)False

Q5) Character colors use 4 bits for the foreground color,and 4 bits for the background color.Blinking is controlled by a 9<sup>th</sup> bit that is not part of the attribute byte. A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 18

Chapter 17: Expert Ms-Dos Programming Assessment

Available Study Resources on Quizplus for this Chatper

15 Verified Questions

15 Flashcards

Source URL: https://quizplus.com/quiz/79886

Sample Questions

Q1) IA-32 systems offer two types of hardware input-output: memory-mapped,and port-based.

A)True

B)False

Q2) The Speaker Demo Program uses the IN instruction to turn the speaker on.

A)True

B)False

Q3) Only one code segment may be created in a single program module.

A)True

B)False

Q4) When an interrupt executes,an address in the Exception Process Table is used to locate the interrrupt handler.

A)True

B)False

Q5) All COM programs use the small memory model.

A)True

B)False

Q6) An EXE program can have overlapping code,data,and stack segments.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 19

Turn static files into dynamic content formats.

Create a flipbook
Computer Architecture Review Questions - 255 Verified Questions by Quizplus - Issuu