Chapter 2 Flashcards

(49 cards)

1
Q

One approach to creating, compiling, and editing programs where the user types commands and the computer responds

A

Command Line Environment

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

An approach to creating, compiling, and editing programs where the user uses the keyboard and mouse to interact with a graphical user interface

A

Integrated Development Environment (IDE)

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

The basic development system for Java programming

A

Java Development Kit (JDK)

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

Central concept in a command line environment which contains files that can be used by the commands you type

A

Current/Working Directory

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

Current directory first displayed in a command prompt where personal files are stored

A

Home Directory

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

A computer program that allows you to create and save documents containing plain text

A

Text Editor

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

A shortcut to typing long commands

A

Alias

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

The rules that determine what is allowed of a programming language’s vocabulary and construction

A

Syntax

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

The set of rules that determine the meaning of a program written in a porgramming language

A

Semantics

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

Aspects of programming relating to the style of the program

A

Pragmatics

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

Command within a program that uses a built-in subroutine

A

Subroutine Call Statement

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

Subroutine which is already defined as a part of a programming language and therefore is automatically available for use in any program

A

Built-In Subroutine

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

File where the class of a program is saved but not necessary for executing the program and different from the compiled file

A

Source Code

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

The most basic names in Java syntax which can be used to name classes, variables, and subroutines as a sequence of one or more characters consisting of a letter or underscore at the beginning and letters, numbers, or underscores throughout

A

Identifiers

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

Certain words which cannot be used as identifiers in Java since they are held for special uses, such as ‘class’, ‘public’, ‘static’, and several dozen other words

A

Reserved Words

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

Method of capitalizing multi-word names so that each word, except maybe the first, is capitalized without any space or underscore separating them

A

Camel Case

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

Things in Java which can consist of several simple names separated by periods, based in the idea that things can contain other things and acting as a path to an item through one or more levels of containment

A

Compound/Qualified Names

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

Statement which sets a variable name to a value using an equals sign in the form ‘variable = expression’

A

Assignment Statement

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

Type of programming language in which variables are designed to hold only one particular type of data

A

Strongly Typed

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

Basic data types recognized by Java which include only: byte, short, int, long, float, double, char, boolean

A

Primitive Types

21
Q

Data type corresponding to two bytes, with values in the range of -32768 to 32767

22
Q

Data type corresponding to four bytes, with values in the range of -2147483648 to 2147483647

23
Q

Data type corresponding to eight bytes, with values in the range of –9223372036854775909 to 9223372036854775807

24
Q

Data type for encoding real numbers represented in four bytes of memory, so that the maximum value is about 10^38 and may include about seven significant digits

25
Data type used for encoding real numbers represented in eight bytes, so that it may range up to about 10^308 with 15 significant digits
Double
26
Data type occupying two bytes of memory which is valued as a single Unicode character
Char
27
Something that you can type in a program to represent a value
Literal
28
Statement used to declare one or more variables and give them names
Variable Declaration Statement
29
Variables declared within a subroutine and exist only there, completely inaccessible from outside of it
Local Variables
30
The value providing a subroutine with information it needs to perform its task
Parameter
31
Variables and subroutines grouped together within a class
Static Members
32
Type of subroutine which computes or retrieves some data value, such as returning a value to be used somehow in the program that calls it
Function
33
A collection of variables and subroutines with an associated class describing what type it is
Object
34
A subroutine that is contained in a class or in an object
Method
35
A new kind of string literal starting with a series of three double-quote characters, followed by optional white space and then a new line, making it easier to represent multiline strings
Text Blocks
36
A special kind of class used for enumerated types which has a fixed list of possible values specified when it is created
Enums
37
Possible values of an enum type
Enum Constants
38
The destination of a string output
Standard Output
39
Parameter of System.out.printf which specifies the format of the output
Format String
40
Details of the output format for a value in a format string which begins with a percent sign and ends with a letter specifying the type of output that is to be produced
Format Specifier
41
Place to which data may be written that is stored on the user's hard drive
File
42
Place to which output is sent when written using TextIO.put or its variations
Current Output Destination
43
A chunk of internal memory to where the computer may look before prompting the user for input
Input Buffer
44
A piece of program code that represents or computes a value, including a literal, variable, function call, or several of these combined with operators
Expression
45
Process of a program during arithmetic operations to automatically change a value from one type to another
Type Conversion
46
Operator which takes the negative of a number
Unary Minus
47
Methods of writing boolean operators where the second operand is not necessarily evaluated, such as && and ||
Short-Circuited Operators
48
A ternary operator which comes with the two pieces ? And : to test the value of the left-most condition and executes the arithmetic operation to the left only if such condition is true
Conditional Operator
49
A way to convert a type forcefully, indicated by putting a type name in parentheses in front of the value that should be converted
Type Cast