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?
-
Given the comments in the case, do you surmise that the reason for the audit was to improve future projects or to ascertain the reasons for not meeting the projects goals, and if the latter, its...
-
Access the SECs EDGAR database (www.SEC.govf and obtain the April 22, 2003, filing of its fiscal 2003 10-K report (for the year ended February 1, 2003) for J. Crew Group, Inc. Required Prepare a...
-
Watson Waterbed Works Inc. has an EBIT of $2.75 million, can borrow at 15% interest, and pays combined state and federal income taxes of 40%. It currently has no debt and is capitalized by equity of...
-
Using the case study: The Panic of 2001 Why did Enron collapse? What effect did it have on public opinion and Congress?
-
NASA's astronaut crew currently includes 10 mission specialists who hold a doctoral degree in either astrophysics or astromedicine. One of these specialists will be assigned to each of the 10 flights...
-
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.
-
According to the News Wire "Price Elasticity" what is the price elasticity of demand for the 11inch Mac-Book Air?
-
The ABC Companys share (based in Canada) is priced at C$ 400 per share. The spot rate of the peso is US$0.76. You expect that the stock price of ABC Company will increase by 62% next year. You also...
-
Problem #5: A corporation is sick of paying taxes each year so it attempts to reach an agreement with the IRS to pay all of its future taxes exactly 6 years from today. The corporation expects it...
-
For the following questions consider exhibit 9 for interest rates and assume for BB: 6.5%, B: 7% and CCC: 7.5%. 4. For both scenarios (10% and 90% debt to capital (Book) ratios), estimate BBBY's bond...
-
Record the following transactions for Adcock Company. (Credit account titles are automatically indented when the amount is entered. Do not indent manually. If no entry is required, select "No Entry"...
-
Tuition for Fall of 2020 at UIUC for residents is $13,884. Your parents have saved for your tuition via investing in the stock market. Their portfolio in January was worth $15000however due to the...
-
A quality-control inspector for a food-processing firm needed assurance that the cans of fruit in a production run were filled to capacity. He opened every tenth box in the warehouse and removed the...
-
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...
-
Required information [The following information applies to the questions displayed below.] On January 1, 2021, Pet Friendly Stores adopted the retail inventory method. Inventory transactions at both...
-
Question 3 Jeguk Sdn Bhd (JSB) makes industrial cleaning solvents. Various chemicals, detergents, and water are mixed together and then bottled in 10 gallon drums. JSB provided the following...
-
Problem 3 PCA Using the Fish Market Data Consider again the data in the previous problem, focusing just on the Perch case. Remember that you only use the test data for the final evaluation. The model...
Study smarter with the SolutionInn App