Sail E0 Webinar
Question
What is the output of the function shown below?hex(15)
Options:
A .  f
B .  0xF
C .  0Xf
D .  0xf
Answer: Option D


The function hex() is used to convert the given argument into its hexadecimal representation, in lower case. Hence the output of the function hex(15) is 0xf.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers