Ruby - Escape Sequences Flashcards

1
Q

\

A

Backslash ()

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

\’

A

Single-quote (‘)

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

\”

A

Double-quote (“)

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

\a

A

ASCII bell (BEL)

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

\b

A

ASCII backspace (BS)

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

\f

A

ASCII formfeed (FF)

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

\n

A

ASCII linefeed (LF)

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

\r

A

ASCII Carriage Return (CR)

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

\t

A

ASCII Horizontal Tab (TAB)

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

\ uxxxx

A

Character with 16-bit hex value xxxx (Unicode only)

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

\v

A

ASCII vertical tab (VT)

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

\ooo

A

Character with octal value ooo

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

\xhh

A

Character with hex value hh

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