Skip to main content

Computer Organization and Assembly Language Programming Study Guide Questions - 255 Verified Questio

Page 1


Computer Organization and Assembly Language Programming

Study Guide Questions

Course Introduction

This course provides a comprehensive introduction to the fundamental concepts of computer organization and the principles of assembly language programming. Students will explore the architecture and operation of digital computers, including data representation, processor structure, memory hierarchy, input/output systems, and instruction sets. The course emphasizes low-level programming through hands-on experience with assembly language, enabling students to understand how high-level language constructs are translated into machine operations. By completing this course, students will gain a deeper appreciation of how hardware and software interact, laying a strong foundation for further studies in computer engineering and systems programming.

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) To translate an unsigned decimal integer into binary,repeatedly divide the integer by 2,saving each remainder as a binary digit.

A)True

B)False

Answer: True

Q2) A virtual machine may be constructed from software.

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 3AB4h and 0429h is 3EDDh.

A)True

B)False

Answer: True

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

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) The Basic Input-Output System is a collection of low-level subroutines that communicate directly with hardware devices.

A)True

B)False

Answer: True

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

A)True

B)False

Answer: True

Q3) Requests from hardware devices are called "interrrupts".

A)True

B)False

Answer: True

Q4) The arithmetic logic unit performs addition,subtraction,multiplication,and division operations.

A)True

B)False

Answer: True

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

Page 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) A code name must end with a colon (:).

A)True

B)False

Answer: True

Q2) In the following statement,EAX is called the source operand: mov EBX,EAX

A)True

B)False Answer: True

Q3) An identifier in assembly language may only contain letters and digits.

A)True

B)False

Answer: False

Q4) A string literal must be enclosed in double quotes.

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) The following instruction will assemble correctly: dec BYTE PTR [edi]

A)True

B)False

Q2) 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

Q3) 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

Q4) The EIP register can be the source operand of a MOV,ADD,or SUB instruction. A)True

B)False

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

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) In 32-bit mode,immediate values pushed on the stack are always 32 bits long.

A)True

B)False

Q2) The PUSH instruction copies a value from the stack to an operand before decrementing the stack pointer.

A)True

B)False

Q3) The WriteDec procedure does not display a plus sign.

A)True

B)False

Q4) The USES operator,coupled with the PROC directive,lets you list the names of all registers modified within a procedure..

A)True

B)False

Q5) The runtime stack is the same as the stack abstract data type (ADT). A)True

B)False

Q6) The EBP register points to the last value pushed on the runtime stack. A)True

B)False

Page 7

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

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 JBE instruction is used when comparing unsigned integers.

A)True

B)False

Q2) The destination operand of the OR instruction cannot be a memory operand.

A)True

B)False

Q3) The TEST instruction always alters the destination operand.

A)True

B)False

Q4) XORing an operand with 1 always causes the Zero flag to be set.

A)True

B)False

Q5) For any two integers n and m,((n XOR m)XOR m)produces n.

A)True

B)False

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

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) The SAR and SHR instructions perform the same operation.

A)True

B)False

Q2) When the MUL BX instruction executes,the 32-bit product ends into the EAX register.

A)True

B)False

Q3) RDX will equal 1 after the following instructions have executed.

mov rax,0FFFF0000FFFF0000h

mov rbx,2

mul rbx

A)True

B)False

Q4) When the MUL BL instruction executes,the upper half of the product ends up in the AH register.

A)True B)False

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

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 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) The following is a valid LOCAL declaration: LOCAL LastName:BYTE(25)

A)True

B)False

Q2) In assembly language,a variable declared using the LOCAL directive in one procedure can be read by code in another procedure.

A)True

B)False

Q3) The C calling convention is used by the Irvine32 library.

A)True

B)False

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

A)True

B)False

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

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 REPNE prefix repeats an instruction while the Zero flag is set,and ECX is greater than zero.

A)True

B)False

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

A)True

B)False

Q3) array[EDX+ESI] is an example of a base-index-displacement operand.

A)True B)False

Q4) The LODSD instruction loads a doubleword from the memory location addressed by ESI.

A)True B)False

Q5) The CMPSW instruction uses memory pointed to by EDI as the source operand.

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) An array can be declared as a structure member.

A)True

B)False

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

A)True

B)False

Q3) A structure variable cannot be declared inside another structure.

A)True

B)False

Q4) When defining a structure variable,you can specify default values for zero or more structure fields.

A)True

B)False

Q5) The IFNOTB directive permits assembly if its argument is not blank.

A)True

B)False

Q6) The IFNDIF directive permits assembly if two arguments are equal. A)True

B)False

Page 12

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

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 CREATE_NEW constant can be passed to the creationDisposition parameter in the CreateFile function.

A)True

B)False

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

A)True

B)False

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

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) When requesting single-character input,you must call SetConsoleMode to alter the console flag settings.

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) In a single-precision real number,the exponent uses 7 bits. A)True

B)False

Q2) If we were to denormalize the binary number 1.1101 x 2<sup>3</sup>,the result would be binary 1110.1.

A)True

B)False

Q3) The X86 FPU uses a standard for Binary Floating-Point Arithmetic produced by the IEEE organization

A)True

B)False

Q4) The FCOMI instruction compares two floating-point values and sets the Zero,Parity,and Carry flags according to the result of the comparison. A)True B)False

Q5) There are two types of NaNs,one of which is named Quiet NaN. A)True

B)False

14

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

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) In Visual C++,an inline statement can refer to labels outside the __asm block.

A)True

B)False

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

A)True

B)False

Q3) Name decoration is used by C++ because it supports the overloading of function names.

A)True

B)False

Q4) When a C++ functions is called,floating-point values inside the function are usually pushed on the processor's floating-point stack before returning to the function's caller.

A)True

B)False

Q5) A language's calling convention includes a list of which registers must be preserved by called procedures.

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) Video services are handled by INT 16h.

A)True

B)False

Q2) The INT instruction uses a value in the BX register to locate an entry in the interrupt vector table.

A)True

B)False

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

A)True

B)False

Q4) The < operator,when used at the MS-DOS command prompt,redirects the current program's input.

A)True

B)False

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

A)True

B)False

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

A)True

B)False

Page 16

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

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) Clusters are the basic unit of storage for directories and files in a FAT-type file system.

A)True B)False

Q2) A track contains multiple sectors. A)True

B)False

Q3) Each read-write head in a disk drive moves independently of the other read/write heads.

A)True B)False

Q4) The MS-DOS file attribute byte does not include a hidden attribute. A)True B)False

Q5) A disk containing primarily small files should use a small cluster size to make the most efficient use of space.

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) Memory-mapped graphics in Mode 13h permits 128 different integer values for each color.

A)True

B)False

Q3) In text mode,each character is assigned a separate attribute byte that determines its color.

A)True

B)False

Q4) 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

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

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) All COM programs use the small memory model.

A)True

B)False

Q2) In large model programs,all code segments have the same name.

A)True

B)False

Q3) The ASSUME directive permits the assembler to calculate the offsets of labels and variables.

A)True

B)False

Q4) The segment combine type tells the linker how to combine segments having the same name.

A)True

B)False

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

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 Organization and Assembly Language Programming Study Guide Questions - 255 Verified Questio by Quizplus - Issuu