Module_7_Summary_Exercises__COMPUTER_ARCH__ASSEM_LANGUAGE_CS_271_400_U2023

pdf

School

University of West Georgia *

*We aren’t endorsed by this school

Course

58

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

7

Uploaded by ExtrmNrd

Report
8/13/23, 11:21 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 1/7 Module 7 Summary Exercises Due Aug 13 at 11:59pm Points 31 Questions 14 Available Aug 5 at 12am - Aug 13 at 11:59pm Time Limit 1,440 Minutes Allowed Attempts 2 Instructions Attempt History Attempt Time Score LATEST Attempt 1 36 minutes 31 out of 31 Score for this attempt: 31 out of 31 Submitted Aug 13 at 11:21am This attempt took 36 minutes. Instructions These exercises are based on the concepts introduced in Module 7. I encourage you to attempt these exercises twice, especially as a learning and study aid. You will have two attempts, each of which will last for 24 hours, and only the top score will be counted. You are allowed any resources (including explorations, Ed Discussions, Teams, classmates, the internet, etc...). Good luck! Take the Quiz Again 2 / 2 pts Question 1 Which of the following string primitives will modify the EDI register? Check all that apply. CMPSB Correct! Correct!
8/13/23, 11:21 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 2/7 MOVSB Correct! Correct! LODSB STOSB Correct! Correct! SCASB Correct! Correct! 2 / 2 pts Question 2 Which of the following string primitives will compare the BYTE stored in the memory locations pointed to by EDI to the contents of the AL register? SCASB Correct! Correct! MOVSB CMPSB STOSB LODSB 2 / 2 pts Question 3 Which of the following string primitives will copy a BYTE from the memory location pointed to by ESI to the AL register? SCASB STOSB
8/13/23, 11:21 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 3/7 MOVSB LODSB Correct! Correct! CMPSB 2 / 2 pts Question 4 The REPNE prefix checks the value of the Zero flag but requires its operand-instruction (the instruction which follows it) to modify the flag. True Correct! Correct! False 2 / 2 pts Question 5 The REP prefixes may be used with most instructions ( MOV , CMP , ADD , etc...). True False Correct! Correct! 2 / 2 pts Question 6 Which structure is the following true for? For _________, arguments are substituted exactly as entered, without checking for memory, registers, or literals.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
8/13/23, 11:21 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 4/7 Procedures Macros Correct! Correct! Neither Macros Nor Procedures Both Macros and Procedures 2 / 2 pts Question 7 Which structure is the following true for? For _________, the entire code is substituted for each call. Procedures Neither Macros Nor Procedures Macros Correct! Correct! Both Macros and Procedures 2 / 2 pts Question 8 Which structure is the following true for? _________ may have LOCAL labels. Both Macros and Procedures Correct! Correct! Neither Macros Nor Procedures Procedures
8/13/23, 11:21 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 5/7 Macros 3 / 3 pts Question 9 Suppose that a program's data and executable code require 1,024 bytes of memory. A new section of code must be added; it will be used with various values 28 times during the execution of a program. When implemented as a macro, the macro code requires 114 bytes of memory. When implemented as a procedure, the procedure code requires 122 bytes (including parameter-passing, etc.), and each procedure call requires 14 bytes. How many bytes of memory will the entire program require if the new code is added as a macro? 4,216 Correct! Correct! 4,216 orrect Answer orrect Answer 2 / 2 pts Question 10 Which of the following postfix expressions corresponds to the given infix expression? 56 / (42 * 4 * 2) + (256 / (128 - 64)) * 3 ^ 12 56 42 4 * 2 * / 256 128 64 - / 3 12 ^ * + Correct! Correct! 56 42 4 * 2 * / 256 128 64 - / 3 12 * ^ + 56 42 4 * 2 * 256 /128 64 - / 3 12 ^ * + 56 42 4 * 2 * / 256 128 64 - 3 12 / ^ * +
8/13/23, 11:21 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 6/7 2 / 2 pts Question 11 Which of the following infix expressions corresponds to the given postfix expression? 3 4 - 3 2 4 2 - + ^ - (3 - 4) - (3 ^ (2 + (4 - 2))) Correct! Correct! 3 - 4 - (3 ^ (2 + 4)) - 2 (3 - 4 - 3) ^ (2 + 4 - 2) 3 - (4 - 3) ^ (2 + 4 - 2) 4 / 4 pts Question 12 Find the decimal value of the postfix (RPN) expression. Round answers to one decimal place (e.g. for an answer of 13.45 you would enter 13.5): 2 2 ^ 5 6 - / 7 * -28 Correct! Correct! -28 margin of error +/- 0.2 orrect Answer orrect Answer 2 / 2 pts Question 13 0-address FPU instructions have how many memory operands?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
8/13/23, 11:21 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 7/7 0-2 none Correct! Correct! 1-2 2 / 2 pts Question 14 Which of the following infix notations corresponds to the given FPU manipulations? FINIT FLD A FLD B FLD C FSUB FLD D FLD E FMUL FDIV FADD FSTP Z Z = (A + B - C) / (D * E) Z = A + (B - C) / (D * E) Correct! Correct! Z = A + (B - C) / D * E Z = A + B - C / (D * E) Quiz Score: 31 out of 31