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:
Explanation:
Since all of the items in the array would be integers sorting them would not be a problem regardless of the difference in integers. O(n) time would be impossible unless the array is already sorted, otherwise, the best runtime we can hope for would be such a method like the one below with a runtime of O(n^2)
static void sortingMethod(int arr[], int n)
{
int x, y, temp;
boolean swapped;
for (x = 0; x < n - 1; x++)
{
swapped = false;
for (y = 0; y < n - x - 1; y++)
{
if (arr[y] > arr[y + 1])
{
temp = arr[y];
arr[y] = arr[y + 1];
arr[y + 1] = temp;
swapped = true;
}
}
if (swapped == false)
break;
}
}
Answer:
Generations of Computers Generation in computer terminology is a change in technology a computer is/was being used. Initially, the generation term was used to distinguish between varying hardware technologies. Nowadays, generation includes both hardware and software, which together make up an entire computer system.
Answer:
Just answer everyones questions and youll be at the right rank in no time
Explanation: