Question

Complete the symbol table entries for the parameters and variables in the following Jack function: function int blowupstack(ithis, 1 local, o this, 3 argument, 4 argument, 3 this, 4 local, 1 this, o argument, o this, 2 argument, 2 argument, 1 local,

0 0
Add a comment Improve this question Transcribed image text
Answer #1

choose argument,2

the above functionis recurssive

which takes two arguments and return one so, choose "argument,2"

for c, int c, z are function argumnets so for c, int

aargument,1 is the option

and for z,int argument, 2 is the option

for message,string is

argument,2 because

it takes 2 arguments and return one so 2,argument


answered by: ANURANJAN SARSAM
Add a comment
Answer #2

choose argument,2

the above functionis recurssive

which takes two arguments and return one so, choose "argument,2"

for c, int c, z are function argumnets so for c, int

aargument,1 is the option

and for z,int argument, 2 is the option

for message,string is

argument,2 because

it takes 2 arguments and return one so 2,argument

hope this helpful

please dont downvote please

THANK YOU

Add a comment
Know the answer?
Add Answer to:
Complete the symbol table entries for the parameters and variables in the following Jack function: function...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Methods: Net beans IDE Java two methods. Identifier: calculateScore(String word) Parameters: word – the word for...

    Methods: Net beans IDE Java two methods. Identifier: calculateScore(String word) Parameters: word – the word for which you should calculate the points in Scrabble Return Value: int – the number of points for the parameter word Other: This method should be static. This method should use the following system for scoring: 0 – blank 1 – e, a, i, o, n, r, t, l, s, u 2 – d, g 3 – b, c, m, p 4 – f, h,...

  • Run the C program below and complete the table showing all the variables. Add printf function...

    Run the C program below and complete the table showing all the variables. Add printf function calls to obtain the addresses and values of all 13 variables. (Count the array (ca) as 3 variable/values and also include argc and argv in the table). The table must show the Address, Name, Datatype, Scope, and Value of each variable on the stack. (Hint: use the sizeof function to double check your addresses.) Explain how different the actual memory allocations are from what...

  • Write a function draw_T in functions.py, which receives three parameters: width, height and symbol. The first...

    Write a function draw_T in functions.py, which receives three parameters: width, height and symbol. The first two parameters are assumed to be integers and the third is a single character string. You don’t need to validate the type of the given parameters. The function returns no values. The function uses the given parameters to draw a T shape, such that the parameter width controls the upper bar, and height controls the middle vertical bar. The parameter symbol, controls which symbol...

  • C++ please Programming Assignment #6 Help Me Find The Secret Message Description: This assignment will require...

    C++ please Programming Assignment #6 Help Me Find The Secret Message Description: This assignment will require that you read in an encrypted message from a file, decode the message, and then output the message to a file. The encryption method being used on the file is called a shift cipher (Info Here). I will provide you with a sample encrypted message, the offset, and the decrypted message for testing. For this project I will provide you main.cpp, ShiftCipher.h, and ShiftCipher.cpp....

  • implement the following function: void BuildString(int argc, char* argv[]); 1. Arguments passed through the function. Concatenate...

    implement the following function: void BuildString(int argc, char* argv[]); 1. Arguments passed through the function. Concatenate the strings arguments using strcat, display the concatenated string. 2.. If only one argument passed, display the string. 3. If no argument passed, display the message, no argument passed. In main do the following: 1. Call the function BuildString, passing the proper arguments (argc and argv).

  • Question 21 Implement the following code fragments in Hack Virtual Machine code, the variables a, b and c are in the local segment at offsets 4, 5 and 6 respectively. Jack Code a)-(alb) Virtual Machi...

    Question 21 Implement the following code fragments in Hack Virtual Machine code, the variables a, b and c are in the local segment at offsets 4, 5 and 6 respectively. Jack Code a)-(alb) Virtual Machine Code [4 marks] b) (a(b+c) 5 marks] [5 marks] d) Recursive.factorial(6) 2 marks] e) a # c * b 4 marks] Total for Question 21: 20 marks] Question 21 Implement the following code fragments in Hack Virtual Machine code, the variables a, b and c...

  • em 1. Let X and Y be continuous random variables with joint probability density function y...

    em 1. Let X and Y be continuous random variables with joint probability density function y S 2. The two marginal Probl f(z, y) = (1/3)(z + y), fr (zw) in the rectangular region 0 distributions for X and Y are z 1,0 Calculate E(XIY_y) and Var (지Y-y) for each ye[O,2].

  • 1- Create the base class Book that has the following instance variables, constructor, and methods title...

    1- Create the base class Book that has the following instance variables, constructor, and methods title ( String) isbn ( String) authors (String) publisher (String) edition ( int) published_year (int) Constructor that takes all of the above variables as input parameters. set/get methods ToString method // that return sting representation of Book object. 2- Create the sub class New_Book that is derived from the base class Book and has the following instance variables, constructor, and methods: title ( String) isbn...

  • 1) Given the following Swift function: func requestAccess(for id; String, to resource: Resource) -> Access {...

    1) Given the following Swift function: func requestAccess(for id; String, to resource: Resource) -> Access { // code } What name is used to access the second parameter's value from within the function? to resource to_resource none 2) Given the following Swift code: let schoolName = "University of Missouri" Is the following allowed on a subsequent line in the same scope? schoolName = "Ohio State University" Yes No 3) Choose the correct way to declare a variable for an array...

  • In C++ 9) (5 pts) Complete the following function that takes 3 arguments of a circle...

    In C++ 9) (5 pts) Complete the following function that takes 3 arguments of a circle : - radius (input argument) - area (output argument, to be calculated) - circumference (output argument, to be calculated) All arguments are double type. If a radius is negative, the function returns false, otherwise it returns true. The function does only calculation, and does nothing else. Assume that all #include are already there                                     // Fill in your Function prototype bool circleAreaAndCircumference ( _______,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT