Option D is correct.
Explanation :
- In option A, it is not mandatory that a function will have arguments and it will return a value.
- In option B, no formula begins with =.
- In option C, it is not necessary to begin with /.
- In option D, MAX function should return maximum value in the set given.
Thus, option D is correct because arguments of a function are always enclosed within parentheses
Example:
SUM (30,70)
Answer:
I can give you the perimeter "algorithm" but not the flowchart.
Here you go:
p = w * 4
p = perimiter,
w = width/height
4 = the amount of sides needed.
perimeter = width * 4
to include both width and height, we would instead use:
perimeter = 2(width+height)
This also works with rectangles ^
--------------------------------------------------------------------------
To find an area, it is just width * height. This is also compatible with rectangles.
Answer:
B: Hacker
Explanation:
literally anything else aren't even real things besides hacker.
This is port 80 for clear-text connections and 443 for encrypted (TLS) connections.
Answer:
C. sqrt(Math)
Explanation:
All but one of options A to E are is not a static method.
Only option C is a static method. The sqrt() is a static method of Math, that can always be used as Math.sqrt() is used;
The Math class defines all of its methods to be static. Invoking Math methods is done by using Math as a method rather than a variable of type Math; this means that sqrt(Math) doesn't rely on instance variables and don't need to be overridden, unlike others.
Lastly, sqrt(Math) is a static method because unlike other options, it is an utility method, and it is relevant to computations on primitive data types.
The purpose of the static method is in large part to offer a standard library of functions, and it doesn't need to be applied directly to an object.