A
Q. A hexadecimal literal begins with
- Correct Answer - Option(D)
- Views: 23
- Filed under category JavaScript
- Hashtags:
A
The correct answer is:
(D) Both 0x and 0X
Explanation:
In most programming languages (such as C, C++, Java, JavaScript, and Python), a hexadecimal literal starts with either 0x or 0X. Both notations are valid and indicate that the number is in hexadecimal (base 16) format.
Examples:
Thus, the correct answer is (D) Both 0x and 0X.
You must be Logged in to update hint/solution
Be the first to start discuss.
Discusssion
Login to discuss.