• 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/34

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;

34 Cards in this Set

  • Front
  • Back
Which of the following is a design tool that might be used to create a model of the program?
Pseudo code
This is a program structure that contains data and subprograms (or methods).
Object
The major components of a typical computer system consist of

The CPU, Input/Output devices, Main memory, secondary memory.

What is syntax?

Rules that must be followed when writing a program
Byte code instructions are
Read and interpreted by the JVM
Internally, the central processing unit (CPU) consists of two parts
The control unit and the arithmetic and logic unit (ALU)
What is the difference between an absolute path name and a relative path name?
An absolute path name starts at the root directory; a relative path name assumes you are starting at the current working directory.
When you successfully compile Java source code, the new file produced is called a(n)
class file
Key words are
Words that have a special meaning in the programming language
These are used to indicate the end of a Java statement.
Semicolons
The Java Virtual Machine is a program that reads Java byte code instructions and executes them as they are read. (T/F)

TRUE

A variable is
a program container whose contents may change.
To compile a program named First, use the following command
javac First.java
A Java program must have at least one
Class definition

This is a value that is written into the code of a program.

literal

If you wanted to find the copy command in Linux, but were not sure what it was, which of the following commands would you use?
appropos copy
Every Java application program must have
a method named main

Identifiers cannot

contain spaces

What is not a primitive data type

A string

Which Java keyword is used to define a constant?
final
If the compiler encounters a statement that uses a variable before the variable is declared, an error will result. (T/F)

TRUE

Programming style includes techniques for consistently putting spaces and indentation in a program so visual cues about the program's structure are created. (T/F)

TRUE

Assuming that pay has been declared a double, the following statement is valid.pay = 2,583.44;

(T/F)

FALSE

This is a variable whose content is read only and cannot be changed during the program's execution of the program.
Named constant
This type of method method performs a task and sends a value back to the code that called it.
Value-returning
If method A calls method B, and method B calls method C, and method C calls method D, when method D finishes, what happens?
Control is returned to method C
When an argument is passed to a method,
Its value is copied into the method's parameter variable
Constants, variables, and the values of expressions may be passed as arguments to a method.(T/F)

TRUE

A parameter variable's scope is the method in which the parameter is declared. (T/F)

TRUE

All @param tags in a method's documentation comment must
Appear after the general description of the method
The header of a value-returning method must specify this.
The data type of the return value
You must have at least one return statement in a value-returning method. (T/F)

TRUE

In a @return tag statement the description
Describes the return value

wow

wow