Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) str1 = str2.
B) str1 == str2.
C) strcmp(str1, str2) .
D) str1.compare(str2) .
E) None of the above
Correct Answer
verified
Multiple Choice
A) istringstream istr("10") ; int x; istr >> x;
B) ostringstream ostr("10") ; int x; ostr >> x;
C) int x = stoi("10") ;
D) int x = str("10") :
E) None of the above
Correct Answer
verified
Multiple Choice
A) the boolean value false.
B) the boolean value True.
C) a negative integer.
D) a nonnegative integer.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) two string class objects.
B) two pointers to char.
C) three pointers.
D) three arrays and one pointer.
E) None of the above
Correct Answer
verified
Multiple Choice
A) conversion to integers followed by addition.
B) concatenation of two strings.
C) calculation of the sum of the integer ASCII codes that comprise the characters in the string.
D) calculation of the sum of the lengths of two strings.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) the string object str1 precedes the string str 2 in alphabetic order.
B) the string str1 converted to numeric form is less than the string str2 converted to numeric form.
C) the length of the string str1 is less than the length of the string str2.
D) the C-string "str1" precedes the C-string "str2" in alphabetic order.
E) None of the above
Correct Answer
verified
Multiple Choice
A) c_string(string s)
B) c_str(string s)
C) c_str()
D) c_string()
E) None of the above
Correct Answer
verified
Multiple Choice
A) str1 = str2.
B) str1 == str2.
C) strcmp(str1, str2) == 0.
D) str1.compare(str2) .
E) None of the above
Correct Answer
verified
Multiple Choice
A) str1[0] = str2[0].
B) str1[0] == str2[0].
C) strcmp(str1[0], str2[0]) .
D) 'str1[0]' == 'str2[0]'.
E) None of the above
Correct Answer
verified
Multiple Choice
A) use the ostringstream class.
B) use the strtodouble function.
C) use the doubletoa function.
D) use the doublestringstream class.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) length()
B) length(string s)
C) capacity()
D) capacity(string s)
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) sets the variable x to point to the last character in the C-string s.
B) computes the length of the C-string s into the variable x.
C) sets the variable x to the ASCII code of the last character in the C-string s.
D) sets the value of the variable x to 0.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Showing 1 - 20 of 40
Related Exams