Java Programming I Exam

Topics: Java, Programming language, Source code Pages: 6 (912 words) Published: September 5, 2013
[pic]
1.
A program written in ____ is the most basic circuitry-level language. [pic]A) Java
[pic]B) machine language
[pic]C) BASIC
[pic]D) C
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |B |

[pic]
2.
Locating and repairing all syntax errors is part of the process of ____ a program. [pic]A) interpreting
[pic]B) compiling
[pic]C) debugging
[pic]D) executing
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |C |

[pic]
3.
____ refers to the hiding of data and methods within an object. [pic]A) Instance
[pic]B) Inheritance
[pic]C) Passed
[pic]D) Encapsulation
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |D |

[pic]
4.
____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context. [pic]A) Polymorphism
[pic]B) Architecturally neutral
[pic]C) Source code
[pic]D) Insulation
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |A |

[pic]
5.
Programs that are embedded in a Web page are called Java ____. [pic]A) consoles
[pic]B) applets
[pic]C) applications
[pic]D) windowed applications
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |B |

[pic]
6.
____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the information to perform its task or carry out its purpose. [pic]A) Applets
[pic]B) Methods
[pic]C) Arguments
[pic]D) Objects
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |C |

[pic]
7.
A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class. [pic]A) identifier
[pic]B) access specifier
[pic]C) parameter
[pic]D) Pascal casing
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |B |

[pic]
8.
In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist. [pic]A) active
[pic]B) undefined
[pic]C) static
[pic]D) void
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |C |

[pic]
9.
Line comments start with ____.
[pic]A) a forward slash and an asterisk
[pic]B) two forward slashes
[pic]C) a forward slash and two asterisks
[pic]D) a percent sign
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |B |

[pic]
10.
In a ____ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses, you type cd MyClasses and press Enter. [pic]A) Windows
[pic]B) Java
[pic]C) graphical
[pic]D) DOS
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |D |

[pic]
11.
After a successful compile, you can run the class file on any computer that has a ____. [pic]A) Java language interpreter
[pic]B) Web browser
[pic]C) text editor
[pic]D) DOS
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |A |

[pic]
12.
Java contains a class named ____ that allows you to produce dialog boxes. [pic]A) JBox
[pic]B) JOptionPane
[pic]C) JDialog
[pic]D) JGUI
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |B |

[pic]
13.
Whenever a method requires multiple arguments, the arguments are always separated with ____. [pic]A) commas
[pic]B) periods
[pic]C) forward slashes
[pic]D) brackets
|Points Earned: |1.0/1.0 | |
|Correct Answer(s): |A |

[pic]
14.
If a compiler detects a violation of language rules, it refuses to translate the class to ____. [pic]A) an application
[pic]B) a logic error
[pic]C) machine code
[pic]D) Java
|Points Earned:...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • History of Java Programming Essay
  • Java Programming Essay
  • JAVA Essay
  • Introduction To Java Programming Language Essay
  • Essay about Java Programming
  • Java Essay
  • Java Essay
  • Essay about Concept of Java Programming

Become a StudyMode Member

Sign Up - It's Free