MTEL Digital Literacy and Computer Science

Category - Digital Lit and CS

For which of the following purposes is the concatenation operator + used?
  1. Adding two decimal numbers.
  2. Changing a single-digit integer into a single character.
  3. Rounding a decimal number to the nearest whole number.
  4. Joining two strings to make a larger string.
Explanation
Correct Response: D. Two strings of characters can be concatenated using the + operator. A is incorrect because two decimal numbers are added together, not concatenated. B is incorrect because changing a single-digit integer into a character is not a concatenation operation. C is incorrect because rounding is not a concatenation operation.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz