COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
text
|
|
numbers
|
|
input
|
|
None of the above
|
Detailed explanation-1: -In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. The latter may allow its elements to be mutated and the length changed, or it may be fixed (after creation).
Detailed explanation-2: -In Java, a string is a sequence of characters. For example, “hello” is a string containing a sequence of characters ‘h’, ‘e’, ‘l’, ‘l’, and ‘o’ .
Detailed explanation-3: -Strings are called “strings” because they are made up of a sequence, or string, of characters.
Detailed explanation-4: -Strings are used for storing text/characters. For example, “Hello World” is a string of characters.
Detailed explanation-5: -In C programming, a string is a sequence of characters terminated with a null character . For example: char c[] = “c string"; When the compiler encounters a sequence of characters enclosed in the double quotation marks, it appends a null character at the end by default.