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
labwork [276]
3 years ago
4

Given the following calling sequences and assuming that dynamic scoping is used, what variables are visible during execution of

the last function called? Include with each visible variable the name of the function in which it was defined. a. main calls fun1; fun1 calls fun2; fun2 calls fun3. b. main calls fun1; fun1 calls fun3. c. main calls fun2; fun2 calls fun3; fun3 calls fun1. d. main calls fun3; fun3 calls fun1. e. main calls fun1; fun1 calls fun3; fun3 calls fun2. f. main calls fun3; fun3 calls fun2; fun2 calls fun1.
Computers and Technology
1 answer:
Strike441 [17]3 years ago
7 0

Answer:

see explaination

Explanation:

a) Main call fun1; fun1 calls fun2; fun2 calls fun3.

Answer:

Variables that are visible at the last function call:

a ------------- defined in main

b ------------- defined in fun1

c ------------- defined in fun2

d, e, f ------------- defined in fun3

b) Main call fun1; fun1 calls fun3.

Answer:

Variables that are visible at the last function call

a ------------- defined in main

b, c ------------- defined in fun1

d, e, f ------------- defined in fun3

c) Main calls fun2; fun2 calls fun3; fun3 calls fun1.

Answer:

Variables that are visible at the last function call:

a ------------- defined in main

e, f ------------- defined in fun3

b, c, d ------------- defined in fun1

d) Main calls fun3; fun3 calls fun1.

Answer:

Variables that are visible at the last function call:

a ------------- defined in main

e, f ------------- defined in fun3

b, c, d ------------- defined in fun1

e) Main calls fun1; fun1 calls fun3; fun3 calls fun2.

Answer:

Variables that are visible at the last function call:

a ------------- defined in main

b ------------- defined in fun1

f ------------- defined in fun3

c, d, e ------------- defined in fun2

f) Main calls fun3; fun3 calls fun2; fun2 calls fun1

Answer:

Variables that are visible at the last function call:

a ------------- defined in main

f ------------- defined in fun3

e ------------- defined in fun2

b, c, d ------------- defined in fun1

You might be interested in
Consider a hard disk with the following specifications :<br> 3.5 in diameter
AnnyKZ [126]

Answer:

usable capacity = 10 GB

Number of cylinders = 256

Block size = 4 KB

(1)Bytes in each cylinder = (10*230)/(256) = (10*222) = 40 MegaBytes

(2)Number of Blocks in each cylinder = (10*222)/(212) = 10K

(3)capacity of one track = 40 MegaBytes/(10*2) = 2 MB

Rotation speed = 3840 RPM

Number of rotations per second = 3840/60 = 64

Transfer rate = (2*64) = 128 MB/sec

Explanation:

6 0
3 years ago
The "Father of the Computer" was _____________, an Englishman, who in 1836 produced designs for a "computer" that could conduct
Leviafan [203]

Answer:

Charles Babbage is the correct answer to the following question.

Explanation:

Charles Babbage is the person who invented the computer, but he failed to build the computer system and the first engine was finished in year 2002 in London, after 153 years of his death but he was an inventor and the father of the automatic computing engines.

So, that's why he was called as the "Father of Computer".

5 0
3 years ago
Match the actions of individuals with the code of conduct they are adhering to. Sofia is an HR Manager who keeps all employee re
aksik [14]

All the code of conducts is good and it is expected from each and every employee of the organization. Employee details needs to be kept confidential and Sofia, the HR manager is adhering to it. Employee’s productivity increases if unnecessary use of mobile phone stops.

It is always recommended to use free items than the copyrighted items. It’s a good ethical practice. Becky is also right, because he considers work as work and does not get deviated with dinner invites and gifts.

5 0
3 years ago
Read 2 more answers
What is one effective way for employees to keep their skill-sets current
natta225 [31]
Is it a multiple choice answer? if so would like to see the answers as there are TONS of effective ways and if i list one it may not be in that list you have if its multiple choice.
3 0
3 years ago
THIS IS PYTHON QUESTION
frozen [14]

Answer:

ok

Explanation:yes

4 0
3 years ago
Other questions:
  • 6.31 LAB: Leap year - functions A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer
    9·2 answers
  • Which generation is called the new silent generation?
    6·1 answer
  • I want to be a teacher some day and i know this question------------- Humans have a nose to breath , but what do fishes use to h
    6·2 answers
  • Because a vector container uses a dynamically allocated array to hold its elements,
    5·1 answer
  • The goal of an audio codec is
    10·1 answer
  • Write a Program in C language using arrays:
    14·1 answer
  • Address whether each defense method listed above (single router, defense-in-depth, and demilitarized zone) is sufficiently diffe
    8·1 answer
  • 2. How is accessing the Internet through a home network and public Wi-Fi similar?​
    15·1 answer
  • The five types of personal computers are: desktops, laptops, tablets, smartphones, and ________.
    13·1 answer
  • In a swap you need a variable so that one of the values is not lost ? Need help
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!