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
Nimfa-mama [501]
3 years ago
8

Consider the following JavaScript program:

Computers and Technology
1 answer:
dem82 [27]3 years ago
7 0

Answer:

Variable       Where Declared

In Sub1 :

        A        Sub1

        Y        Sub1

        Z        Sub1

        X        Main

In Sub2:

        A        Sub2

        B        Sub2

        Z        Sub2

        Y        Sub1

        X        Main

In Sub3 :

        A        Sub3

        X        Sub3

        W       Sub3

        Y        Main

        Z        Main

Explanation:

In static-scoped languages with nested subprograms, the declaration of a variable is checked with the subprogram, if it is not found, it check within the parent method that called it, it continue until it find a declaration, if no declaration is found, it display an error.

In Sub1, a, y, z is declared there while the declaration of x is found in main.

In Sub2, a, b, z is declared, declaration of y is found in sub1 and declaration of x is found in main.

In Sub3, a, x, w is declared while the declaration of y, z is from the main.

You might be interested in
Maintenance is an essential task that is often considered to be dull. In information security, penetration testing may be wrongl
RideAnS [48]

<u>Explanation:</u>

It is important to bear in mind that a penetration tester (analyst) performs a risk management role of a firm's internal system by attempting to break into an IT system.

Here are the benefits to internal systems;

  • They help detect security loopholes before a cyberattack.
  • They determine how vulnerable a network or computer program is.
  • They advise the IT firm's security teams on how to mitigate vulnerabilities detected.

7 0
3 years ago
What is the difference between a ROM chip and a RAM chip?
Leokris [45]

Answer:

A: A ROM chip is non-volatile and will keep its data in the case of a power failure. A RAM chip is volatile and will wipe its data in the case of a power failure.

Explanation:

ROM chips were widely used at the time of the old consoles, because with it you had an extremely fast and non-volatile memory, but this technology is very expensive and started to use CDs in the Consoles, while the RAM memory is a memory of execution random (RAM = RANDOM ACESS MEMORY).

4 0
3 years ago
Development of smart phone​
Delvig [45]

Answer:

The first smartphone, created by IBM, was invented in 1992 and released for purchase in 1994. It was called the Simon Personal Communicator (SPC). While not very compact and sleek, the device still featured several elements that became staples to every smartphone that followed.

4 0
3 years ago
Compare and contrast two difference cloud computing services (Amazon Web Service and Microsoft Azure). Explain the differences a
MrRa [10]

Answer:

Today we have at our disposal a wide range of high quality products and services, which will allow us to cover any type of need we may have. One of these are cloud services, for the support of our online operations. Amazon Aws and Microsoft Azure are two examples of this.

Amazon was the first to offer its services in the cloud, which somehow allows it to have a certain advantage in the business, and it is obviously the most expensive. Microsoft entered later and is gradually placing itself at its height, through its own ideas, its own offers and drawing a downturn in its prices.

Both options have similar cloud storage capacity, but Amazon's S3 service is the one that has been running for the longest time, becoming a key factor when choosing. However, Azure also provides a robust and reliable service, and its advantage may be the cost.

Explanation:

Another important point when choosing the service is the location of the operations center, according to the location of potential customers. An example of this, if our clients are located on the east coast of the United States, we must deploy our services there or nearby, to minimize latency problems.

An advantage of Amazon is the AWS Lambda, which is capable of executing algorithms and allowing to accelerate the processes that are periodic of some service. An advantage of Azure is that it drives and manages open source developments, allowing it to offer technical support for applications on Linux, Microsoft, etc.

Amazon and Microsoft offer different offers to start working quickly. This means that we can experiment in the cloud without a high cost, and depending on our specific needs, but in my opinion I would select that of Amazon, since it was the pioneer in this cloud service, and although it is a bit more expensive than Microsoft is the most robust system in which you can make better use of monitoring and visualization resources.

7 0
4 years ago
Temelde PC terminalinden bir tamsayı değeri alan ve Arduino kartındaki çözümleri hesaplayan ve cevapları PC terminaline tekrar e
Leona [35]
Sorry I cant help with his question I don’t understand
3 0
3 years ago
Other questions:
  • Sara is having a tough time finding the cause of a problem on a computer she is troubleshooting. She found a possible problem bu
    15·1 answer
  • Explain the steps you take to complete an Internet search. Do you use a particular search engine every time or do you alternate?
    12·1 answer
  • Who invented google​
    14·1 answer
  • The web development team is having difficulty connecting by ssh to your local web server, and you notice the proper rule is miss
    8·1 answer
  • How and why do engineers use models?
    15·1 answer
  • Your long and short term goals (career or job etc)? ANSWER FAST!!!
    6·1 answer
  • Which web design concept is most closely related to elements that symbolize the real world​
    5·1 answer
  • PLEASE HELP ME I WILL GIVE BRAINIEST AND 40 POINTSPython Project Worksheet
    12·1 answer
  • What is the best wi-fi name you have ever seen?
    10·1 answer
  • Your program has a loop. You want to exit the loop completely if the user guesses the correct word.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!