Contents

What is the general syntax for copy function?
a) copy (string1, string2)          
b) str. copy (name, character, pointer)
c) str, copy (string1, string2)
d) none of these

b

Which function is used to find word or character in string?
a) Strcat ()                   
b) copy ()
c) strcpy ()                   
d) find ()

d

Which of the following function is used to find the length of string?
a) Strcat ()                   
b) copy ()
c) length ()                  
d) find ()

c

Which of the following function is used to swap the values of two strings?
a) swap ()                    
b) copy ()
c) length ()                   
d) find ()

a

Which of the following function duplicates a string?
a) strnset                                 
b) strstr
c) strdup                     
d) strcmp

c

 Which of the following is not a modifier function in string class?
a) operator +=()
b) operator [] ()
c) push( )                      
d) erase ()

b