• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/39

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

39 Cards in this Set

  • Front
  • Back
If your Java source code program showns no "yellow error message" when you click the compile button in DrJava, you can be sure that it contains no
syntax Errors
A megabyte is roughly
1000 (or 1024) kilobytes
All data must be brought into ____ before a program can manipulate it.
main memory
Which one of the following memory types provides storage that persists without electricity?
secondary storage
In the DrJava IDE, the editor you will use when you create the source code for your Java programs is contained in the:
Definitions pane
Consider the following statements regarding computers:
--
I. Computers can execute a large number of instructions in a fraction of a second.
II. Computer application areas mainly target the research and scientific communities.
III. The physical components of a computer constitute its hardware.
IV. Unlike humans, a computer never gets bored or exhausted on performing repetitive tasks.

Which one of the following options is correct?
I, III, and IV
A user interface that you can manipulate using different visual components is called a:
GUI or graphical user interface
To lessen the burden of repetition, and to increase productivity, programmers create ______________ of code that perform common tasks.
libraries
In a main method definition, the word void is called:
method return type
The person who invented the stored program concept, that is, the idea of controlling an electronic computer using instructions stored in memory, was _____________________
John Von Neuman
The object System.out is a(n) ______________ of the class PrintStream.
instance
The class body is where the _______________ and _________________ are defined.
attributes and methods
Java identifiers must:
start with a letter or an underscore
One of the first high-level programming languages was designed to allow bankers and clerks to write programs to process checks and accounts in businesses. That language was named
COBOL
When use a method name to perform a predefined set of actions, we say you are _____________ a method.
invoking
Variables created outside of a method are officially called ________________.
fields
Often, when writing a program, a single grammar mistake will lead the compiler to produce a series of misleading error messages. The lesson calls these ________________ errors.
cascading errors
The Syntax Errors section lists several categories of compile-time errors. Trying to use a real or floating-point number when an integer or whole number is required, is an example of a:
type error
________________ methods are designed to accomplish a single, simple task, and help to make your programs more flexible and easier to understand.
User Defined
The strategy of iterative development, where you make simple changes (so you don't get confused), and then make additional changes as needed is called:
step-wise refinement
Developing a program by simply listing the individual steps you want to take inside the main method (before writing the details needed to carry out the actions) is known as __________________.
top down design
A _______________ consists of a variable type, followed by a variable name. When defining your method, each one must have its own type.
formal parameter
What is created for each input parameter when a method is called?
parameter variable
Which of the following must be provided when defining a method?
A name for the method, a name and type for each parameter, and a type for the return value
Which of the following words indicates an object’s reference to itself?
this
How many constructors can a class have?
any number
The (invisible) reference to an object that is passed to every object’s instance methods is called the ____.
this reference
You are ____ required to write a constructor method for a class.
never
When is a finally{} block executed?
Always after the execution of a try block, regardless of whether or not an exception is thrown
Which class of exceptions is NOT checked?
RuntimeExceptions
The compiler determines which version of a method to call by the method’s ____.
signature
The toString() method is automatically inherited from the __________________ class.
object
Constructor chaining means that:
subclass constructors call super class constructors.
Assume that you have an ArrayList variable named a containing 4 elements, and an object named element that is the correct type to be stored in the ArrayList. Which of these statements replaces the first object in the collection with element?
a.set(element, 0);
Assume that you have an ArrayList variable named a containing 4 elements, and an object named element that is the correct type to be stored in the ArrayList. Which of these statements assigns the first object in the collection to the variable element?
element = a.get(0);
The members of an enumerated type are _______________.
constants
Implementation inheritance is also known as __________________________:
contraction
The ____________ relationship occurs when members of one class form a subset of another class, like the Animal, Mammal, Rodent example we discussed in the online lessons.
composition
___________________ is one of the primary mechanisms that we use to understand the natural world around us. Starting as infants we begin to recognize the difference between categories like food, toys, pets, and people. As we mature, we learn to divide these general categories or classes into subcategories like siblings and parents, vegetables and dessert.
classification