Results 1 to 10 of 10

Thread: Java2 Certification

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Quick Question........

    This is one of the practice questions i came accross
    while reading a book on the Java2 cert exam
    and it's driving me crazy because i think the
    book is wrong........


    6.) What is the output displayed by the following program?

    class Question{
    public static void main(String [] args){

    int n = 7;
    n <<=3;

    n = n & n + 1 | n + 2 ^ n + 3;
    n >>= 2;

    System.out.println(n);
    }
    }

    possible answers:

    A. 0
    B. -1
    C. 14
    D. 64

    the book says:

    the answer is C
    the variable n takes on the
    values 7,56,57, and then 14.

    the answer i get is 235.

    thanks.

  2. #2

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    ok i broke it down.....

    values represented as short types:

    int n = 7;
    n<<=3;

    00000000 00000111 = 7
    seven shifted 3 = 00000000 00111000 = 56

    n = n & n + 1 | n + 2 ^ n + 3;

    n = 56 & 56 + 1 | 56 + 2 ^ 56 + 3

    n = 56 + 57 + 58 + 3

    n = 174;

    n >>= 2;

    00000000 10101110 = 174
    174 shifted 2 = 00000000 11101011 = 235


    i get 235 as the answer but the book say 14
    is the answer. Any one know why that is so?

  3. #3
    VirtuallyVB
    Guest
    I get 14...

    If I omit this line
    n = n & n + 1 | n + 2 ^ n + 3;

    Could be a typo, but I expect to get these wrong anyway.

  4. #4

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    That what i get too

    00000111 =

    7 << 3 = 00111000 = 56

    56 >> 2 = 0001110 = 14

    omitting n = n & n + 1 | n + 2 ^ n + 3;

    Dont buy Java 2 Certification by New Riders
    Jamie Jaworski.

    I am very displeased. Too many typos

  5. #5
    VirtuallyVB
    Guest
    After reading "Roberts-Heller-Ernest - a SYBEX Book; The Complete Java2 Certification Study Guide", I was impressed that I learned something new in Chapter 1 of "Sun Certified Programmer for Java 2 Study Guide - a Syngress book". But that Syngress book has many typos and omitted the java.io chapter (you have to get it online--and the way they did the answers to the online io chapter sucks). A corrected book is expected in July.

    So I have a cd without the challenging io chapter in the practice exam and the software also has typos, affecting the grade.

    I'm hoping that the syngress book went too deep into most subjects (like the Collections)-- I did great on Collections in the Sybex book, but very poor in the Syngress book.

    Right now, I'm checking out some web sites and hopefully I'll get the nerve to actually take the real exam.

    The Sybex book may be too easy, the Syngress book may misinform you. I don't know what to recommend in a certification book. But it's good to have "Java 2: The Complete Reference, 4/e by Herb Schildt" which may be "information overload" for certification.

  6. #6
    VirtuallyVB
    Guest

    Thumbs up Got The Nerve And Passed On My First Try!!!

    Now that I'm on the other side of the fence, if I had to recommend one and only one book, I'd recommend the Sybex book. It was written by those (or some of those) that actually wrote the exam questions and the grade I was getting on the practice exam "tester.jar" was near what I received on the real exam.

    After brushing up with that text again before my exam, I actually noticed that it covered most everything that I may have learned elsewhere, but it may be only mentioned once, while the Syngress book stressed the issues and was information overload in some sections.

    Also, that Sybex book has info on the Developer and Architect exams as well; the Sybex book was focussed on the Programmer exam.

    Sybex boosted my confidence, overall Syngress scared my confidence away. However, the significant issue is that I must have learned what I needed through all of my Java experience; those 2 certification texts (Sybex and Syngress), the Complete Reference 4th edition (I didn't read the whole text--only studied trouble spots), and several mock paper, web, and software exams.

    Good Luck!

  7. #7

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Congrats!!!! So how was the overall testing experenice?
    Is it true that the test is based on how many correct answers
    we answer, and the incorrect ones dont weigh in at all? Also
    i read that the test consists of 59 multiple chioce questions and short answers. And we are given 90 minutes to complete the test.
    So that would be like a minute and a half for each question right ?? So do you recommend skipping quesions like:

    8 | 9 & 10 ^ 11

    To me some of these quesions are easy to answer but sometimes very time consuming. Once again congrats!

  8. #8
    VirtuallyVB
    Guest

    Thumbs up The format changed in October 2000

    I'm not sure what it used to be, but now it's 59 questions in 2 hours requiring 61% to pass. I think Sun said this is more difficult (or the same difficulty as before), but what makes me think it is easier than before (although I only took this one test) is the fact that they tell you how many answers to select from a multiple choice question. Before, they didn't tell you. So, if you selected 2 when there were 3 to select, the entire question was marked wrong!

    Yes, there is no (extra) penalty for incorrect answers, just get the 61% of 59.

    Don't skip any, take a stab at all questions! You can mark them for later review and come back to them if you have time (not so on tester.jar). I was averaging 30-45 minutes on tester.jar, but I took most of the real exam time to make sure I read it correctly and chose what I wanted to choose.

    Thanks. Good Luck when you take your exam.


    So this head hunter calls on Monday and I tell him that I'm Java Certified. He says his client is looking for C/C++ and Java and then tells me he needs me to pass a C++ test at brainbuzz.com. That pissed me off because I thought I was done with tests for a while. Well, after creating an account there and finding my C++ texts unused since early 2000, I just brushed up in about 6 hours before "risking" taking the "SkillDrill" today. I didn't know what to expect or how taking the exam would affect an employer decision (apparently you are allowed 3 attempts in a month, but I don't know what the employer is looking for nor how quickly they wanted a response). Well, I ranked 147th out of about 2724 worldwide (getting a C++ certification but missing the master certification or some such).

    I'm feeling good, but hiring offers will make me feel better.

  9. #9

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Thank God they changed the format of the multiple chioce questions. I think this way it is alot easier when they give you an
    indication of how many answers you need to select to get the answer right. yeah, you should find out specifically what that employer is looking for. When i graduated school i had some headhunters contact me and it seem that i had to pull teeth sometimes to find out exactly what the employer was looking for. And sometimes they had no clue. "Well there looking for a java programmer" So i would say. " Would i be desinging gui's on the client side or mainly working on "non gui" sub systems?. That is a pretty good ranking on the C++ test. So you actually took the test on line and passed thus giving you a certification for C++?
    Are there multiple test for the C++ certification like Java has.
    ie programmer, developer, architect?

  10. #10
    VirtuallyVB
    Guest
    I never heard of brainbuzz.com until that headhunter said his client wanted me to test there. The site has many tests/certifications; C, C++, MFC C++ (or maybe it was MSVC++). But I guess it falls back to a type of accreditation. Apparently the client respects that certification. I'm sure many folks in the C++ forum here could get the so-called Master Level Certification (4.5 or better) in C++ Programming and maybe a good 50% could get the Certification you get for scoring 3.5 or better. I didn't notice other types of levels such as programmer, developer, architect, but they may be there.

    Yes, it was all online. They have a cool authentication code with the certification.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width