Escape Characters Flashcards

1
Q

Special character that is preceded with a backslash ()

A

Escape character

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

Newline escape character that causes output to advance to the next line

A

\n

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

What will print to the console?

print(‘One\nTwo\nThree’)

A

One
Two
Three

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

Causes output to skip over to the next horizontal tab position

A

\t

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

Causes a single quote mark to be printed

A

\’

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

Causes a double quote mark to be printed

A

\”

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

Causes a backslash character to be printed

A

\

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