What is the scope of the following variables? a. X, declared in the main program? b. X,
Question:
What is the scope of the following variables?
a. X, declared in the main program?
b. X, declared in the subprogram?
Transcribed Image Text:
Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2 Call Sub(X, Y) Write X Write Y End Program Subprogram Sub(Integer Numl, Integer Num2 As Ref) Declare X As Integer Set Numl = 3 %3! Set Num2 = 4 %3! Set X = 5 Write X End Subprogram
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (8 reviews)
a Global t...View the full answer
Answered By
Nyron Beeput
I am an active educator and professional tutor with substantial experience in Biology and General Science. The past two years I have been tutoring online intensively with high school and college students. I have been teaching for four years and this experience has helped me to hone skills such as patience, dedication and flexibility. I work at the pace of my students and ensure that they understand.
My method of using real life examples that my students can relate to has helped them grasp concepts more readily. I also help students learn how to apply their knowledge and they appreciate that very much.
4.00+
1+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
What is the scope of a business continuity plan? How is it different from a disaster recovery plan?
-
What is the scope of small business marketing? Has it always been as broad as it is now? Why or why not?
-
What is the scope of security and privacy concerns commercial firms might have, and what tactics might a firm employ to address them. Is it truly the case that improvements in security and privacy...
-
On January 1, 2020, Dole, Inc., declared a 15% stock dividend on its common stock when the market value of the common stock was $20 per share. The date of record is January 30, 2020, and the...
-
What is a table of cases?
-
Rumor has it that GOJEK is planning to issue its series G of preferred share in September 2020. This series will promise an Rp.1.000,000 per share return annually. You are interested to buy this...
-
Refer to Exercise 12. Assume you did not know that the two samples were paired, so you used the methods of Section 11.1 to perform the test. a. What is the P-value? b. Explain why the P-value is...
-
A solid wood door 1.00 m wide and 2.00 m high is hinged along one side and bas a total mass of 40.0 kg. Initially open and at rest, the door is struck at its center by a handful of sticky mud with...
-
Trinity Chocolates had sales of $850,000, cost of goods sold of $550,000, operating expenses of $200,000, interest expense of $20,000, and taxes of $10,000. Based on this information, what was...
-
Why is structure important? Why does an organization need a clear structure? Are there any other reasons for organizational structures beyond the formal arrangement of jobs, roles, and...
-
List the local and global variables in this program. Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2 Call Sub(X, Y) Write X Write Y End Program Subprogram Sub(Integer Numl, Integer Num2...
-
Write a subprogram called Flip() that imports two variables from the main program (into parameters X and Y), interchanges their values, and exports the results to the main program.
-
Give examples of robots in use. Find recent applications online and share with the class.
-
Cost of Goods Manufactured and Sold Anglin Company, a manufacturing firm, has supplied the following information from its accounting records for the last calendar year: Direct labor cost Purchases of...
-
4. The regular air fare between Boston and San Francisco is 419. An airline using planes on this route observes that they fly with an average of 236 passengers. Market research tells the airlines'...
-
Using the following information: a. The bank statement balance is $2,996. b. The cash account balance is $3,238. c. Outstanding checks amount to $695. d. Deposits in transit are $788. e. The bank...
-
What was Netflix's pro forma ESO obligation on December 31, 2020? Your answer should be in millions of dollars. Question 12 5.55 pts Based on your answers to questions eight through 11, what was the...
-
Johnny's Lunches is considering purchasing a new, energy-efficient grill. The grill will cost $31,000 and will be depreciated straight-line over 10 years to a salvage value of zero. The grill will...
-
The Best Manufacturing Company is considering a new investment. Financial projections for the investment are tabulated here. The corporate tax rate is 34 percent. Assume all sales revenue is received...
-
Why is a help desk and production support critical to system implementations? Discuss its interrelationship with the problem management and reporting system.
-
Can each of the following be the value of the TTL in a datagram? Explain your answer. a. 23 b. 0 c. 1 d. 301
-
Which fields of the IPv4 main header may change from router to router?
-
Compare and contrast the protocol field at the network layer with the port numbers at the transport layer. What is their common purpose? Why do we need two port-number fields but only one protocol...
-
A tall pitot-static tube is mounted through and 1.5-mabove the roof of a performance car such that it senses thefreestream flow. Estimate the static, stagnation, and dynamicpressure sensed at 325 kph...
-
If cluster membership is determined by examining the squared distance of each respondent's position from the initial cluster centers, list the respondents assigned to initial Cluster#1 (5 points) ...
-
How does the perception of organizational justice affect employee motivation and job satisfaction, and what can organizations do to promote a sense of fairness and equity ?
Study smarter with the SolutionInn App