Java ( Code Academy): Java variable Flashcards

1
Q

We store information

A

in variables

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

Naming a piece of information allows us

A

to use that name later, accessing the information we stored.

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

Primitive data types

A

are types of data built-in to the Java system.

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

The three main primitive types

A

int, double, and boolean

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

The " escape sequence allows us to add

A

quotation marks “ to a String value. :

input: System.out.println(“"Hello World"”);

output: // Prints: “Hello World”

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

Using the \ escape sequence allows us

A

to place backslashes in our String text:

input: System.out.println(“This is the backslash symbol: \”);
output: // Prints: This is the backslash symbol: \

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

\n escape sequence in a String, the compiler will

A

output a new line of text:

System.out.println(“Hello\nGoodbye”);
/*
Prints:
Hello
Goodbye
*/

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

Creating and filling variables is a

A

powerful concept that allows us to keep track of all kinds of data in our program.

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