Skip to main content

Computer Organization and Assembly Language Question Bank - 255 Verified Questions

Page 1


Computer Organization and Assembly Language

Question Bank

Course Introduction

Computer Organization and Assembly Language introduces the fundamental concepts of computer architecture, detailing how hardware and software interact at the machine level. The course covers topics such as data representation, digital logic, CPU structure, memory hierarchy, input/output mechanisms, and instruction set architectures. Students learn the basics of assembly language programming, gaining hands-on experience with low-level code to manipulate hardware directly. By exploring how computers execute instructions and manage resources, learners develop a deeper understanding of system performance, optimization, and the relationship between high-level code and hardware operations.

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 all powers of 2 from 20 to 28 is 511.

A)True

B)False

Answer: True

Q2) The sum of the binary integers 01101101 and 00111011 is 10101001.

A)True

B)False

Answer: False

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

Q4) In any numbering system,the radix specifies the range of alphanumeric digits that can be assigned to a single digit position.

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) The Zero flag is clear when the result of an arithmetic operation is zero.

A)True

B)False

Answer: False

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) When running in 64-bit mode,only the lowest 48 bits of address operands are used.

A)True

B)False

Answer: True

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

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) In the following statement,EAX is called the source operand: mov EBX,EAX

A)True

B)False

Answer: True

Q2) The following is a valid data definition statement: varX WORD 100h,65536

A)True

B)False Answer: False

Q3) An object file is commonly read as input by the linker. A)True

B)False Answer: False

Q4) A code name must end with a colon (:).

A)True

B)False

Answer: True

Page 5

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

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 SUB instruction requires the source operand to be no larger than the destination operand.

A)True

B)False

Q2) The following instruction will produce 1FFFFFFCh in EDX: movsx edx,-4

A)True

B)False

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

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 MOVSX instruction can use a variable as the source operand.

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) The runtime stack is the same as the stack abstract data type (ADT).

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

A)True

B)False

Q4) The runtime stack is supported by the computer's processor.

A)True

B)False

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

A)True

B)False

Q6) In a stack,the first value pushed on a stack is the last one to be removed.

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 Parity flag indicates whether the lowest byte of a destination operand has an even number of 1 bits.

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) The XOR instruction inverts each bit in a destination operand. A)True B)False

Q5) The JO instruction is used after an operation involving signed integers. A)True B)False

Q6) XORing an operand with 1 always causes the Zero flag to be set. A)True B)False

Page 8

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

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) The destination operand of the IMUL instruction may be a memory operand.

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 BX instruction executes,the 32-bit product ends into the EAX 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 CALL instruction can only have a single operand.

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 assembly language,a variable declared using the LOCAL directive in one procedure can be read by code in another procedure.

A)True

B)False

Q4) Local variables are stored on the runtime stack,at a higher address than the stack pointer.

A)True

B)False

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

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 Str_trim procedure has a second parameter that holds the character to be trimmed from the end of the string.

A)True

B)False

Q2) When calling Str_compare in the Irvine32 library,you can pass arguments to it in 32-bit registers.

A)True

B)False

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

A)True

B)False

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

Q5) The REPNE prefix repeats an instruction while the Zero flag is set,and ECX is greater than zero.

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 macro moves any 32-bit memory operand to any other 32-bit memory operand:

mMove32 MACRO destination,source push eax

mov eax,source mov destination,eax pop eax

ENDM

A)True

B)False

Q2) The following statements create five uninitialized DWORD variables in which each variable name is a member of the following list: monday,tuesday,wednesday,thursday,friday: FOR varName,<monday,tuesday,wednesday,thursday,friday> DWORD varName <> ENDM

A)True B)False

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

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

A)True

B)False

Q2) If you want to open an existing file,you must call the Win32 OpenFile function.

A)True

B)False

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

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

A)True

B)False

Q5) The SetConsoleWindowInfo function lets you control the size and position of the console window.

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) There are two types of NaNs,one of which is named Quiet NaN.

A)True

B)False

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

A)True

B)False

Q3) In a single-precision real,the exponent field has a bias of 128.

A)True

B)False

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

Q5) In a single-precision real number,the exponent uses 7 bits. A)True

B)False

Q6) A double extended-precision real occupies 60 of storage.

A)True

B)False

Page 14

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

Page 15

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) Although STDCALL is compatible with the Win32 API, it does not match the calling convention used by C programs.

A)True

B)False

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

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

A)True

B)False

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

A)True

B)False

Q5) In Visual C++,the PTR directive cannot be used in inline assembly code.

A)True B)False

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

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) Real-mode programming is also known as 16-bit mode programming.

A)True

B)False

Q3) The transient command processor always remains in memory at an address just above the DOS kernel.

A)True

B)False

Q4) Video memory begins at offset 00100h in the IBM-PC's memory.

A)True

B)False

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

A)True

B)False

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

A)True

B)False

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

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) The NTFS file system supports Unicode filenames,but FAT32 does not.

A)True

B)False

Q2) Translation of disk geometry to logical sector numbers is always performed by the operating system.

A)True

B)False

Q3) The cluster allocation table (CAT)keeps track of all clusters used by a file.

A)True

B)False

Q4) The MS-DOS file attribute byte does not include a hidden attribute.

A)True

B)False

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

A)True

B)False

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

A)True

B)False

Page 18

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

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 INT 8h service routine retrieves the keyboard scan code and looks up the corresponding ASCII code.

A)True

B)False

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

A)True

B)False

Q3) MS-Windows cannot run MS-DOS programs in full-screen mode.

A)True

B)False

Q4) The BIOS data area includes the keyboard typeahead buffer.

A)True

B)False

Q5) The default MS-DOS video display is 80 columns by 25 rows.

A)True

B)False

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

A)True

B)False

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

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) Memory-mapped video is set up so that when characters are placed in memory at predetermined addresses,the characters appear on the video display only when a special control value is output to a hardware port.

A)True

B)False

Q2) The following are all permissible segment ALIGN types: BYTE,WORD,DWORD,REAL4.

A)True

B)False

Q3) The following is an example of a valid segment override: mov eax,ds:var1

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) In large model programs,all code segments have the same name. A)True B)False

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

Turn static files into dynamic content formats.

Create a flipbook