Answer:
c. $_SERVER
Explanation:
$_SERVER is an array in PHP containing information about headers, paths, and script locations.
Example usage:
echo $_SERVER['HTTP_HOST'];
This will print information about HTTP_HOST header.
echo $_SERVER['DOCUMENT_ROOT'];
This provides information about document root path.
echo $_SERVER['SCRIPT_FILENAME'];
This provides information about the currently executing script.
The code below is used to determine a recursive, bool-valued function, isPalindrome, that accepts an integer-valued array, and the number of elements and returns whether the array is a palindrome.
Explanation:
- The code shows 'array palindrome' is an array which, when its elements are reversed, remains the same.
bool isPalindrome(arr[((n-1) - n) +1], n)
{
if (n == 0 || n == 1)
{
return true;
}
else if (arr[n-1] == isPalindrome(arr[], n-1)
{
return true;
}
else {
return false;
}
}
Answer:
nothing
Explanation:
Because the return type of the function is void. void means does not return any thing.
The syntax of the function:
type name( argument_1, argument_2,......)
{
statement;
}
in the declaration the type define the return type of the function.
it can be int, float, double, char, void etc.
For example:
int count( int index);
the return type of above function is int. So, it return integer.
similarly,
void count(int index);
it return type is void. So, it does not return any thing.
D cause you will need to keep up with data also
Answer:
=IF((D5="Yes"),(C4*1.05),C4)
Explanation:
If condition accepts 3 parameters, where the 1st parameter is the condition and second parameter is the one which needs to be executed “if the condition is true” and the third argument is executed when the “condition is false”.
Here the condition is if there is an delivery ie. D5 = yes, then we add some amount of additional charges through the formula (c4*1.05) and if not we retain the base price C4.
Here the additional delivery charges are considered as 5%. You can change the number according to your need.