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
-
You found the following stock quote for DRK Enterprises, Inc., at your favorite Web site. You also find that the stock paid an annual dividend of $0.86, which resulted in a dividend yield of 1.30...
-
Determine if the column can support the eccentric compressive load of \(1.5 \mathrm{kip}\). Assume that the ends are pin connected. Use the NFPA equations in Sec. 13.6 and Eq. 13-30. 3 in 1.5 kip 12...
-
You were appointed the manager of Drive Systems Division (DSD) at Tunes2Go, a manufacturer of portable music devices using the latest developments in hard drive technology, on December 15 last year....
-
You need cash of $15,100 to be received in 3 years, discounted at 7% compounded annually. Indicate the inputs to be entered into the financial calculator keys. What is the present value of the amount...
-
Consider the following pep9 trap: DECI number,d What 'd' refers in the above instruction? a) direct mode b) read(or input) decimal number c) read(or input) integer d) print( or output) decimal number
-
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...
-
Fill in the missing parts of the following reactions. a. b. Li + on
-
Sketch the graph of each equation in Problems 3-30. \(x=-y^{3}\)
-
Make a geometric argument, based on how the field lines spread out into space, that the magnitude of the electric field surrounding a long, straight, charged wire is proportional to \(1 / r\), where...
-
What, physically, does the product of a current (in \(\mathrm{mA}\) ) and a time (in s) represent? A. Energy in \(\mathrm{mJ}\) B. Potential difference in \(\mathrm{mV}\) C. Charge in \(\mathrm{mC}\)...
-
Graph the first-degree inequalities in two unknowns in Problems 13-48. \(y>3 x-3\)
-
A 1. 1-kg lobster climbs into the trap of Problem 27, and at instant \(t_{3}\) you begin to haul the trap up onto the dock. The trap moves at a constant \(0.40 \mathrm{~m} / \mathrm{s}\) through the...
-
Robert A. Kliesh, age 41, is single and has no dependents. Roberts Social Security number is 111-11-1111. His address is 201 Front Street, Missoula, MT 59812. He does not contribute to the...
-
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...
-
A man drops a rock into a well. (a) The man hears the sound of the splash 2.23 s after he releases the rock from rest. The speed of sound in air (at the ambient temperature) is 336 m/s. How far below...
-
(a) An image with 8 gray levels is shown in the following figure. Hand calculates histogram equalization to the image. Show how you compute the mappings and the histogram equalized image. 2 1 0 1 1...
-
2. Consider the matrix_add function shown below: 1232710 107 4 5 6 } int matrix_add(int a[128] [128], int b[128] [128], int c[128] [128]) { int i, j; for(i = 0; i < 128; i++) for(j=0;j < 128; j++)...
Study smarter with the SolutionInn App