Quiz #2 Flashcards

1
Q

//

A

used for adding a comment to the end of a statement or to create a single line comment

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

/** */

A

comment
used for documentation

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

/* */

A

comment
used to enclose a single or multiline comment

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

\

A

backslash

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

\t

A

tab

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

\n

A

newline

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

"

A

double quotation mark

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

what is a comment

A

provides information about the program to the reader of the code

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

escape sequences

A

\n
\t

"

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

print vs println

A

println puts the next set of words on a new line, print puts the next set of words on the same line

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