Chapter 1 Flashcards

(55 cards)

1
Q

Assembly Language

A

A low-level language that replaced binary digits with mnemonics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Bytecode

A

A low-level representation of a Java program that is not tied to a specific type of CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Case-Sensitive

A

Making a distinction between uppercase and lowercase letters. Java is case-sensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Class Definition

A

An element in a Java program. All Java programs are defined using class definitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Class Library

A

A set of software classes that can be used when developing programs (see Java API)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Comment

A

Text included in a program to make the program easier to understand for humans

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Compiler

A

A program that translates code in one language into equivalent code in another language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Deprecated

A

An element that is considered old-fashioned and should not be used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Editor

A

A software tool that allows one to enter text such as a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Encapsulation

A

The characteristic of an object that means it protects and manages its own information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Graphical User Interface (GUI)

A

An interface to a program that consists of graphical elements such as windows and buttons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

High-Level Language

A

A programming language that is expressed in phrases that are easier than machine language for a programmer to understand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Identifier

A

A word in a programming language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Inheritance

A

Defining a class based on another that already exists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Integrated Development Environment (IDE)

A

A set of software tools used to create, modify, and test a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Java 2 Platform

A

The most recent Java technology

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Java API

A

A library of software that we can use when developing programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Logical Error

A

An error in a program that causes it to produce incorrect results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Machine Language

A

The language executed by a particular CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Method

A

A group of programming statements that is given a name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Method Invocation

A

Calling a method to execute its code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Natural Language

A

A language that humans use to communicate, such as English

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Object

A

A fundamental entity in a Java program that represents something and provides services related to it

24
Q

Object-Oriented Programming Language

A

A language, such as Java, that uses objects as the fundamental elements of a program

25
Program
A series of instructions that a computer executes one after another
26
Programming Statement
An individual instruction in a programming language
27
Reserved Word
An identifier that has a special meaning in a programming language and can be used only in predefined ways
28
Runtime Error
An error that occurs during program execution and causes the program to terminate abnormally
29
Semantics
Rules that define what a statement in a language means
30
Syntax
The rules of a language that dictate how vocabulary elements of the language can be used
31
Syntax Error
A programming error that violates the syntax rules of the language
32
White Space
The space, tab, and newline characters used to separate words and symbols in a program
33
Hardware
The physical, tangible pieces that support the computing effort
34
Software
Consists of programs and the data those programs use
35
Programming Language
Specifies the words and symbols that we can use to write a program
36
Who created Java?
Sun Microsystems, Inc.
37
In what year was Java introduced?
1995
38
How do you denote a single-line comment in Java?
//
39
How do you denote a multi-line comment in Java?
/* */
40
How do you denote a javadoc comment in Java?
/** */
41
What are the parameters for an identifier in Java?
1. They can be made up of letters, digits, underscores and dollar signs 2. They cannot begin with a digit
42
True or False: Java is case-sensitive?
True
43
What are the best-practices for different case-styles in Java?
1. Title case for class names | 2. Upper case for constants
44
What are the activities of developing a program?
1. Writing the program in a specific programming language 2. Translating the program into a form that the computer can execute 3. Investigating and fixing various types of errors that can occur
45
What are the four programming language levels?
1. Machine Language 2. Assembly Language 3. High-Level Language 4. Fourth-Generation Language
46
True or False: All CPUs have the same machine language
False
47
True or False: Java is considered to be architecture-neutral
True
48
What is the process that Java takes to be translated into machine code?
1. Java source code is compiled into Java bytecode | 2. Java bytecode is then compiled into machine code
49
Compile-Time Errors
The compiler will find syntax errors and other basic problems
50
Solving a problem consists of what activities?
1. Understand the problem 2. Design a solution 3. Consider alternatives and refine the solution Implement the solution 4. Test the solution
51
Any proper software development effort consists of four basic development activities
1. Establishing the requirements 2. Creating a design 3. Implementing the design 4. Testing
52
Software Requirements
Specify what a program must accomplish
53
Software Design
Indicates how a program will accomplish its requirements
54
Implementation
The process of writing the source code that will solve the problem
55
Testing
The act of ensuring that a program will solve the intended problem given all of the constraints under which it must peform