Isn't it B because the x is increasing by .75 and y is deceasing by 2.5
Answer:
I. The class methods and instance methods of one class may call the public class methods of another class using dot notation and referencing the name of the other class.
Explanation:
Private methods are being accessed from only within the class or scope specified. No other means of accessibility is possible, and even through inheritance. And instance methods can never call without using dot notation, any of the class method of the same class. Hence second and third options are not correct. And the class method and the instance methods of one class may call the public class methods of another class using the dot notation and referencing the name of the other class. Hence, the correct option is the first one.
Answer:
(a) someFunc(3) will be called 4 times.
(b) For non negative number n someFunc method calculates 2^2^n.
Explanation:
When you call someFunc(5) it will call someFunc(4) two time.
So now we have two someFunc(4) now each someFunc(4) will call someFunc(3) two times.Hence the call to someFun(3) is 4 times.
someFunc(n) calculates someFunc(n-1) two times and calculates it's product.
someFunc(n) = someFunc(n-1)^2..........(1)
someFunc(n-1)=someFunc(n-2)^2..........(2)
substituting the value form eq2 to eq 1.
someFunc(n)=someFunc(n-2)^2^2
.
.
.
.
= someFunc(n-n)^2^n.
=2^2^n
2 raised to the power 2 raised to the power n.
What is the answer choices dude