Unit 1 vocab Flashcards

(24 cards)

1
Q

compiler

A

Software that translates the Java source code into the Java class file which can be run on the computer.

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

Compiler or syntax error

A

An error that is found during the compilation.

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

Main method

A

Where execution starts in a Java program.

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

Variable

A

A name associated with a memory location in the computer.

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

Declare a Variable

A

Specifying the type and name for a variable. This sets aside memory for a variable of that type and associates the name with that memory location.

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

Initializing a Variable

A

The first time you set the value of a variable.

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

data type

A

determines the size of memory reserved for a variable, for example int, double, boolean, String.

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

integer

A

a whole number like 2 or -3

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

boolean

A

An expression that is either true or false.

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

Camel case

A

One way to create a variable name by appending several words together and uppercasing the first letter of each word after the first word (myScore).

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

Casting a Variable

A

Changing the type of a variable using (type) name.

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

Operator

A

Common mathematical symbols such as + for addition and * for multiplication.

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

Compound assignment or shortcut operators

A

Operators like x++ which means x = x + 1 or x *=y which means x = x * y.

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

modulo

A

The % operator which returns the remainder from one number divide by another.

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

arithmetic expression

A

a sequence of operands and operators that describe a calculation to be performed, for example 3*(2 + x)

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

operator precedence

A

some operators are done before others, for example *, /, % have precedence over + and -, unless parentheses are used.

17
Q

boolean

A

used to declare a variable that can only have the value true or false.

18
Q

double

A

used to declare a variable of type double (a decimal number like 3.25).

19
Q

int

A

used to declare a variable of type integer (a whole number like -3 or 235).

20
Q

String

A

used to declare a variable of type String which is a sequence of characters or text.

21
Q

System.out.print()

A

used to print output to the user

22
Q

System.out.println()

A

used to print output followed by a newline to the user

23
Q

=

A
  • used for assignment to a variable
24
Q

+, -, *, /, %

A

aritmetic operators