Preview

OCJA exam prep

Satisfactory Essays
Open Document
Open Document
5816 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
OCJA exam prep
Appendix H
Practice Exam
Q1: Package statements
1. Which statement is not true about package statements?
A. Package statements are optional.
B. Package statements are limited to one per source file.
C. Standard Java coding convention for package names reverses the domain name of the organization or group creating the package.
D. The package names beginning with javas.* and javaw.* are reserved. Hint: Consider the package names java.util and javax.swing. Reference: Chapter 1: Packaging, Compiling, and Interpreting Java
Code
Objective: Understand Packages
Q2: Import statements
2. Which statement represents a valid statement that will allow for the inclusion of classes from the java.util package?
A. import java.util;
B. import java.util.*;
C. #include java.util;
D. #include java.util.*;

Hint: Consider valid Java keywords.
Reference: Chapter 1: Packaging, Compiling, and Interpreting Java
Code
Objective: Understand Packages
Q3: Collections API
3. List four interfaces of the Collections API.
A. ArrayList, Map, Set, Queue
B. List, Map, Set, Queue
C. List, Map, HashSet, PriorityQueue
D. List, HashMap, HashSet, PriorityQueue
Hint: Consider the differences between interfaces and implementations (concrete classes).
Reference: Chapter 1: Packaging, Compiling, and Interpreting Java
Code
Objective: Understand Package-Derived Classes
Q4: Basic input/output classes
4. Which class in the java.io package allows for the reading and writing of files to specified locations within a file?
A. File
B. FileDescriptor
C. FilenameFilter
D. RandomAccessFile

Hint: This class implements DataOutput, DataInput, and Closeable.
Reference: Chapter 1: Packaging, Compiling, and Interpreting Java
Code
Objective: Understand Package-Derived Classes
Q5: Java interpreter
5. Which MS Windows–based command-line utility will allow you to run the Java interpreter without launching the console window?
A. javaw
B. interpw
C. java -wo
D. jconsole
Hint:

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Practice Exam 3

    • 275 Words
    • 2 Pages

    1. Calculate the frequency and wavelength of the spectral line of hydrogen corresponding to a transition of an electron from n=6 to n=3.…

    • 275 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ccj/4701 Final Exam

    • 2209 Words
    • 9 Pages

    c. Do the number of prior arrests differ significantly as a result of the charge types? How do you know?…

    • 2209 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    CJA 364 Entire Course

    • 459 Words
    • 3 Pages

    A great tip for the college student who hates getting up in the morning is to avoid scheduling early classes. You have to understand your habits and not put yourself in a position to fail. If you know you will sleep though a 7a.m. class, avoid taking it in the first place.…

    • 459 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Java exam 1 practice test

    • 6434 Words
    • 53 Pages

    A set of instructions that enable the computer to solve a problem or perform a task…

    • 6434 Words
    • 53 Pages
    Powerful Essays
  • Satisfactory Essays

    CJA 334 Entire Course

    • 397 Words
    • 3 Pages

    As was mentioned at the opening of this article, your stay at college can be one of the most amazing experiences of your life. In order to ensure that you get the most out of your time in college, apply all of the great tips and advice you've learned about in this article.…

    • 397 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    C200 Exam

    • 1410 Words
    • 6 Pages

    1. In President Obama’s speech at West Point, he announced that 30,000 additional troops would be sent to Afghanistan. He made this decision because he said it was vital to the United States’ national interest. The vital national interest at risk in President Obama’s address is the security and safety of the American people as well as the “security of our allies and the common security of the world.” By involving the military and increasing the troop strength, President Obama can achieve the objectives of his strategy. His objectives are to keep the Taliban from becoming powerful, prevent them from government rule, improve Afghanistan security forces and government so they can manage their own country and prevent Al Qaeda from establishing refuge in other countries. If you follow the framework of several important U.S. documents, such as the National Defense Strategy (NDS) and Quadrennial Defense Review (QDR) they will outline this same strategy. The National Defense Strategy states that it is the responsibility of the military to protect ourselves and our allies from attack. It states that the military should help protect and secure our vital interests abroad. U.S. security is linked with the security of the international community. The physical integrity of our country is protected by the military through multiple security controls. One of these security controls is through deployments of the armed forces. The Quadrennial Defense Review states the mission of the U.S. military is to protect the American people and advance our nation’s interests. The vital interests of the United States are intertwined with the integrity and resilience of allies abroad. Our vital interests are security, prosperity, broad respect for universal values and an international order that promotes cooperation among our allies. The President’s vision is to become more powerful domestically while bringing together all elements of national power. We need to help our neighbors…

    • 1410 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    After all bills for the party were paid, the total came to $2,315. Details are $575 for hotel room rental, $640 for food, $750 for entertainment, and $350 for decorations. 100 persons attended the party. What is the main reason for the unfavorable total budget variance?…

    • 1207 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    CIS 527 Mid Term Exam

    • 185 Words
    • 1 Page

    5. Discuss the following transformation process: Data -> Information -> Knowledge -> Insights within the context of analytics. Once insights are achieved what is the ultimate express of analytics? Provide an example.…

    • 185 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    635 Sample Exam

    • 576 Words
    • 2 Pages

    (d) The risk that the new product you expect your R&D division to produce will not materialize.…

    • 576 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    au2 exam - cga

    • 10686 Words
    • 43 Pages

    not be marked. Incorrect answers will be marked as zero. Marks will not be awarded for explanations.…

    • 10686 Words
    • 43 Pages
    Powerful Essays
  • Powerful Essays

    Cga Exam

    • 22727 Words
    • 91 Pages

    Before starting to write the examination, make sure that it is complete and that there are no printing defects. This examination consists of 19 pages. There are 4 questions.…

    • 22727 Words
    • 91 Pages
    Powerful Essays
  • Good Essays

    NCLEX 150 QARs Exam Prep No

    • 19684 Words
    • 95 Pages

    2. The nurse has just returned to the desk and has four phone messages to…

    • 19684 Words
    • 95 Pages
    Good Essays
  • Good Essays

    Acc 561 Final Exams Help

    • 928 Words
    • 4 Pages

    8) _____ is the field of accounting that develops information for external decision makers such as stockholders, suppliers, banks, and government regulatory agencies.…

    • 928 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    CCNA chapter 1 exam

    • 383 Words
    • 2 Pages

    4. List some examples of how the network has changed the way we work and play.…

    • 383 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Prelim Exam

    • 501 Words
    • 3 Pages

    III. IDENTIFICATION. Identify that which is spoken of. Write the answer on the space provided. (3 pts each)…

    • 501 Words
    • 3 Pages
    Good Essays

Related Topics