MSE7_merged_merged

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

60

Uploaded by ExtrmNrd

Report
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 Instruc ons Score for this attempt: 27 out of 31 Submitted Aug 11 at 4:07pm This attempt took 68 minutes. Instruc ons 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 Match the instruction to its purpose. STD Set direc on ag - String CLD Clear direc on ag - Strin Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677/take?... 1 of 7 8/11/2023, 7:03 PM
Other Incorrect Match Options: Set direction flag - String primitives will increment ESI/EDI Clear direction flag - String primitives will decrement ESI/EDI 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 MOVSB LODSB CMPSB STOSB 2 / 2 pts Question 3 If the string direction flag is not set, string operations will move backward through the string. True False Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677/take?... 2 of 7 8/11/2023, 7:03 PM
2 / 2 pts Question 4 The REP prefix checks the value of ECX but will not modify it. True False 2 / 2 pts Question 5 Which of the following would be appropriate to scan through one string, stopping when a character in AL is successfully matched to a character in the string? Assume AL , ECX , ESI , and EDI have already been set appropriately (if necessary). REPNE CMPSB REPNE SCASB REPE SCASB REPE CMPSB 2 / 2 pts Question 6 Which structure is the following true for? For _________, the entire code is substituted for each call. Macros Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677/take?... 3 of 7 8/11/2023, 7:03 PM
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
Neither Macros Nor Procedures Both Macros and Procedures Procedures 2 / 2 pts Question 7 Which structure is the following true for? _________ have a return mechanism involving the system stack. Both Macros and Procedures Macros Procedures Neither Macros Nor Procedures 2 / 2 pts Question 8 Which structure is the following true for? _________ have a calling mechanism involving the EIP. Both Macros and Procedures Neither Macros Nor Procedures Macros Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677/take?... 4 of 7 8/11/2023, 7:03 PM
Procedures 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 82 times during the execution of a program. When implemented as a macro, the macro code requires 79 bytes of memory. When implemented as a procedure, the procedure code requires 103 bytes (including parameter-passing, etc.), and each procedure call requires 7 bytes. How many bytes of memory will the entire program require if the new code is added as a procedure? 1,701 1,701 2 / 2 pts Question 10 Which of the following postfix expressions corresponds to the given infix expression? 1 + 2 * (4 - 2) / 4 ^ (1 + 1) 1 2 4 2 - * 4 1 1 + ^ / + 1 2 4 2 - * 4 / 1 1 + ^ + 1 2 4 2 - * 4 1 ^ 1 + / + Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677/take?... 5 of 7 8/11/2023, 7:03 PM
1 2 + 4 2 - * 4 1 1 + ^ / 2 / 2 pts Question 11 Which of the following infix expressions corresponds to the given postfix expression? 4 5 + 5 ^ 3 4 / - (4 + 5) ^ 5 / 3 - 4 4 + 5 ^ 5 - 3 / 4 (4 + 5) ^ 5 - 3 / 4 (4 + 5) ^ (5 - 3) / 4 0 / 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): 5 4 + 5 6 - * 6 / 4 + 3.5 2.5 margin of error +/- 0.2 Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677/take?... 6 of 7 8/11/2023, 7:03 PM
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
2 / 2 pts Question 13 The IA-32 FPU is directly connected to the ALU via internal bus. True False 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) Z = A + B - C / (D * E) Z = (A + B - C) / (D * E) Quiz Score: 27 out of 31 Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677/take?... 7 of 7 8/11/2023, 7:03 PM
8/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 1/8 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 Score for this attempt: 31 out of 31 Submitted Aug 5 at 3:16pm This attempt took 23 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 If the string direction flag is not set, string operations will move backward through the string. True False 8/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 2/8 2 / 2 pts Question 2 Which of the following string primitives will copy a BYTE from the AL register to the memory location pointed to by EDI ? STOSB SCASB MOVSB CMPSB 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 memory location pointed to by EDI ? STOSB MOVSB CMPSB SCASB LODSB 2 / 2 pts Question 4
8/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 3/8 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 False 2 / 2 pts Question 5 The REP prefix checks the value of ECX but will not modify it. True False 2 / 2 pts Question 6 Which structure is the following true for? _________ have a return mechanism involving the system stack. Procedures Both Macros and Procedures Macros Neither Macros Nor Procedures 8/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 4/8 2 / 2 pts Question 7 Which structure is the following true for? _________ may have LOCAL labels. Both Macros and Procedures Neither Macros Nor Procedures Macros Procedures 2 / 2 pts Question 8 Which structure is the following true for? For _________, the entire code is substituted for each call. Both Macros and Procedures Macros Neither Macros Nor Procedures Procedures 3 / 3 pts Question 9
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/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 5/8 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 51 times during the execution of a program. When implemented as a macro, the macro code requires 76 bytes of memory. When implemented as a procedure, the procedure code requires 110 bytes (including parameter-passing, etc.), and each procedure call requires 8 bytes. How many bytes of memory will the entire program require if the new code is added as a procedure? 1,542 1,542 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 * ^ + 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 ^ * + 2 / 2 pts Question 11 8/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 6/8 Which of the following infix expressions corresponds to the given postfix expression? 2 3 ^ 5 4 * / 10 + 2 ^ (3 / (5 * 4)) + 10 2 ^ 3 / 5 * 4 + 10 2 ^ 3 / (5 * 4) + 10 2 ^ 3 / 5 * (4 + 10) 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 ^ 4 5 - / 6 * -24 -24 margin of error +/- 0.2 2 / 2 pts Question 13 Which instruction is used to convert an integer value to float and push it onto the FPU stack? FIPUSH
8/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 7/8 FILD FLD FINIT 2 / 2 pts Question 14 Which of the following FPU manipulations corresponds to the given infix notation? Z = A * (B / (C - D)) - E FINIT FLD A FLD B FMUL FLD C FDIV FLD D FLD E FSUB FSUB FSTP Z FINIT FLD A FLD B FLD C FLD D FSUB FDIV FMUL FLD E FSUB FSTP Z 8/5/23, 3:18 PM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 8/8 FINIT FLD A FLD B FLD C FDIV FMUL FLD D FSUB FLD E FSUB FSTP Z FINIT FLD A FLD B FLD C FLD D FSUB FLD E FSUB FDIV FMUL FSTP Z Quiz Score: 31 out of 31
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 61 minutes 31 out of 31 Score for this attempt: 31 out of 31 Submitted Aug 6 at 6:08pm This attempt took 61 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 compare the BYTEs stored in the memory locations pointed to by EDI and ESI ? Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677?modu... 1 of 8 8/6/2023, 8:13 PM
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
CMPSB 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
Which structure is the following true for? For _________, the entire code is substituted for each call. Macros Correct!
Which of the following postfix expressions corresponds to the given infix expression? 1 + 2 * (4 - 2) / 4 ^ (1 + 1)
to one decimal place (e.g. for an answer of 13.45 you would enter 13.5): 7 4 7 3 3 4 / + - * + Correct! 20 margin of error +/- 0.2 orrect Answer 2 / 2 pts Question 13 The IA-32 FPU is directly connected to the ALU via internal bus.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 Instruc ons A empt History Attempt Time Score KEPT Attempt 2 52 minutes 31 out of 31 LATEST Attempt 2 52 minutes 31 out of 31 Attempt 1 68 minutes 27 out of 31 Score for this attempt: 31 out of 31 Submitted Aug 11 at 5pm This attempt took 52 minutes. Instruc ons 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! 2 / 2 pts Question 1 Which of the following string primitives will copy a BYTE from the AL register to the memory location pointed to by EDI ? Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 1 of 9 8/11/2023, 7:01 PM
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
SCASB STOSB Correct! Correct! MOVSB LODSB CMPSB 2 / 2 pts Question 2 Which of the following string primitives will copy a BYTE from the memory location pointed to by ESI to the AL register? STOSB LODSB Correct! Correct! MOVSB CMPSB SCASB 2 / 2 pts Question 3 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? Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 2 of 9 8/11/2023, 7:01 PM
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
STOSB SCASB Correct! Correct! CMPSB MOVSB LODSB 2 / 2 pts Question 4 The REP prefixes may be used with most instructions ( MOV , CMP , ADD , etc...). True False Correct! Correct! 2 / 2 pts Question 5 The REP prefix checks the value of ECX but will not modify it. True False Correct! Correct! 2 / 2 pts Question 6 Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 3 of 9 8/11/2023, 7:01 PM
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
Which structure is the following true for? _________ may have LOCAL labels. Procedures Both Macros and Procedures Correct! Correct! Neither Macros Nor Procedures Macros 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? For _________, arguments are substituted exactly as entered, without checking for memory, registers, or literals. Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 4 of 9 8/11/2023, 7:01 PM
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
Neither Macros Nor Procedures Macros Correct! Correct! Procedures Both Macros and Procedures 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 31 times during the execution of a program. When implemented as a macro, the macro code requires 65 bytes of memory. When implemented as a procedure, the procedure code requires 105 bytes (including parameter-passing, etc.), and each procedure call requires 8 bytes. How many bytes of memory will the entire program require if the new code is added as a procedure? 1,377 Correct! Correct! 1,377 orrect Answer orrect Answer 2 / 2 pts Question 10 Convert the following infix expression to postfix: a + ((b * c) - d) / (e + f) Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 5 of 9 8/11/2023, 7:01 PM
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
a b c * d - e f + / + Correct! Correct! orrect Answers orrect Answers bc* d- ef+ / a+ b c * d - e f + / a + abc*d-ef+/+ a b c * d - e f + / + a b c* d- e f+/+ bc*d-ef+/a+ 2 / 2 pts Question 11 Which of the following infix expressions corresponds to the given postfix expression? 3 5 4 2 3 6 / * - ^ + 3 / 5 * (4 - 2 ^ 3 + 6) 3 + 5 ^ (4 - 2 * 3 / 6) Correct! Correct! (3 + 5) ^ (4 - 2 * 3 / 6) 3 + 5 ^ 4 - 2 * 3 / 6 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 ^ 7 4 - / 2 * Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 6 of 9 8/11/2023, 7:01 PM
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
2.7 Correct! Correct! 2.7 margin of error +/- 0.2 orrect Answer orrect Answer 2 / 2 pts Question 13 Which instruction is used to convert an integer value to float and push it onto the FPU stack? FINIT FLD FILD Correct! Correct! FIPUSH 2 / 2 pts Question 14 Which of the following FPU manipulations corresponds to the given infix notation? Z = (A + B - C) / D * E Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 7 of 9 8/11/2023, 7:01 PM
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
FINIT FLD A FLD B FADD FLD C FSUB FLD D FDIV FLD E FMUL FSTP Z Correct! Correct! FINIT FLD A FLD B FADD FLD C FSUB FLD D FMUL FLD E FDIV FSTP Z FINIT FLD A FLD B FADD FLD C FSUB FLD D FDIV FLD E FMUL FSTP FINIT FLD A FLD B FSUB FLD C FADD FLD D FDIV FLD E FMUL FSTP Z Quiz Score: 31 out of 31 Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 8 of 9 8/11/2023, 7:01 PM
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
Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 9 of 9 8/11/2023, 7:01 PM
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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 1/8 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 141 minutes 31 out of 31 Score for this attempt: 31 out of 31 Submitted Aug 12 at 12:28am This attempt took 141 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 copy a BYTE from the AL register to the memory location pointed to by EDI ? LODSB
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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 2/8 MOVSB STOSB Correct! Correct! CMPSB SCASB 2 / 2 pts Question 2 Which of the following string primitives will copy a BYTE from the memory location pointed to by ESI to the memory location pointed to by EDI ? STOSB SCASB MOVSB Correct! Correct! CMPSB LODSB 2 / 2 pts Question 3 Which of the following string primitives will compare the BYTEs stored in the memory locations pointed to by EDI and ESI ? CMPSB Correct! Correct! STOSB MOVSB
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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 3/8 SCASB LODSB 2 / 2 pts Question 4 Which of the following would be appropriate to scan through one string, stopping when a character in AL is successfully matched to a character in the string? Assume AL , ECX , ESI , and EDI have already been set appropriately (if necessary). REPE CMPSB REPNE CMPSB REPE SCASB REPNE SCASB Correct! Correct! 2 / 2 pts Question 5 The REP prefix checks the value of ECX but will not modify it. True False Correct! Correct! 2 / 2 pts Question 6 Which structure is the following true for?
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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 4/8 _________ have a calling mechanism involving the EIP. Neither Macros Nor Procedures Macros Procedures Correct! Correct! Both Macros and Procedures 2 / 2 pts Question 7 Which structure is the following true for? _________ may have LOCAL labels. Neither Macros Nor Procedures Both Macros and Procedures Correct! Correct! Macros Procedures 2 / 2 pts Question 8 Which structure is the following true for? _________ are translated only once, and can be called many times. Neither Macros Nor Procedures Both Macros and Procedures
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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 5/8 Procedures Correct! Correct! 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 26 times during the execution of a program. When implemented as a macro, the macro code requires 86 bytes of memory. When implemented as a procedure, the procedure code requires 136 bytes (including parameter-passing, etc.), and each procedure call requires 10 bytes. How many bytes of memory will the entire program require if the new code is added as a macro? 3,260 Correct! Correct! 3,260 orrect Answer orrect Answer 2 / 2 pts Question 10 Which of the following postfix expressions corresponds to the given infix expression? (13 + 14 - 3 + 2) / 2 ^ 3 13 14 + 3 2 - + 2 3 ^ / 13 14 + 3 - 2 + 2 3 ^ / Correct! Correct! 13 14 + 3 - 2 + 2 3 / ^
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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 6/8 13 14 + 3 2 + - 2 3 ^ / 2 / 2 pts Question 11 Which of the following infix expressions corresponds to the given postfix expression? 3 3 * 5 4 2 * / - 3 * 3 - 5 / (4 * 2) Correct! Correct! 3 * 3 - 5 / 4 * 2 3 * 3 - 5 * 4 / 2 3 * (3 - 5) / (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): 5 5 + 4 3 - * 5 / 7 + 9 Correct! Correct! 9 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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 7/8 1-2 none Correct! Correct! 0-2 2 / 2 pts Question 14 Which of the following FPU manipulations corresponds to the given infix notation? Z = A * (B / (C - D)) - E FINIT FLD A FLD B FLD C FDIV FMUL FLD D FSUB FLD E FSUB FSTP Z FINIT FLD A FLD B FMUL FLD C FDIV FLD D FLD E FSUB FSUB FSTP Z
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/12/23, 12:28 AM Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LANGUAGE (CS_271_400_U2023) https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 8/8 FINIT FLD A FLD B FLD C FLD D FSUB FLD E FSUB FDIV FMUL FSTP Z FINIT FLD A FLD B FLD C FLD D FSUB FDIV FMUL FLD E FSUB FSTP Z Correct! Correct! Quiz Score: 31 out of 31
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
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 21 minutes 31 out of 31 Score for this attempt: 31 out of 31 Submitted Aug 12 at 9:43am This attempt took 21 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 ESI register? Check all that apply. Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 1 of 9 8/12/2023, 12:43 PM
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
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
STOSB
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
2 / 2 pts Question 6 Which structure is the following true for? _________ have a calling mechanism involving the EIP.
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
_________ are translated only once, and can be called many times.
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
a b c* d- e f+/+ a b c * d - e f + / + bc* d- ef+ / a+ b c * d - e f + / a + abc*d-ef+/+ bc*d-ef+/a+ 2 / 2 pts Question 11 Which of the following infix expressions corresponds to the given postfix expression? 3 5 4 2 3 6 / * - ^ +
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
17.5 margin of error +/- 0.2 2 / 2 pts Question 13 Which instruction is used to convert an integer value to float and push it onto the FPU stack?
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
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
Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 9 of 9 8/12/2023, 12:43 PM
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