Strings


  1. Which method do we use to append more than one character at a time?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    data


  1. Which is an instantiation of the basic_string class template?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The string class is an instantiation of the basic_string class template.



  1. Which character is used to terminate the string?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    A string of characters is stored in successive elements of a character array are terminated by the NULL character.


  1. How does the strings are stored in the memory?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The characters of a string are stored contiguously in the memory.



  1. Where are the strings stored?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Both Stack & Heap