COMPUTER SOFTWARE
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
|
|
|
|
˙
|
|
None of the above
|
Detailed explanation-1: -LF (character : , Unicode : U+000A, ASCII : 10, hex : 0x0a): This is simply the ‘’ character which we all know from our early programming days. This character is commonly known as the ‘Line Feed’ or ‘Newline Character’.
Detailed explanation-2: -What is exactly? The newline character ( ) is called an escape sequence, and it forces the cursor to change its position to the beginning of the next line on the screen. This results in a new line. Examples of other valid escape sequences are: Escape Sequence.
Detailed explanation-3: -Adding Newline Characters in a String Operating systems have special characters denoting the start of a new line. For example, in Linux a new line is denoted by “”, also called a Line Feed. In Windows, a new line is denoted using “˚”, sometimes called a Carriage Return and Line Feed, or CRLF.
Detailed explanation-4: -So r"” is a two-character string containing ‘ánd ‘n’, while “” is a one-character string containing a newline. Usually patterns will be expressed in Python code using this raw string notation.
Detailed explanation-5: -is the line feed character. On both *nix and Windows systems it should create 2 lines. The˚ is the carriage return, it moves the writing instrument to the beginning of the line.