wood burning stoves*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes JQ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "JQ" Watch "JQ" New topic
Author

JQ

Ragu Sivaraman
Ranch Hand

Joined: Jul 20, 2001
Posts: 464
Question ID :953836219840
Write a line of code that declares a variable named 'layout' of subclass of class LayoutManager and initializes it with a new object, which when used with a container can lay out components in a rectangular grid having 2 columns and 4 rows.
(Use space only where necessary)
My answer is GridLayout layout = new GridLayout(4,2);
correct answer is:
GridLayout layout = new GridLayout(4, 2);
My answer compiles and works.. just that it doesnt have space after ,
How can this answer key be justified?
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Yeah, it happened to me too. I just didn't care about that and notified the authors of JQ+. Moreover, LayoutManager is not a class but an interface.
The problem is in the way they compare your answer with theirs
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
[This message has been edited by Valentin Crettaz (edited December 09, 2001).]


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Ragu Sivaraman
Ranch Hand

Joined: Jul 20, 2001
Posts: 464
Originally posted by Valentin Crettaz:
Yeah, it happened to me too. I just didn't care about that and notified the authors of JQ+. Moreover, LayoutManager is not a class but an interface.
The problem is in the way they compare your answer with theirs
HIH


Thankx Val..

Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3324
    
    8
Hi Ragu,
The question has the answer specified in 5 most probable ways. And it also says, "Use space only where necessary." If you enter one of them, it'll be marked correct. Ultimately it's just a string comparison
If you are asked to write 7 in octal and if you write 00007, it is very much possible that it is marked wrong, although it is correct. So, it is very important that you read and follow the instructions carefully in the exam .
HTH,
Paul.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
Uma Viswanathan
Ranch Hand

Joined: Jun 14, 2001
Posts: 126
Hi Val,
Is this (what Paul says) true with real exam or only with JQ+ s/w?
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Uma,
I don't really know how the real exam is implemented, but to be sure I'd do what Paul mentioned "So, it is very important that you read and follow the instructions carefully in the exam."
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JQ