Contents

What symbol is used for null character in string?
a) null 
b) \0                
c) /0     
d) all of these

b

Commonly used String Functions


How many common functions used in C++ string?
a) three            
b) four
c) five 
d) six

d

Explanation: Strcat (), copy (), strcpy (), find (), length (), swap ()



Combining two strings into a single string is called….
a) concatenation         
b) copying string
c) adding string
d) all of these

a

Which of the following is the correct format for concatenating string?
a) stecat (str1, str2);
b) strcat (str1, str2);
c) str (str1, str2)
d) none of these

b

Which function is used to copy one string to another string?
a) Strcat ()                   
b) copy ()
c) strcpy ()                   
d) find ()

b