mse7-1

pdf

School

University of West Georgia *

*We aren’t endorsed by this school

Course

5

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

8

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 Instructions Attempt History Attempt Time Score LATEST Attempt 1 52 minutes 31 out of 31 Score for this attempt: 31 out of 31 Submitted Aug 13 at 10:50am This attempt took 52 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 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 1 of 8 8/13/2023, 10:51 AM
LODSB CMPSB STOSB MOVSB SCASB Correct! Correct! 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? LODSB Correct! Correct! SCASB STOSB CMPSB MOVSB 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 ? Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 2 of 8 8/13/2023, 10:51 AM
CMPSB MOVSB Correct! Correct! LODSB STOSB SCASB 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! Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 3 of 8 8/13/2023, 10:51 AM
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. Procedures Correct! Correct! Neither Macros Nor Procedures Macros 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 Both Macros and Procedures Macros Correct! Correct! 2 / 2 pts Question 8 Which structure is the following true for? Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 4 of 8 8/13/2023, 10:51 AM
_________ are translated only once, and can be called many times. Macros Procedures Correct! Correct! Both Macros and Procedures Neither Macros Nor 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 52 times during the execution of a program. When implemented as a macro, the macro code requires 80 bytes of memory. When implemented as a procedure, the procedure code requires 164 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,552 Correct! Correct! 1,552 orrect Answer orrect Answer 2 / 2 pts Question 10 Which of the following postfix expressions corresponds to the given infix expression? Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 5 of 8 8/13/2023, 10:51 AM
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 ^ * + Correct! Correct! 56 42 4 * 2 * 256 /128 64 - / 3 12 ^ * + 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) Correct! Correct! (3 + 5) ^ (4 - 2 * 3 / 6) 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 6 7 6 3 3 / + - * + Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 6 of 8 8/13/2023, 10:51 AM
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 Correct! Correct! 2 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? FILD Correct! Correct! FIPUSH FLD FINIT 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 Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 7 of 8 8/13/2023, 10:51 AM
Z = (A + B - C) / (D * E) Z = A + B - C / (D * E) Z = A + (B - C) / (D * E) Correct! Correct! Z = A + (B - C) / D * E Quiz Score: 31 out of 31 Module 7 Summary Exercises: COMPUTER ARCH & ASSEM LA... https://canvas.oregonstate.edu/courses/1923269/quizzes/2877677 8 of 8 8/13/2023, 10:51 AM