Question: 1. Which can declare and initialize an empty array of char type named c that will have up to 5 elements in C++? A.


1. Which can declare and initialize an empty array of char type named "c" that will have up to 5 elements in C++? A. char[] c = new char(5); B. char c[5] = new char(); C. char c[5] = {}; D. char[] = {}; E. char[5] c = {}; 2. Given the following array, which represents 4? int n[] = {1, 2, 3, 4, 5 }; A. n[0] B. n[1] C. n[2] D. n[3] E. n[4] 3. Given the following array, what is the output? int n[] = { 1, 2, 3, 4, 5 }; cout < < n[2] + n[3] < < endl; A. 2+3 B. 5 C. 3+4 D. 7 E. n[2] + [3] 4. Given the following table that defines the values of elements of a two-dimensional array, which can return the value "Chem"? A. subject[1][1] B. subject[0][2] C. subject[2][2] D. subject[0][1] E. subject[1][0] element of array "subject" 0 Biol Math row\col 0 1 1 Musi Chem 2 Phys Mant 5. Given the following table that defines the values of elements of a two-dimensional array, which can declare and initialize the array? C++Proming A string subject]-new string[2][3 B. string subject[2][3]-(1: C. string[2][3] subject- (1: D. string subject[1][2]-{}: E. string[12] subject-1): row.col 0 6. In C++, what does a pointer object store? A. The value stored in a variable B. The data type of a variable. C. The memory address of a variable. D. The total bytes a variable occupies E. The identifier of a variable. 147 d-17.2561 pd dz A, null B. 43.21 C. 17.256 D. &d E, a value similar to 0061F75C B. 7 D. S E.4 7. Given the following code segment, what is the value of pd? double pd mullptri. double d 43.21 O Biol Math A.S B.4 C.3 D. 2 E. I 8. Given the following code segment, the output is 3 MINI 9. Given the following code segment, the output is int arr151 (5, 4, 3, 2, 1 12 int ptr sare[2] cout
Step by Step Solution
3.49 Rating (156 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below Answer 1 choic... View full answer
Get step-by-step solutions from verified subject matter experts
