Fill in the blanks in each of the following statements: a) A method is invoked with a(n)

Question:

Fill in the blanks in each of the following statements:

a) A method is invoked with a(n) _________.

b) A variable known only within the method in which it’s declared is called a(n)  _________.

c) The  _________statement in a called method can be used to pass the value of an expression back to the calling method.

d) The keyword  _________indicates that a method does not return a value.

e) Data can be added to or removed from only the  _________of a stack.

f) Stacks are known as  _________data structures—the last item pushed (inserted) on the stack is the first item popped off (removed from) the stack.

g) The three ways to return control from a called method to a caller are _________ ,  _________ and  _________.

h) An object of class  _________produces pseudorandom numbers.

i) The program-execution stack contains the memory for local variables on each invocation of a method during an app’s execution. This data, stored as a portion of the program- execution stack, is known as the  _________or  _________of the method call.

j) If there are more method calls than can be stored on the program-execution stack, an error known as a(n)  _________occurs.

k) The  _________of a declaration is the portion of an app that can refer to the entity in the declaration by its unqualified name.

l) It’s possible to have several methods with the same name that each operate on different types or numbers of arguments. This feature is called method  _________.

m) The program-execution stack is also referred to as the  _________stack.

n) A method that calls itself either directly or indirectly is a(n)  _________method.

o) A recursive method typically has two components: one that provides a means for the recursion to terminate by testing for a(n)  _________case and one that expresses the problem as a recursive call for a slightly simpler problem than does the original call.

p) In an expression-bodied method or read-only property, the symbol  _________introduces the method’s or read-only-property get accessor’s body.

q) Types are either  _________types or  _________types.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Visual C# How to Program

ISBN: 978-0134601540

6th edition

Authors: Paul J. Deitel, Harvey Deitel

Question Posted: