List the local and global variables in this program. Main Declare X As Integer, Y As Integer
Question:
List the local and global variables in this program.
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: 54% (11 reviews)
Local variab...View the full answer
Answered By
Joseph Mwaura
I have been teaching college students in various subjects for 9 years now. Besides, I have been tutoring online with several tutoring companies from 2010 to date. The 9 years of experience as a tutor has enabled me to develop multiple tutoring skills and see thousands of students excel in their education and in life after school which gives me much pleasure. I have assisted students in essay writing and in doing academic research and this has helped me be well versed with the various writing styles such as APA, MLA, Chicago/ Turabian, Harvard. I am always ready to handle work at any hour and in any way as students specify. In my tutoring journey, excellence has always been my guiding standard.
4.00+
1+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
List nonfinancial variables or factors regarding a clients industry that auditors should consider when planning an audit. For each of these items, briefly describe their audit implications.
-
List four examples of discrete random variables that could be observed in a new consulting business.
-
List any live extraneous variables and give an example to show how each can reduce internal validity.
-
Mrs. Ridhima had a factory situated in Delhi which he transferred to Uttar Pradesh and closed all operations in Delhi. Whether it will constitute a slump sale and whether it is liable to tax under...
-
Find the following cases, provide the complete citation, and summarize the opinion. a. 661 F.2d 319 b. 531 U.S. 98 c. Stern v. Marshall d. 21 U.S. 1
-
Identify the objectives of Urban Outfitterss reward programs. How do the specific promotional tools of Urban Outfitterss reward programs help achieve these objectives? These days, the clothing...
-
Should organizations rely solely on recruiting through the Internet? Why or why not?
-
Consider the statement: The object of accounting for changing prices is to ensure that a company is able to maintain its operating capability. How accurate is it?
-
1. Point our the major impacts of inflation 2. Discuss the different types of unemployment?
-
A store maintains data on customers, products and purchase records in three tables: CUSTOMER, PRODUCT, PURCHASE. The store manager wants to know which product is on its maximum discount for each...
-
List the value and reference parameters in the subprogram Sub. 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,...
-
What is the scope of the following variables? a. X, declared in the main program? b. X, declared in the subprogram? Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2 Call Sub(X, Y) Write X...
-
x 2 dy + y(x1) dx = 0 In Problems 2532, solve the separable differential equation.
-
On 29 September 2021, Hyacinth makes a transfer consisting of 1,000 shares in a listed company. The shares are quoted at 572p - 588p on that date, with recorded bargains at 572p, 577p and 578p....
-
A1 Ltd owns 90% of the ordinary share capital of A2 Ltd. A2 Ltd owns 80% of the ordinary share capital of A3 Ltd and 70% of the ordinary share capital of A4 Ltd. All companies are UK resident. (a)...
-
On 5 December 2021, Nicholas makes a gift of 80,000 (after deduction of all relevant exemptions) to a relevant property trust. His only previous chargeable lifetime transfers were in June 2012 (gross...
-
T Ltd has owned 90% of the ordinary share capital of B Ltd for many years. Both are UK resident. Recent results for the two companies are as follows: No dividends have been received by either company...
-
Basenote Ltd is a wholly-owned subsidiary of Apexine Ltd. Both companies are UK resident and prepare accounts to 31 March each year. Results for the year to 31 March 2022 are as follows: Calculate...
-
Samantha's Repair Shop has a monthly target operating income of $12,500. Variable expenses are 50% of sales, and monthly fixed expenses are $10,000. Requirements 1. Compute the monthly margin of...
-
Assume today is the 21st of February. Using the information below, FT Extract, answer the following questions (parts i and ii). You work for a US company that is due to receive 250 million in June...
-
In Figure 19.4, show how the sum, wrapped sum, and checksum can be calculated when each word (16 bits) is created instead of waiting for the whole packet to be created. Figure 19.4 Example of...
-
In an IPv4 datagram, the value of the header-length (HLEN) field is (6) 16 . How many bytes of options have been added to the packet?
-
In Figure 19.4, show how the sum, wrapped sum, and checksum can be calculated when the words are given in decimal numbers (the way the words are stored in a computer memory). Figure 19.4 Example of...
-
4. Methane burns in air with an equivalence ratio of =0.85, determine the composition of the products: What are the Mass Fractions of each species in the Products?
-
1. Describe the health and safety requirements of the area in which the installation activity is to take place, and the responsibility these requirements place on the learner 2. Describe the...
-
1. Which is easier for nucleation in solids, homogeneous or heterogeneous nucleation? What are the common defects present in solid solution (list at least five kinds of defects)? Are the defects...
Study smarter with the SolutionInn App