What is the escape sequence for carriage return?
A. '\c'
B. '\r'
C. '\b'
D. '\z'
Answer: Option B
Solution (By Examveda Team)
This question asks about a special code used in MySQL to represent a carriage return.A carriage return is like pressing the "Enter" key on your keyboard. It moves the cursor to the beginning of the next line.
Let's look at the options:
Option A: 'c' - This is not the escape sequence for carriage return.
Option B: 'r' - This is the correct answer! 'r' represents a carriage return in MySQL.
Option C: 'b' - This escape sequence represents a backspace, not a carriage return.
Option D: 'z' - This escape sequence represents the end of a string in MySQL, not a carriage return.
So the answer is Option B: 'r'

Join The Discussion