• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deal all, i have finished my mock exam 3, please take a look.

 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Feedback is welcome, hope it helps. You can find it at:
http://www.geocities.com/sun_guoqiao/
Regards,
------------------
Guoqiao Sun
Sun Certified Programmer for Java™ 2 Platform
try my mock exam¹²³ at my homepage.
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guoqiao
Thankx ma'n ! for ur hardwork put into making these gr8 mocks !
u goin gr8
i just mocked myself wid ur 3rd mock , wid 85%
guess u make them lill harder than real exam
haven't taken ur first 2 mocks , but keen on taking them now
well , i have some doubts about 3rd mock questions ,
2 of my doubts are :
Q03-08


What is the output of trying to compile and run the following code?
(Select one correct answer)
-----------------------------------------------------------------------

// unicode value for character a is \u0061.
public class T008
{
public static void main(String args[])
{
System.out.print((char)('\u0061') + " ");
System.out.print((int )('\u0061') + " ");
System.out.print((char)('a') + " ");
System.out.println((int )('a') );
}
}
Options :
A: a 61 a 61
B: a 97 a 97
C: a 61 a 97
D: a 97 a 61


I say , converting '\u0061' to int will be 97 , ( hex to decimal ) so answer B is correct , but given correct Ans is A?

Q03-10


What is the output of trying to compile and run the following code?
(Select one correct answer)
-----------------------------------------------------------------------
import java.io.*;
public class T010
{
public static void main(String args[])
{
System.out.println( method(0) );
}
static int method(int i)
{
try {
if(i < 0) throw new IOException();
return 0;
}
catch (IOException e) {
return 1;
}
}
}
-----------------------------------------------------------------------
A: 0
B: 1
C: The code does not compile.
D: The code compiles but throws exception at
runtime and as a result teminate execution abnormaly.


Because 0<0 is false , so 0 shld be returned n printed , and ans A is correct .
But mock 3 answer's say B to be correct ?

------------------
Gagan (/^_^\)
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agri wid gagan
Shyam
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Gagan, thank you very much for your kind feedback. I am wrong indeed in those two questions. I am correcting them now.
And I have made the mock exam harder than real exam, you scored excellent here. Hope you perform even better in real test!
Regards,

------------------
Guoqiao Sun
Sun Certified Programmer for Java™ 2 Platform
try my mock exam¹²³ at my homepage.
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
O,I can not open this site.

Originally posted by Guoqiao Sun:
Feedback is welcome, hope it helps. You can find it at:
http://www.geocities.com/sun_guoqiao/
Regards,


------------------
Java lover from hell!
[This message has been edited by Metal Zhang (edited September 19, 2001).]
 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where do I check the answers ?

Originally posted by Guoqiao Sun:
Feedback is welcome, hope it helps. You can find it at:
http://www.geocities.com/sun_guoqiao/
Regards,


 
Roopa Bagur
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found it..No Problem

Originally posted by Roopa Bagur:
Where do I check the answers ?


 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Roopa, sometimes it is network problem.
Good luck!

------------------
Guoqiao Sun
Sun Certified Programmer for Java™ 2 Platform
try my mock exam¹²³ at my homepage.
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Metal, some friends of mine also complain to me of not being able to access geocities in China, I don't know what is the problem. You can try it later time.
Good luck!

------------------
Guoqiao Sun
Sun Certified Programmer for Java™ 2 Platform
try my mock exam¹²³ at my homepage.
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gr8 job sun,keep it up.Somehow I just can't leave this site.Keep coming back.Ur exam helps me to keep in touch, methinks.Also,as ur certified,u can tell me what to do next?
Great going ,
Vedhas

WHEN THE GOING GETS TOUGH,..........UPGRADE!!!
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Vedhas, thank you for your kind encourgement. I just hope what I did can be any help as I was once helped by so many people's experience and resource.
As to next step, I am thinking of some certificate concerning J2EE. One is because I am using J2EE in my project, I want to master this technology by taking the certificate. My knowledge of J2EE is far from enough although my project is running properly on some application server. Another aspect is, I think the market is in big demand for J2EE people soon.
Good luck to you!

------------------
Guoqiao Sun
Sun Certified Programmer for Java™ 2 Platform
try my mock exam¹²³ at my homepage.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic