1.

String class have a concat() function that is used to _____________________(a) Replace old string by new string(b) Add two strings(c) Append one string at end of another string(d) Remove a string from end of one stringI have been asked this question during an online exam.Origin of the question is String Class topic in division Inbuilt Classes of Object Oriented Programming

Answer» RIGHT choice is (c) Append one string at end of another string

The explanation is: The CONCAT FUNCTION is USED to append string into another string. The new string is always appended at the end of source string. The target string is appended as it is and the whole string is then ended by null CHARACTER.


Discussion

No Comment Found

Related InterviewSolutions