Chapter 1 Java Programming slurp – Flashcards

Unlock all answers in this set

Unlock answers
question
An object typically hides it data, but allows outside code to access
answer
the methods that operate on the data.
question
A computer program is
answer
a set of instructions that enable the computer to solve a problem or perform a task.
question
Which of the following is not part of the programming process?
answer
All these are parts of the programming process.
question
Whereas ________ is centered on creating procedures, ________ is centered on creating objects.
answer
procedural programming, object-oriented programming
question
________ refers to the physical components that a computer is made of.
answer
Hardware
question
What is syntax?
answer
Rules that must be followed when writing a program.
question
A(n) ________ is a software entity that contains data and procedures.
answer
method
question
Suppose you are at an operating system command line, and you are going to use the following command to compile a program: javac MyClass.java Before entering the command, you must
answer
make sure you are in the same directory or folder where the MyClass.java file is located.
question
RAM is usually
answer
a volatile type of memory, used only for temporary storage.
question
________ is a cross between human language and a programming language.
answer
Pseudocode
question
This is a special language used to write computer programs.
answer
Programming language
question
Because Java byte code is the same on all computers, compiled Java programs
answer
are highly portable.
question
The two primary methods of programming in use today are
answer
procedural and object-oriented.
question
Variables are
answer
symbolic names made up by the programmer that represents locations in the computer's RAM.
question
________ are used to indicate the end of a Java statement.
answer
Semicolons
question
The purpose of validating the results of the program is to
answer
determine if the program solves the original problem.
question
Compiled byte code is also called source code.
answer
False
question
A procedure is a set of programming language statements that, together, perform a specific task.
answer
True
question
Logical errors are mistakes that cause the program to produce erroneous results.
answer
True
question
Each byte is assigned a unique number known as an address.
answer
True
question
Byte code instructions are
answer
read and interpreted by the JVM.
question
The data contained in an object is known as
answer
attributes.
question
Application software refers to programs that make the computer useful to the user.
answer
True
question
Which of the following commands will run the compiled Java program named ReadIt?
answer
java ReadIt
question
Internally, the central processing unit (CPU) consists of two parts:
answer
the control unit and the arithmetic and logic unit (ALU).
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New