
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
![What values will be written to the array when the following code executes?
data
array DWORD 4 DUP(0)
code
main PROC
mov eax, 5
mov esi, 0
call proc_1
add esi,4
add eax 3
k
mov array[esi] eax
INVOKE ExitProcess 0
main ENDF
proc 1 PROC
call proc_2
add esi, 4
add eax, 3
mov array[esi], eax
ret
proc 1 ENDP
proc 2 PROC
call proc_3
add esi.4
add eax 3
mov array[esi] eax
ret
Proc RENDE
proc_3 PROC
mov array[esi] eax
ProcA ENDP
Answer:
array](https://content.bartleby.com/qna-images/question/03ad3f41-6abd-4c87-9649-36856dac78a8/fb2cf6ac-f53b-4e6b-997d-22cca4f50442/4gsjthr_thumbnail.jpeg)
Transcribed Image Text:What values will be written to the array when the following code executes?
data
array DWORD 4 DUP(0)
code
main PROC
mov eax, 5
mov esi, 0
call proc_1
add esi,4
add eax 3
k
mov array[esi] eax
INVOKE ExitProcess 0
main ENDF
proc 1 PROC
call proc_2
add esi, 4
add eax, 3
mov array[esi], eax
ret
proc 1 ENDP
proc 2 PROC
call proc_3
add esi.4
add eax 3
mov array[esi] eax
ret
Proc RENDE
proc_3 PROC
mov array[esi] eax
ProcA ENDP
Answer:
array
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Match each data operator with its function: OFFSET Returns the number of the elements in an array. TYPE Returns the size of a variables byte. SIZEOF Returns the memory adress of a variable. LENGTHOF Returns number of bytes used in an array.arrow_forwardIn visual basic Write the code that will sequentially search through the array strFirstNames and will print out the word "Found" if the name "Brian" is in the array.arrow_forwardDescription Create an application that maintains an array of your home inventory and displays the contents of the array in a list box. For this assignment, we will be using an array. In later chapters, we will modify this application to use a database or an external text file. The application should look like: g My Home Inventory Home Inventory Item Description Ist Homelnventory Serial Number Cost ADD DELETE REFRESH BYE Detailed Instructions 1. Define arrays for Item Description, Serial Number, and Cost after the Public Form Q and before any click of page load events. 2. In the Page Load Event, populate the Home Inventory List Box with the data from the arrays using the format: "ItemDecription (SerialNumber, Cost)". 3. If the ADD button is clicked, add the Item Description, Serial Number, and Cost to the Home Inventory List Box and to the appropriate arrays. 4. If the DELETE button is clicked, remove the item from the Home Inventory List Box and corresponding arrays. 5. If the REFRESH…arrow_forward
- The logic will allow the user to: Load a single dimensional array of size 50 with a random number The random number will range from 1 to 1,000 (you may have duplicate values) Find the highest value and the index location that it was in Find the smallest value and the index location that it was in Display the array’s contents. Display the highest value and its index location Display the lowest value and its index location Allow the user to execute this application multiple times (some sort of loop?) You will need one for loop to load the array as well as one or two for loops to search that array. The rand also has a “nasty” tendency to create the same results repeatedly in an exe. To avoid that, we have to “shuffle the deck” every time. This ensures that all numbers are an equal probability of appearing and not the same set of values (would create a boring game). // Add this to "shuffle the deck" every time to ensure that // different values could occur else the exe produces the…arrow_forwardCorrect errorsarrow_forwardVisual basic 6.0arrow_forward
- Alert dont submit AI generated answer.arrow_forwardDynamic Array Functions XLOOKUP What is one characteristic of the XLOOKUP) function that makes it so flexible? OPTIONS: It can only take dynamic arrays as input It can be used to lookup data both vertically and horizontally It always returns a matrix of data It takes only one input parameterarrow_forwardQuestion Write the code needed to create, instantiate and populate an array. You may select the datatype.arrow_forward
- A(n) ___ is used in an array to across each element? a. Index b. Subscript C. Both a and b d. None of the abovearrow_forwardWhen is it necessary to build an array?arrow_forwardWhich is not true? Group of answer choices An array is a group of variables that all have the same name. An array is a group of variables that all have the same data type. The variables in an array do not have to be stored in consecutive memory locations in the computer's internal memory. All are true.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education