<h2>This function will land up in infinite function call</h2>
Explanation:
first time when the function gets invoked,
f(6,8), so k=6 & n=8, inside the function it checks k==n, ie. 6==8, returns false, then one more if is available, so 6>8 is check for , once again it is false and else loop is executed, the function is called recursively using f(k-n,n), that is f(6-8,8), it means f(-2,8) is passed.
Second time,
if(-2==8) is false, so if(-2>8) is again false and function f(-10, 8) is called
if(-10==8) is false, so if(-10>8) is again false and function f(-18,8) is called
if(-18==8) is false, so if(-18>8) is again false and function f(-26,8) is called
So this goes recursively and ends in an infinite function call.
Explanation:
step 1: Type the normal letter A
step 2: Go to insert and press on equation with a pi sign on you far right.
step 3: Then press on accent, represented by a letter ä on your far right
step 4: on Accent you can choose the option that has an arrow on top of the block.
I hope this makes sense
:)
Question
Instance data for a Java class
a. Are limited to primitive types (e.g., int, float, char)
b. Are limited to Strings
c. Ae limited to objects(e.g., Strings, classes defined by other programmers)
d. May be primitive types or objects, but objects must be defined to be private
e. May be primitive types or objects
Answer:
e. Instance data for a Java class may be primitive types or objects.
Explanation:
Instance data are defined as those entities that make up the class.
Instances may be of any available data type, whether it is primitive or it is an object.
Instances may also be public and they may be private.
By using objects as instance data, it permits the class to be built upon other classes. This relationship where a class has instance data that are other classes is known as a has a relationship.
The answer is a. A mnemonic is a tool to aid retention