• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Khalid's Mock Exam

 
varsha mhaskar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

To S Sivasuthan,

Khalid's answer to your question is 2), 3), 4).
 
varsha mhaskar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx once again Siva for your reply. Now I will try using your trick.

Varsha
 
Sivasuthan Sivalingam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay Siva. I will read the material and ge back to you.
 
Panagiotis Varlagas
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'll appreciate if you could direct me to the site that Khalid has mock exam questions.
Thanks
AH
 
varsha mhaskar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic