1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Morgarella [4.7K]
4 years ago
10

Show the stack with all activation record instances, including static and dynamic chains, when execution reaches position 1 in t

he following skeletal program. Assume bigsub is at level 1. function bigsub() { function a(flag) { function b() { ... a(false); ... } // end of b ... if (flag) b(); else c(); ... } // end of a function c() { function d() { ... <------------------------1 } // end of d ... d(); ... } // end of c ... a(true); ... } // end of bigsub The calling sequence for this program for execution to reach d is bigsub calls a a calls b

Computers and Technology
1 answer:
il63 [147K]4 years ago
8 0

Answer:

<u>Stack for all the active record instances:</u>

The initial calling sequences is bigsub

-The bigsub calls funa.

  • In static chain funa finishes their processes then it return back to bigsub
  • In dynamic chain funa finishes their processes then it return back to bigsub

-The funa calls funb.

  • In static chain funb finishes their processes then it return back to funa
  • In dynamic chain funb finishes their processes then it return back to funa

-The funb calls funa.

  • In static chain funa finishes their processes then it return back to bigsub
  • In dynamic chain funa finishes their processes then it return back to funb

-The funa calls func.

  • In static chain func finishes their processes then it return back to bigsub
  • In dynamic chain func finishes their processes then it return back to funa

-The func calls fund.

  • In static chain fund finishes their processes then it return back to func
  • In dynamic chain fund finishes their processes then it return back to func

Explanation:

See the stack diagram.

You might be interested in
Write a C++ program that uses a while statement and the tab escape sequence \t to print the following table of values:N 1 0*N 1
Luda [366]

Answer:

#include <iostream>

using namespace std;

int main()

{

cout << "N\t10*N\t100*N\t1000*N" << endl;

int x=1;

while(x<=5){

 cout << x <<"\t"<< x*10 <<"\t"<<x*100  <<"\t"<< x*1000 << endl;

 x++;

}

   return 0;

}

Explanation:

Print the header, N 10*N 100*N 1000*N, using \t

Initialize the x as 1. It will be used to control the while loop

Create a while loop that iterates while x is smaller than or equal to 5

Inside the loop, print the required values. After printing, increment the value of x by 1

5 0
4 years ago
Assume that at time 5 no system resources are being used except for the processor and memory. Now consider the following events:
masya89 [10]

Answer:

At time 18: P7 executes a command

8 0
3 years ago
How do I do this? <br> Someone Please help
romanna [79]

Answer:

I am done solving there was a synthetic error very sorry I tried to help for 30mins

4 0
2 years ago
What could happen if I break copyright law in the future​
irinina [24]
Um i’m pretty sure you could go to jail and you would have to pay fines
6 0
3 years ago
Read 2 more answers
Publishing a webpage means<br><br>​
Len [333]

Answer:

Publishing original content on the internet.

Explanation:

This is what publishing a webpage means.

8 0
2 years ago
Other questions:
  • What do you call the combination of title, description, tags, and thumbnail?
    6·1 answer
  • This algorithm works by selecting the smallest unsorted item in the list and then swapping it with the item in the next position
    10·1 answer
  • Given the three side lengths, how can you tell if a triangle<br>is a right triangle?​
    5·1 answer
  • A user is reporting to you that they are unable to run a script named script1 within their home directory. The user has ownershi
    6·1 answer
  • I need topics/suggestions for a highschool survey.
    6·1 answer
  • Write a recursive function that calculates the sum 11 22 33 ... nn, given an integer value of nin between 1 and 9. You can write
    10·1 answer
  • What if an html code became cracked and formed a bug how can i repair that
    8·1 answer
  • Please help
    14·1 answer
  • How are switches indirectly involved in ARP poisoning?
    10·1 answer
  • Does anyone know how to by pass this pls help?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!