Answer:
Option 4: Value-returning
Explanation:
In programming, a method is a named section of codes that perform a specific task. This is possible to define a method that return a value after performing its task. This type of method is known as Value-returning method.
For example, we can define a method addition that takes two inputs, x, y and return the summation of x + y to the code that called it. The codes are as follows:
- public static void main(String[] args) {
- int sum = addition(3, 5);
- }
-
- public static int addition(int x, int y){
- return x + y;
- }
1-plain text
2-hypertext
3-none of the above
4-none
5-confidentiality
6-private key
7-delivery receipt
8-delay
9-to do
10-permission
11-categories
12-complete
13-responses
14-signature
15-theme
man , that was crazy homework , not that much here in UK
Answer:
18
Explanation:
lets go step by step.
the function called tryIt has a value, a variable named "a". this "a" variable will be whatever the user enters when the program says, Enter a number.
ok so if we enter "a" as 2, and b in the function will always be 7, and 2 + 7 equals 9,
and the ans variable (short for answer) will take the result of the function (9) and multiply it by 2,
then the answer is 18