Hexadecimal values can be denoted by prefixing with 0x ( Zero and upper or lower case 'x ') so 0x10 is equivalent to 16
decimal. Octal values can be denoted by prefixing with 0 ( Zero ) so 010 is equivalent to 8 decimal.
we don't normally use hexadecimal or Octal - so for exam how does one know that 0x10 is 16? or say know 0x10101 would be what?? Any shortcuts to know what Hex, binary or octal representation may mean
About Question com.enthuware.ets.scjp.v6.2.313 :
Moderator: admin
-
- Site Admin
- Posts: 10053
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.313 :
You will not be required to know the conversion logic from one base to another or required to convert any big number for the exam (although as a s/w professional, it is desirable to know )ETS User wrote:Hexadecimal values can be denoted by prefixing with 0x ( Zero and upper or lower case 'x ') so 0x10 is equivalent to 16
decimal. Octal values can be denoted by prefixing with 0 ( Zero ) so 010 is equivalent to 8 decimal.
we don't normally use hexadecimal or Octal - so for exam how does one know that 0x10 is 16? or say know 0x10101 would be what?? Any shortcuts to know what Hex, binary or octal representation may mean
Just knowing that any number that starts with 0x is a valid hex number is sufficient.
If you like our products and services, please help us by posting your review here.
Re: About Question com.enthuware.ets.scjp.v6.2.313 :
Yes, I could guess it was hexanumber but I had problem in finding that the answer would be 34 (16 +10 + 8) and not other options (28, 30, 36) without being able to convert. So are there any ways one should prepare for such questions?
Who is online
Users browsing this forum: No registered users and 47 guests