(Solved) : 61 Delete Dynamically Allocated Array P Points Use Statement Delete P T F 62 Binary Search Q38187898 . . .
61. To delete the dynamically allocated array, to which‘p’
points, use the statement
delete [] p;
T__ F__
62. The binary search is more efficient than the linearsearch
because the values in the array are not required to be inorder,
sorted.
T__ F__
63. Which statement correctly declares and initializes a C-string?
a. string array[ 13 ] = Chapter nine;
b. char array[]{“Chapter nine”};
c. int array[ 8 ] = “Chapter nine”;
d. char array = ‘Chapter nine’;
e. None of the above
64. The following code-segment displays 4:
char dog[]{“Fido”};
cout << strlen(dog) << endl;
T__ F__
65. The following code-segment is syntactically incorrect:
char string[]{“Stop”};
if (isupper(string) == “STOP”)
cout << “true”;
T__ F__
66. The following code-segment is syntactically correct:
int numeric;
char x[]{“123”};
numeric = itoa(x);
T__ F__
67. The following statement is syntactically correct:
const char * bird {“wren”};
T__ F__
68. The following code-segment is accepted by compiler:
char x{‘a’}, y{‘a’};
if (strcmp(x,y) == 0)
cout << “true”;
T__ F__
69. The number of characters seen in the following array:
char sample[]{“This is a test.”};
a. Can be determined with strlen(sample)
b. Can be determined with sizeof(sample)
c. All of the above
d. None of the above
70. The following code-segment is legal for C-strings:
char str1[30]{“Many hands”};
char str2[]{” make light work”};
str1 += str2;
T__ F__
Expert Answer
Answer to 61 Delete Dynamically Allocated Array P Points Use Statement Delete P T F 62 Binary Search Q38187898 . . .
OR