Preview

Questions CSC

Powerful Essays
Open Document
Open Document
441 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Questions CSC
Questions & Answers
To
Sun Certified Programmer for Java 2 platform (Exam 310-025)

Document version control

Date
Author
Version
Comment
12/09/2001
Ashraf Fouad
1.0 beta
Creation

Correction:
(2.1): missing j variable, operators were not correct
(2.3): s1 = “YES” instead of “yes”
27/01/2002
Ashraf Fouad
1.0 final
Released

Note To Holders:
If you receive an electronic copy of this document and print it out, please write your name on the equivalent of the cover page, for document control purposes.

If you receive a hard copy of this document, please write your name on the front cover, for document control purposes.

Contributors:
My site Visitors

Chapter 1:
Language fundamentals

1.1) Which of the following lines are valid declarations? [1] [3]
(a) char a = ‘\u0061’;
(b) char \u0061 = ‘a’;
(c) ch\u0061r a = ‘a’;
(d) char a = (char) 65;

1.2) Is an empty file a valid source file? [1]
(a) True.
(b) False.

1.3) Which of these are valid declaration of the main() method? [1]
(a) static void main(String args[]) {/* … */}
(b) public static int main(String args[]) {/* … */}
(c) public static void main(String args) {/* … */}
(d) final static public void main(String[] arguments) {/* … */}
(e) public int main(String args[], int argc) {/* … */}
(f) public void main(String args[]) {/* … */}

1.4) Which one of the following are not valid character contants? [8]
Select any two.
(a) char c = '\u00001' ;
(b) char c = '\101';
(c) char c = 65;
(d) char c = '\1001' ;
Top of Form
Bottom of Form

Answers:
1.1) (a), (b), (c), (d)
All are valid declarations. The \uxxxx notation can be used anywhere in the source to represent Unicode characters, and also casted integer to a char primitive type.

1.2) (a)
Although nonsensical, an empty file ia a valid source file. A source file can contain an optional package declaration, any number of import statements and any number of

You May Also Find These Documents Helpful

  • Satisfactory Essays

    I am the original owner of this document. Any changes required on this document please directly contact me first. I will provide further detail on this.…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Note: The attachment of this statement on any electronically submitted assignments will be deemed to have the same authority as a signed statement.…

    • 1047 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Ucc Questions

    • 929 Words
    • 4 Pages

    Uniform Commercial Code, The Uniform Commercial Code represents a general and comprehensive revision of the state's prior laws applicable to commercial transactions.…

    • 929 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In this paperwork of SOC 312 Week 3 Quiz you will find the answers on the next questions:…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Bus Law203

    • 2307 Words
    • 10 Pages

    • Write your name on the Assignment Sheet. Submit a hard copy of the entire Assignment Sheet.…

    • 2307 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    5. What two things must you normally specify in a variable declaration? You must specify the variable type and identifier.…

    • 748 Words
    • 3 Pages
    Powerful Essays
  • Better Essays

    VSEPR Lab

    • 1830 Words
    • 5 Pages

    Directions: Make a copy of this document and change the file name to “your last name,…

    • 1830 Words
    • 5 Pages
    Better Essays
  • Good Essays

    When acting on suspicion on abuse you need to be fully aware that is isn’t going to harm the victim even more so. But you do need report this in my case I would report to my senior, nurse, and manger and if I still wasn’t satisfied then I would report this on to social services, safeguarding and CQC. I would make my report in written and date this and keep a copy for evidence. If the report was against an employee or family I would ensure in the meantime that the victim was in a safe environment.…

    • 1855 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    CERTIFICATE OF ORIGINALITY: I certify that the attached paper, which was produced for the class identified above, is my original work and has not previously been submitted by me or by anyone else for any class. I further declare that I have cited all sources from which I used language, ideas and information, whether quoted verbatim or paraphrased, and that any and all assistance of any kind, which I received while producing this paper, has been acknowledged in the References section. This paper includes no trademarked material, logos, or images from the Internet, which I do not have written permission to include. I further agree that my name typed on the line below is intended to have, and shall have the same validity as my handwritten signature.…

    • 594 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    uhuh

    • 2087 Words
    • 9 Pages

    Make sure you have a cover sheet with your name and address on this paper.…

    • 2087 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Gatsby

    • 411 Words
    • 2 Pages

    At the top right of the document, the heading will include both partners’ names, my name, the class period, and the date.…

    • 411 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Motivation and the Brain

    • 1465 Words
    • 6 Pages

    CERTIFICATE OF ORIGINALITY: I certify that the attached paper, which was produced for the class identified above, is my original work and has not previously been submitted by me or by anyone else for any class. I further declare that I have cited all sources from which I used language, ideas and information, whether quoted verbatim or paraphrased, and that any and all assistance of any kind, which I received while producing this paper, has been acknowledged in the References section. This paper includes no trademarked material, logos, or images from the Internet, which I do not have written permission to include. I further agree that my name typed on the line below is intended to have, and shall have the same validity as my handwritten signature.…

    • 1465 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    C++ Midterm

    • 2831 Words
    • 12 Pages

    What is the value inside the "value" variable at the end of the given code snippet?…

    • 2831 Words
    • 12 Pages
    Good Essays
  • Good Essays

    Coding: Questions

    • 2042 Words
    • 18 Pages

    In the cookie cutter metaphor, think of the ________ as a cookie cutter and ________ as the cookies.…

    • 2042 Words
    • 18 Pages
    Good Essays
  • Satisfactory Essays

    entrepreneurship

    • 2951 Words
    • 10 Pages

    * BY SUBMITTING THIS ASSIGNMENT AND COVER SHEET ELECTRONICALLY, IN WHATEVER FORM YOU ARE DEEMED TO HAVE MADE THE DECLARATION SET OUT ABOVE.…

    • 2951 Words
    • 10 Pages
    Satisfactory Essays