100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

BUS 218 Exam 1 Questions With Verified Answers

Rating
-
Sold
-
Pages
17
Grade
A+
Uploaded on
02-10-2023
Written in
2023/2024

relationship between "machine code" and "assembly language" - Answer they have 1 to 1 ratio layout of rax register - Answer rax - 64 bits (entire register) or 8 bytes eax - lower 32 bits or 4 bytes ax - lower 16 bits or 2 bytes ax = ah:al al and ah - 8 bits or 1 byte al - lowest 8 bits bits in al - Answer 8 bits in rcx - Answer 64 bits in bx - Answer 16 bits in edx - Answer 32 what does rip register refer to - Answer instruction pointer register what does the rsp register refer to - Answer stack pointer register how many bits does one hex digit require - Answer 4 bits range of byte - Answer signed: -(2^7) to (2^7)- 1 unsigned: 0 to (2^8) - 1 range of word - Answer signed: -(2^15) to (2^15)-1 unsigned: 0 to (2^16)-1 range of double word - Answer signed: -(2^31) to (2^31)-1 unsigned: 0 to (2^32)-1 on the intel 80x86 base architecture, how many bytes can be stored at each address - Answer 1 byte tell what each instruction does: (1) mov rax, qword [var] (2) mov rax, var - Answer (1) copies value of var in rax (2) address of var copies into rax can a constant be changed during program execution - Answer no what register refers to the current top of the stack - Answer rsp when a macro is invoked, how many times is the code placed into the code segment - Answer it is placed into the code segment the number of times it is invoked what happens as a result of a push rax instruction - Answer (1) decrements rsp by 8 (2) copies rax value to rsp (top of stack) how many bytes of data does the pop rax instruction remove from the stack - Answer 8 bytes when arguments are passed using values, it's referred to as - Answer pass by value when arguments are passes using addresses, it's referred to as - Answer pass by reference according to the standard calling convention, what's the purpose of the initial push's and final pop's within most functions - Answer to preserve and restore saved registers what is the purpose of the add rsp , <immediate> after the call statement - Answer to clear out any arguments in the stack if three arguments are passed on the stack , what is the value for the immediate - Answer 24 (8 * 3) if a function is called 73 times, how many copies of the function code are placed into memory - Answer only one existence of the function code exists Draw the Von Neumann architecture - Answer What architecture component connects the memory to the CPU? - Answer Bus or interconnection where are programs stored when the computer is turned off - Answer secondary storage where must programs be located when they are executing - Answer primary storage or main memory (ram) how does cache memory help overall performance - Answer Keeps a copy of the data closer to the CPU, eliminating the extra time required to access the RAM via the Bus. How many bytes does a C++ integer declared with the declaration int use? - Answer 4 bytes most significant byte - Answer left most byte least significant byte - Answer rightmost byte bits in r11 - Answer 64 bits in r8b - Answer 8 bits in sil - Answer 8 bits in r14w - Answer 16 which register points to the next instruction to be executed - Answer rip register what is the name of the assembler being used in the class - Answer yasm name of section where initialized data is declared - Answer data name of section where uninitialized data is declared - Answer bss name of section where code is placed - Answer text

Show more Read less
Institution
BUS 218
Course
BUS 218










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
BUS 218
Course
BUS 218

Document information

Uploaded on
October 2, 2023
Number of pages
17
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • bus 218 stuvia

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Grademasters West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
114
Member since
2 year
Number of followers
68
Documents
2605
Last sold
2 days ago
Grademasters

3.8

46 reviews

5
20
4
9
3
11
2
2
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions