GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Khalid's Mock Exam 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 "Khalid Watch "Khalid New topic
Author

Khalid's Mock Exam

varsha mhaskar
Greenhorn

Joined: Jan 09, 2001
Posts: 15
I have gone through the Khalid's mock exam.
But there is no way to find out the correct answer if your answer is incorrect, Please anybody can tell me how to know what are the correct answers in Khalid'd mock exam?
Thanking in advance
Varsha
S Sivasuthan
Greenhorn

Joined: Nov 29, 2000
Posts: 6
Yeah I also don't know Where to get the answer for that exam
But What I did was I did One Question at a time and checked whether my answer is correct or wrong. like that i did find all the anwers given there Except one Question

I think the answer would be $value$ only but according to the exam it is not correct.
Hope this helps
Regards.
Siva.

[This message has been edited by S Sivasuthan (edited January 10, 2001).]
Harpal Singh
Ranch Hand

Joined: Oct 10, 2000
Posts: 229
Dear Varsha,
Actually ,if you have Khalid's book you can find the same ques at the end of book with answers!!!
Harpal
varsha mhaskar
Greenhorn

Joined: Jan 09, 2001
Posts: 15
Thank you Siva for your reply. But I also tried solving one question at a time. But everytime you start the exam engine it generates new question set. So we really can not keep track of the questions.

Varsha
S Sivasuthan
Greenhorn

Joined: Nov 29, 2000
Posts: 6

Yes, your are right That engine will generate new set of Qesutions.
First of all take down the Question(One Question at a time) and Find the most proble answer with yourself.
Finished the test and check your answer.
if it is right no problem
else start the test again and Navigate and find your Question if you find it then try with a new answer (next probale ans) finished the test and check the answer
Like wise continue this until you find it with the correct answer.
(Hope there in only 70 Questin in the test engine's bank)
- Siva
amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231

To S Sivasuthan,

Khalid's answer to your question is 2), 3), 4).
varsha mhaskar
Greenhorn

Joined: Jan 09, 2001
Posts: 15
Thanx once again Siva for your reply. Now I will try using your trick.

Varsha
Sivasuthan Sivalingam
Greenhorn

Joined: Nov 20, 2000
Posts: 5

Originally posted by amit sanghai:

To S Sivasuthan,

Khalid's answer to your question is 2), 3), 4).

I am sorry, It is not the answer. However now I have found the anwer by testing the each Identifiers - 2 & 4 are correct. 3 is wrong 'cos @ is a special char. (to get � type 132 while pressing the alter key)
Siva
sunilkumar ssuparasmul
Ranch Hand

Joined: Dec 13, 2000
Posts: 142
i have downloaded khalida test buti dont which class while to run to start the test .please help
------------------
"Winners don't do different things
They do things differently"


"Winners don't do different things<br /> They do things differently"
amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231

Hi Siva,
I am not able to type the "angstrom" character by the way you specified. Please help!!!

Hi Sunilkumar,
Just go to DOS prompt, go to the directory where you have downloaded the jar file.(If it is zip file first unzip it.)

Then set the path to where the java (ie. jdk) program is.
Then type :
java -jar pgjc-engine.jar

Hope it helps.
Bye.
Sivasuthan Sivalingam
Greenhorn

Joined: Nov 20, 2000
Posts: 5
Hi amit sanghai
you can get By typing Alt key and 134
and for type Alt key and 148
�ngstr�m
Hope this helps.
Siva
varsha mhaskar
Greenhorn

Joined: Jan 09, 2001
Posts: 15
Hi Siva,
According to me "class" is also a valid identifier
because "class" is not a keyword. "Class" is a keyword.
and I also did not understand why the option
4 (some special characters) is a also a valid indentifier.
Are they consider as alphabets?
Varsha
Sivasuthan Sivalingam
Greenhorn

Joined: Nov 20, 2000
Posts: 5
Originally posted by varsha mhaskar:
Hi Siva,
According to me "class" is also a valid identifier
because "class" is not a keyword. "Class" is a keyword.
and I also did not understand why the option
4 (some special characters) is a also a valid indentifier.
Are they consider as alphabets?
Varsha

To Varsha
First of all class is a keyword (please refer jls(�3.9)) But Class is not a keyword also all the keywords are in simple letters.
I think (I am not sure) �,� are Latin letters (ANSI code set or Dos code set) I just read the following form my TestPad editor's help.
Windows applications normally use the ANSI code set, while DOS applications use the DOS code set (also known as OEM and IBM). The numeric codes that are assigned to the English alphabet, numbers and various other common characters are the same in both sets, but characters with codes above decimal 127 (hex 7F), such as the line drawing set, use different codes, and some are unique.
I do now Much about that. If you want to know more about Identifiers Please Read JLS((�3.8).
Hope this helps.
Siva.

varsha mhaskar
Greenhorn

Joined: Jan 09, 2001
Posts: 15
Okay Siva. I will read the material and ge back to you.
Panagiotis Varlagas
Ranch Hand

Joined: Nov 27, 2000
Posts: 233
Hi guys.
To save you all time: This is a Khalid mock exam erratum. Check out this older discussion: http://www.javaranch.com/ubb/Forum35/HTML/000107.html
a hui
Ranch Hand

Joined: Oct 14, 2000
Posts: 39
Hi,
I'll appreciate if you could direct me to the site that Khalid has mock exam questions.
Thanks
AH
varsha mhaskar
Greenhorn

Joined: Jan 09, 2001
Posts: 15
Hello Siva,
I read the Java language specification 3.8 which states that
1>"The Java letters include uppercase and lowercase ASCII Latin letters A-Z (\u0041-\u005a), and a-z (\u0061-\u007a), and, for historical reasons, the ASCII underscore (_, or \u005f) and dollar sign ($, or \u0024). The $ character should be used only in mechanically generated source code or, rarely, to access preexisting names on legacy systems. "
and it also states that
2>"Letters and digits may be drawn from the entire Unicode character set, which supports most writing scripts in use in the world today, including the large sets for Chinese, Japanese, and Korean. This allows programmers to use identifiers in their programs that are written in their native languages.
A "Java letter" is a character for which the method Character.isJavaIdentifierStart returns true. A "Java letter-or-digit" is a character for which the method Character.isJavaIdentifierPart returns true. "
Now I am really confused by these two sentences. By the statement 1 I had drawn the conclusion that alphabets (A-Z and a-z) and letters "_" and "$" are ONLY used as JAVA LETTERS.
But statement 2 says that letters and digits may be drawn from entire Unicode set
Please can anyone explain me this

Varsha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Khalid's Mock Exam