3 Flashcards

1
Q

A comment.

A

What does /* suggest

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

Declares the identifier and data type for a variable.

A

Variable declaration statement

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

Variables whose values cannot change.

A

Constants

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

Assigning a value to a variable that is outside of the ranges of values that the data type can represent.

A

Arithemetic overflow

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

Expressions imvolving integers and floating-point values.

A

Mixed-mode arithmetic

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

Allows one data type to be explicitly converted to another.

A

Type casting

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

Append a string or value to another string.

A

String concatenation

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

Used in codes to represent characters that cannot be directly typed into a program.

A

Escape character ()

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

System.out.print(“Something to print”); or System.out.println(“Something to print with a line (LiNe)”);

A

How do you print something in the output?

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

So Java knows that it is the end of a statement.

A

Why is there a semicolon (;) at the end of each statement?

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

Things that store information.

A

What are variables?

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

(A kind of variable) (name of the variable) = (value of variable);
For example, String var = “Hello, World”;

A

How do you create variables?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
//Comment
/*Multi-Line
Comment*/
/**JavaDoc Comment
*Describes Program or 
*Method
**/
A

How do you make a comment?`

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

For letting your program run.

A

What is a main method for?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
public static main(String[] args) {
//Your program goes here!
}
A

How do you make a main method?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
class (name of program) {
//Your program goes here!!
}
A

How do you start a program?

17
Q
class helloWorld {
public static main (String[] args) {
String hw = "Hello, World!";
System.out.println(hw);
}
}
A

How do you make a Hello World program?

18
Q

A mini-program that is referred to by the program and others.

A

What’s a method?

19
Q

public void (method name)((arguments)) {

}

For example,
public void greetYou(String greeting) {
//Your program here!
}
A

How do you create a method?

20
Q

if (arg) {

}
else {

}

if (arg) {

}

if (arg) {

}
else if (arg) {

}
else {

}

For example

if (e < 10) {
//What happens if e < 10
}
else {
//What happens otherwise
}

Switch statements are better for if…else if…else.

A

How do you make if…else statements?