Skip to main content

Systems Programming Exam Solutions - 255 Verified Questions

Page 1


Systems Programming Exam Solutions

Course Introduction

Systems Programming focuses on the development of software that provides services to the computer hardware and acts as a foundation for application software. This course covers essential concepts such as operating systems, compilers, assemblers, loaders, linkage editors, and system utilities. Students learn about low-level programming using languages like C and assembly, concepts of memory management, process control, file systems, and device management. Emphasis is placed on writing efficient, robust system software and understanding the interface between hardware and software. The course also explores debugging tools, performance analysis, and security considerations inherent in software that interacts closely with hardware.

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) The sum of the binary integers 01101101 and 00111011 is 10101001.

A)True

B)False Answer: False

Q3) A virtual machine may be constructed from software.

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

Q5) A dynamic link library (DLL)is never written in the Java programming language. A)True

B)False

Answer: True

Page 3

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

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

Q2) When running in native 64-bit mode,processors do not support 16-bit Real Mode.

A)True

B)False

Answer: True

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

A)True

B)False

Answer: True

Q4) The upper half of the RDX register is called EDX.

A)True

B)False

Answer: False

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 listing file is generated by the linker.

A)True

B)False

Answer: False

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

A)True

B)False

Answer: False

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

A)True

B)False

Answer: True

Q4) If the source code for an assembly language program is modified,you must run both the assembler and linker to update the program's executable code.

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 SAHF instruction copies the CPU status flags to the AH register.

A)True

B)False

Q2) The SUB instruction requires the source operand to be no larger than the destination operand.

A)True

B)False

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

B)False

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

A)True

B)False

Q5) The MOVSX instruction can use a variable as the source operand. A)True

B)False

B)False Page 6

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

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

Page 7

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 RandomRange procedure always produces a random integer between 0 and 0FFFFFFFFh

A)True

B)False

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

A)True

B)False

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

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

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 8

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 XOR instruction inverts each bit in a destination operand.

A)True

B)False

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

A)True

B)False

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

A)True

B)False

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

A)True

B)False

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

A)True

B)False

Q6) The Parity flag indicates whether the lowest byte of a destination operand has an even number of 1 bits.

A)True

B)False

Page 9

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 binary value of AL after the following instructions have executed is 11101101. mov al,01101011b rol al,2

A)True

B)False

Q2) The SAR and SHR instructions perform the same operation.

A)True

B)False

Q3) The binary value of AL after the following instructions have executed is 11100010. mov al,11000101b sar al,1

A)True

B)False

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

A)True

B)False

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

Page 10

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) In 32-bit programs,ADDR and OFFSET return the same value.

A)True

B)False

Q2) An indirect operand such as [eax + edi] can be passed to the INVOKE directive.

A)True

B)False

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

A)True

B)False

Q4) The assembler checks the pointer type used with the ADDR operator against the pointer type declared in the PROC directive.For example,it prevents a pointer to DWORD from being passed to a procedure expecting an pointer to BYTE.

A)True

B)False

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

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

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) In 64-bit mode,operands that use register indexes must use 64-bit registers.You can use both base-index operands and base-index-displacement operands.

A)True B)False

Q3) The CLD instruction causes the ESI and EDI registers to be increased in value by the MOVSB instruction.

A)True

B)False

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

B)False

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

A)True

B)False

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

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

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

B)False

Q3) The IFNOTB directive permits assembly if its argument is not blank. A)True B)False

Q4) A structure variable cannot be declared inside another structure. A)True B)False

Q5) An array can be declared as a structure member. A)True B)False

13

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 Win32 ReadConsoleInput function reads character input from the console buffer,but does not remove the characters from the buffer.

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 SetFilePointer function permits you to start reading from any point in a file.

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 14

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

Q2) Not all values between 0 and 1 can be represented by a single-precision significand,but all such values can be represented by an extended-precision significand.

A)True

B)False

Q3) In a single-precision real number,the exponent uses 7 bits.

A)True

B)False

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

A)True

B)False

Q5) The single-precision real representation of zero contains zeros in the mantissa and ones in the exponent.

A)True

B)False

15

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) A program using the C calling convention pushes function arguments onto the stack from left to right.

A)True

B)False

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

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) 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 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) When a MS-DOS function needs to access the computer's hardware,it calls a function in the BIOS.

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 function calls are also called interrupts because they use the INT instruction. A)True B)False

Q4) The MS-DOS command tail is located in the data segment when a program begins to execute.

A)True

B)False

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

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

B)False

Q3) The NTFS file system supports Unicode filenames,but FAT32 does not.

A)True

B)False

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

A)True

B)False

Q5) A sector contains multiple cylinders. A)True

B)False

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

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) If you mix the colors red and green in the same attribute byte and set the intensity bit to 1,the resulting color is yellow.

A)True

B)False

Q2) INT 16h permits characters to be redirected,so input can be read from a file.

A)True

B)False

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

A)True

B)False

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

A)True

B)False

Q5) The BIOS data area includes the keyboard typeahead buffer. A)True

B)False

Q6) MS-Windows cannot run MS-DOS programs in full-screen 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) Only one code segment may be created in a single program module.

A)True

B)False

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

A)True

B)False

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

A)True

B)False

Q4) When a key is pressed on the keyboard,the Intel 8259 programmable interrupt controller signals the CPU to suspend execution of the current program.

A)True

B)False

Q5) All COM programs use the small memory model.

A)True

B)False

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

A)True

B)False

Page 20

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

Turn static files into dynamic content formats.

Create a flipbook