Chapter 3 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

arithmetic expression

A

A sequence of operands and operators combined in a manner familiar from algebra. (63)

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

comments

A

Explanatory sentences inserted in a program in such a manner that the compiler ignores them. (77)

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

coordinate system

A

A mechanism for locating the positions of points and other objects in space. (94)

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

exception

A

An abnormal state or error that occurs during run time and is signaled by the JVM. (84)

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

graphics context

A

An object that supports the drawing of shapes and images in a program. (95)

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

keywords

A

Words that have predefined meanings that cannot be changed. (71)

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

literal

A

An item in a program whose value does not change. (60)

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

logic error

A

Occurs when a programmer fails to express him/herself accurately; also called design errors or bugs. (82)

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

method signature

A

A method’s name and the types and number of its parameters. (71)

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

origin

A

The position (0,0) of a point in space or of a pixel on a computer terminal screen. (94)

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

package

A

A group of related classes in a named directory that makes it easy for programmers to share code. (73)

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

pseudocode

A

A half-English / half-code style of writing that expresses an algorithm. (79)

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

reserved words

A

Words that have predefined meanings that cannot be changed. (71)

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

run-time error

A

An error that occurs when a programmer asks a computer to do something that it considers illegal. Program execution halts with an error message. (82)

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

screen coordinate system

A

A mechanism for locating the positions of pixels on a computer terminal screen. (94)

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

semantics

A

Define the rules for interpreting the meaning of statements. (58)

17
Q

syntax

A

The rules for combining words into statements. (58)

18
Q

syntax errors

A

Errors that occur when a syntax rule is violated - such as a missing semicolon at the end of a statement. Syntax errors are detected at compile time. (82)

19
Q

variable declaration statement

A

A statement in which a program declares a variable’s type before it can be used in the program.(62)

20
Q

virus

A

A computer program that can replicate itself and move from computer to computer. (81)