Chapter 3 Vocab Flashcards

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

define arithmetic expressions

A

A sequence of operands and operators that computes a value.

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

define comments

A

non-executable statements used to make a program more readable.

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

What is the coordinate system?

A

A grid that allows a programmer to specify positions of points in a plane or pixels on a computer screen

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

define exception

A

An abnormal state or error that occurs during run-time and is signaled by the operating system

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

What is graphics context?

A

In Java, an object associated with a component where the image for that component are drawn

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

What are keywords/reserved words?

A

words that have predefined meanings that cannot be changed

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

What is a literal?

A

An element of a language the evaluates to itself, such as 34 or “hi there.”

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

What is a logic error/design error?

A

An error such that a program runs, but unexpected results are produced.

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

What is the method signature?

A

the name and formal parameters of a method

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

What is the origin?

A

The point (0,0) in a coordinate system

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

What is a package?

A

A group of related classes in a named directory

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

What is pseudo code?

A

A stylized half-English, half-code language written in English but suggesting Java code

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

What is a run-time error?

A

An error detected when, after compilation is completed, an error message results instead of the correct output.

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

What is the screen coordinate system?

A

A coordinate system used by most programming languages in which the origin is in the upper-left corner of the screen, window, or panel, and the y values increase toward the bottom of the drawing area

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

What is semantics?

A

The rules for interpreting the meaning of a program in a language

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

What is syntax?

A

The rules for constructing well-formed programs in a language

17
Q

What are syntax errors?

A

An error in spelling, punctuation, or placement of certain key symbols in a program.

18
Q

What is a variable declaration statement?

A

The form that introduces a new variable name and its data type in a program

19
Q

What is a virus?

A

A program that can enter a computer and perhaps destroy information