About Question com.enthuware.ets.scjp.v6.2.313 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.313 :

Post by ETS User »

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

admin
Site Admin
Posts: 10053
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.313 :

Post by admin »

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
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 :) )

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.

Guest

Re: About Question com.enthuware.ets.scjp.v6.2.313 :

Post by Guest »

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 47 guests