CYBR 215 Computer Programming with a Low Level Language

Assignment Help C/C++ Programming
Reference no: EM132559915 , Length: 4 pages

CYBR 215 Computer Programming with a Low Level Language - Norwich University College

1) Suppose you have an empty generic stack. What does the stack look like after the following operations have been performed? Be sure to indicate the top of the stack.

Push 4
Push 9
Push 1
Push 9
Pop
Push 8
Pop
Pop
Push 3

2) In the above example, what is the esppointing to after the operations have been completed?

3) Suppose you have an empty generic stack. Indicate which of the following instructions will invoke a stack underflow.

1. Push 1
2. Push 2
3. Pop
4. Push 9
5. Pop
6. Pop
7. Pop
8. Pop
9. Push 3

4) Suppose you have the following function prototype:

void compute(intw, intx, inty, intz);

Now suppose the function is called:

compute(3, 4, 1, 0);

Show the assembly code generated by this function call using CDECL.

5) Briefly explain what the heap data structure is used for in terms of memory. How does the heap differ from the stack?

6) Explain the purpose of relative virtual addressing in Win32 executables.

7) Which header file in the Win32 SDK contains the variables and data structures used to construct PE files?

8) In a Win32 binary executable, what two letters are stored in the character array DOS_Header.signature[2]?

9) Suppose you have a Win32 binary executable and you have COFFHeader.Machine=496. What machine architecture was this executable compiled for?

10) What is the value of COFFHeader.Characteristics for a Win32 DLL file?

11) Which Windows subsystem will be invoked to run the executable if PEOptHeader.Subsystem = 2?

For problems 12, 13, 14, and 15, use the section definitions provided below.

1979_figure.jpg

12) Based on the section flags above,

a. Which section is readable?

b. Which section is executable?

c. Which section is writable?

13) What is the size of the .text section once it is loaded into memory?

14) What is the RVA of the .data section once it is loaded into memory?

15) What is the physical size of the .data section on disk?

16) Briefly describe static linking and dynamic linking. Include the advantages and disadvantages of dynamic linking over static linking.

17) In terms of modules, define an export.

18) Which entry of the resource directory identifies the start of the export directory?

19) What is the role of the import table in dynamic linking?

20) What is the primary benefit of storing a precomputed import address into IMAGE_IMPORT_DESCRIPTOR.FirstThunk?

21) Describe a Windows DLL.

22) Suppose you are writing a DLL and need to export the function voidCYBR215(). Show the C syntax to export this function for use by other modules or executables.

23) Show how you could import the same function for local use in another module or executable.

Reference no: EM132559915

Questions Cloud

Compute the unit product cost for year : During its first year of operations, O'Brien produced 100,000 units and sold 80,000 units. Compute the unit product cost for Year
Government spending need to change to close the gap : In which direction and by how much would the government spending need to change to close the gap? Fully explain your answer
Find the price of a call option on the stock : The annual risk-free rate is 10%. Find the price of a call option on the stock that has an exercise price of $55 and that expires in 1 year.
Demonstrate the concept of elasticity : Why or how they demonstrate the concept of elasticity; and two examples of externalities, again including an explanation
CYBR 215 Computer Programming with a Low Level Language : CYBR 215 Computer Programming with a Low Level Language Assignment Help and Solution, Norwich University College - Assessment Writing Service
Prepare t-accounts to show the ending balances : Prepare T-accounts to show the ending balances in Accounts Receivable and Allowance for Doubtful Accounts. Compute net Accounts Receivable at March 31
What are the challenges encountered in data collection : What are the challenges encountered in data collection as it applies to research? What are the types of interview technique when interviewing participants?
Explain the six stages of the consumer buying process : Explain the six stages of the consumer buying process from a theoretical standpoint. Apply this model to a recent purchase you made.
Develop new beverage product concept : Develop a new beverage product concept that can be brought to market by 2021. The product should have broad appeal for the US market

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd