Terms
Data Types
Operators
Variable tracing
Scanner methods
100

You cannot close a statement without this

A semicolon ;

100

This can hold only one keyboard letter or symbol

Character (char)

100

This can add or concatenate a String

+

100

What is the final value of value1?

double value1 = 10.9;

double value2 = 100.95;

value1 =103.7;

value2 = 99.1;

103.7

100

Assume: import java.util.Scanner;

Scanner kb = new Scanner(System.in);

This method allows the user to input an integer

kb.nextInt();

200

This will close your main method and your class

Curly Brace }

200

This can hold only values of true or false

Boolean

200

This executes arithmetic subtraction

-

200
What is the final value of Message?

String memo = "Hello";

String message = "My name is Kevin.";

memo = "Goodbye";

message = "I like dogs.";

"I like dogs."

200

Assume: import java.util.Scanner;

Scanner kb = new Scanner(System.in);

This method allows the user to input a number and a decimal.

kb.nextDouble();
300

This describes the kind of data you have.

Data Type

300

This can hold any whole number

Integer (int)

300

This executes arithmetic multiplication

*

300

What is the final value of c1?

char c = 'B';

char c1 = 'V';

c1 = 'W';

String c2 = c+c1;


W

300

Assume: import java.util.Scanner;

Scanner kb = new Scanner(System.in);

This method allows the user to input a true or a false

kb.nextBoolean();

400

The definite number or text of something

Value

400

This can hold a number and a decimal value

Double (double)

400

This executes arithmetic division

/

400

What is the final value of secondInt?

int firstInt = 100;

int secondInt =38;

secondInt++;

secondInt = secondInt*2 +1;

79

400
Assume: import java.util.Scanner;

Scanner kb = new Scanner(System.in);

This method allows the user to input a one-word text value.

kb.next();

500

A hexidecimal memory location in your computer given a name

Variable

500

This can hold any number of symbols in a line of text

String

500

This returns the remainder of a division

Modulus %

500

What is the final value of d3?

double d1 = 107.1;

double d2 = 107.9;

double d3 = (.2*(d1+d2)/d2)*0);

0

500

Assume: import java.util.Scanner

Scanner kb = new Scanner(System.in);

This method allows the user to enter multiple text phrases.

kb.nextLine();