State which of the following statements are true and which are false. If a statement is false, explain why.
1) Concatenation of string objects can be performed with the addition assignment operator, +=.
2) Characters within a string begin at index 0.
3) The assignment operator, =, copies a string.
4) A C-style string is a string object.
1) True.
2) True.
3) True.
4) False. A string is an object that provides many different services. A C-style string does not provide any services. C-style strings are null terminated; strings are not necessarily null terminated. C-style strings are pointers and strings are objects.
You might also like to view...
How would you represent negative numbers in bytes?
Do a search on the web for “negative numbers” and see what you find.
You can apply all sorts of affects to a picture, like a pencil sketch, an oil painting, or glowing edges, all with just one click on the ____________________ gallery.
Fill in the blank(s) with the appropriate word(s).
Answer the following statement(s) true (T) or false (F)
In the United States, there’s no state or national licensing body for digital forensics examiners.
If the variable named GRADE has a value of 95, which of the following statements will cause the line 95 is above average to be output?
a) Write “GRADE is above average” b) Write GRADE is above average c) Write GRADE, “is above average” d) Write “GRADE, is above average”