• 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

JQ

 
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Ragu Sivaraman
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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..

 
Enthuware Software Support
Posts: 4810
52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Val,
Is this (what Paul says) true with real exam or only with JQ+ s/w?
 
Valentin Crettaz
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic