• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Operating on binary numbers

 
Maciek Kowalski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm preparing for taking associate cert. I'm improving my operator skills. However I have doubts if such question will ever be asked:
What will be the output of the program?


That seems to be a little stupid question for such exam (I mean, converting numbers to binary/decimal, it's not really point of that exam). What do you think about that?

Best regards,
MicNeo
 
Roel De Nijs
Sheriff
Posts: 10666
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bit shifting operators are not even on the OCPJP7 certification exam. So they'll be definitely not on the OCAJP one
 
Maciek Kowalski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roel De Nijs wrote:Bit shifting operators are not even on the OCPJP7 certification exam. So they'll be definitely not on the OCAJP one


http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-803

Says just: Use Java operators. Nothing about excluding of bit shifting, logical operator and so on. This question is just example, it could be also question about: a | b. But not as a logic operator but as a bitwise inclusive OR operator. It's not hard for me to convert decimals to binary and vice versa, but it's pointless for me to do so on exam like that. And of course, I would like be be prepared
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you noticed, the objectives are vague. Bit shifting used to be on the exam (a long time ago), but it isn't anymore.
 
Roel De Nijs
Sheriff
Posts: 10666
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maciek Kowalski wrote:Says just: Use Java operators.

True! Oracle uses very vague objectives/topics for their certification exams. That makes it a lot more easier for them to add new questions to the questions pool without having to adjust the objectives.

Bit shifting operators & bitwise operators are definitely not on the OCAJP7 exam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic