Answer: (C) MAC
Explanation:
MAC is stand for the message authentication code and it is one of the key dependent hash function. Message authentication provide the data integrity and also the origin of data authentication.
- It basically allow the specific recipients known as the holder of the symmetric key.
- The message authentication code uses the CBC (Cipher block chaining) mode for constructing the MAC algorithm and it also uses the block cipher for the conjunction by using the CBC operations.
On the other hand, all the options are incorrect as they are not the key dependent hash function.
Therefore, Option (C) is correct.
Answer:
Option A: print("The total is %0.5f" % total)
Explanation:
To ensure the value is rounded to a precision of 5 digits, we have to create a formatted string which is %0.5f. The <em>.5</em> denotes five decimal places and <em>f </em>refers to float data type.
Next, we use the <em>%</em> operator again and followed with the variable <em>total</em>. The % is used as a string modulo operator that will interpolate the value held by the the variable <em>total </em>in the formatted string that we create previously. The interpolated value will be rounded to 5 decimal places. For example, if
total = 256.786789
The output will be 256.78679