answer.
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]
2 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]2 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 code which takes a sentence as an input from the user and then prints the length of the first word in that sentence.
Afina-wow [57]

import java.util.Scanner;

public class U2_L3_Activity_Four {

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter a sentence.");

       String sent = scan.nextLine();

       int count = 0;

       for (int i = 0; i < sent.length(); i++){

           char c = sent.charAt(i);

           if (c != ' '){

               count++;

       }

           else{

               break;

           }

       

   }

       System.out.println("The first word is " + count +" letters long");

   

   }

}

We check to see when the first space occurs in our string and we add one to our count variable for every letter before that. I hope this helps!

7 0
1 year ago
This exercise shows why each pivot (in eli1nination by pivoting) must be in a different row. (a) In Example 7, make the third pi
Darya [45]

Answer:gghggggggggggggg

Explanation:

8 0
2 years ago
Joe, Kate and Jody are members of the same family. Kate is 5 years older than Joe. Jody is 6 years older than Kate . The sum of
mezya [45]

Answer:

5, 10 and 16

Explanation:

The sum of their ages is √961 = 31

If Joe is x years old, the equation that follows is:

x + (x+5) + (x+5+6) = 31

This simplifies to

3x = 31 - 11 - 5 = 15

so x=5

From that you can find

Joe = x = 5

Kate = x+5 = 10

Jody = x+5+6 = 16

5 0
2 years ago
Read 2 more answers
A remediation liaison makes sure all personnel are aware of and comply with an organization's policies.
Ratling [72]

Answer:

False.

Explanation:

I believe this should be the work of a compliance liaison. Assume you have opened up an organization that is growing each day. You have employees who are required to be compliant with all the security standards and policies. Hiring a compliance liaison will ensure that these compliances are being carried out. Each department in an organization should work with a compliance liaison to ensure that its employees understand and comply fully with all security policies.

8 0
2 years ago
While creating an animation, Gina has prepared a document stating the purpose and type of audience for the animation. What has
nekit [7.7K]

Answer:

Flash document

Explanation:

While creating an animation, we need to find out the purpose and the type of the audience, the file size and various other features of the animation. And all these details are being mentioned in one document, and we know that as the flash document. The purpose and the target audience both are being mentioned in the flash document. And this flash document is being used as a reference while developing an animation. The purpose and target audience are important factors while designing an animation.

4 0
2 years ago
Other questions:
  • 9.10: Reverse ArrayWrite a function that accepts an int array and the array ’s size as arguments . The function should create a
    9·1 answer
  • If the computer has an encrypted drive, a ____ acquisition is done if the password or passphrase is available. a. passive b. sta
    8·1 answer
  • Write a static method, getBigWords, that gets a single String parameter and returns an array whose elements are the words in the
    15·1 answer
  • The following checksum formula is widely used by banks and credit card companies to validate legal account numbers: d0 + f(d1) +
    13·1 answer
  • Create a generic class Box with a type parameter that simulates drawing an item at random out of a box. This class could be used
    7·1 answer
  • A sine wave is offset 1/9 cycle with respect to time 0. What is its phase in degrees and radians? Which simple signal has a wide
    12·1 answer
  • For a class project, Jerome builds a simple circuit with a battery and three light bulbs. On his way to school, Jerome drops his
    9·1 answer
  • Probability of theft in an area is 0.03 with expected loss of 20% or 30% of things with probabilities 0.55 and 0.45. Insurance p
    5·1 answer
  • HELP 30 points and Brainliest.Type the correct answer in the box. Spell all words correctly.
    11·1 answer
  • Identify the tips to create a well-designed digital portfolio.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!