Answer:
b. The Hello timer as configured on the root switch.
Explanation:
There are differrent timers in a switch. The root switch is the only forwarding switch in a network, while non root switches blocks traffic to prevent looping of BPDUs in the network. Since the root switch is the only forwarding switch, all timing configuration comes from or is based on the configuration in the root.
The hello timer is no exception as the nonroot switch only sends 802.1D DTP hello BPDU messages forwarded to it by the root switch and its frequency depends on the root switch hello timer.
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.
Answer:
if(isalpha(passCode[0]))
{
passCode[0] = '_';
}
if(isalpha(passCode[1]))
{
passCode[1] = '_';
}
Explanation:
The first if statement uses isalpha() function which checks if the character passed in this function is an alphabet. If the character stored in 0-th position (which is the first position whose index is 0) of the variable passCode is an alphabet then it is replaced with the '_'
The next if statement checks if the second character in the passCode variable is an alphabet. This means the function isalpha() checks if the character stored in second position (index 1) of the variable passCode is an alphabet then it is replaced with the '_'
The complete activity with this chunk of code added and the output is attached in a screen shot.
Answer:
Form the given statement i have come to know that the by changing hidden form values attacker has been able to modify the purchase price.
Explanation:
User can change a hidden field is not different from a common field from browser or server side.
If you want to store data then user must have to store them on server -side on a session and it is a fastest way.