This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes SCJP 1.4 Answer Options Format - Like Dan or Marcus ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "SCJP 1.4 Answer Options Format - Like Dan or Marcus ?" Watch "SCJP 1.4 Answer Options Format - Like Dan or Marcus ?" New topic

SCJP 1.4 Answer Options Format - Like Dan or Marcus ?

Vijay Albuquerque
Ranch Hand

Joined: Feb 17, 2002
Posts: 42
This question is intended for people who have taken the SCJP 1.4 Exam.
The answer options that are provided in the actual Sun Exam are in which format like Dan's or Marcus'?
Marcus tends to give a reason alongwith the option. Dan just states the option without stating any specific reason.
E.g. Marcus' Option Format:

public class MyMain {
public static void main(String argv) {
System.out.println("Hello cruel world");

1) The compiler will complain that main is a reserved word and cannot be used for a class
2) The code will compile and when run will print out "Hello cruel world"
3) The code will compile but will complain at run time that no constructor is defined
4) The code will compile but will complain at run time that main is not correctly defined

E.g. Dan's Option Format:

class A {
A() throws Exception {} // 1
class B extends A {
B() throws Exception {} // 2
class C extends A {
C() {} // 3

Which of the following statements are true?
a. class A extends Object.
b. Compiler error at 1.
c. Compiler error at 2.
d. Compiler error at 3.
e. None of the Above

Thanks in Advance

Vijay Albuquerque
SCJP 1.4, SCWCD 1.3
Harry Kong
Ranch Hand

Joined: Dec 06, 2002
Posts: 41
Good point. Any one?

SCJP 1.4
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

a mix of the two from what I remember... the format of the exam itself is very similar to Bill Brogden's Exam Simulation Applet
(You can find this and other mock exams here in the JavaRanch's Mock Exam list.)
David Brafford
Ranch Hand

Joined: Feb 11, 2001
Posts: 91
A reasonable expectation would be some of both.
The question styles will also vary - from short
and sweet, to a more scenario driven question.
Dave Brafford
Considering the Certified Java Programmer Exam?
Get JCertify!
For exams 310-025 and 310-035
shweta mathur
Ranch Hand

Joined: Sep 23, 2002
Posts: 109
Yes, in the main exam itz a mixture of both types. So it is better to prepare like the Dan's type questions.
If you can do it for Dan's questions than , the first ones(Marcus's one) will be easier for you !!

--Shweta<br />SCJP 1.4 <br />SCWCD
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
Vijay -
When you are given a code listing the questions will almost all look like this:

What is the result?
A) Hello cruel world
B) no output is produced
C) Compilation fails at line 2
D) Compilation fails at line 3
E) An exception is thrown at runtime
A few things to note:
The answers will almost always be sorted from shortest to longest.
If the code line numbers don't start from '1', it is assumed you are looking in the middle of a source file.
It is rare that the exam will ask you why the compiler failed. (More frequently the exam will ask you where compilation failed).
The infamous 'What is the result?' is kind of a catch-all question, it allows for sucessful output, or compiler errors, or runtime exceptions, to all be gramatically acceptable answers.


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Vijay Albuquerque
Ranch Hand

Joined: Feb 17, 2002
Posts: 42
Thanks to all for the wonderful feedback
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: SCJP 1.4 Answer Options Format - Like Dan or Marcus ?
It's not a secret anymore!