Arrays And Strings In C Plus Plus - Study Mode
[#1] Which constant member functions does not modify the string?
Correct Answer
(A) bool empty()
[#2] What is the index number of the last element of an array with 9 elements?
Correct Answer
(B) 8
[#3] Which header file is used to manipulate the string?
Correct Answer
(C) string
[#4] How do you access the third element of an array named 'arr' in C++?
Correct Answer
(C) arr[2]
[#5] What is the purpose of the 'strlen()' function in C++?
Correct Answer
(C) Returns the length of a null-terminated string