Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which of the following statements about initializing an array is false? a. Initi

ID: 3854784 • Letter: W

Question

Which of the following statements about initializing an array is false? a. Initializer values are enclosed between braces ({, }) b. Initializer values must be separated by commas. c. Data can be stored in a variable-length array when it is declared. d. It is a compiler error to specify more values than there are elements in the array e. If the number of values provided is fewer than the number of elements, the are filed with zeros. Which of the following array initialization statements is valid? a. int ary{5} = {1 2 3 4 5}: b. int ary {5} = {1, 2, 3, 4, 5}: c. int ary [5] = {1 2 3 4 5}: d. int ary[5] = {1, 2, 3}. e. int ary [5[= [1 3 4 5 6] Which of the following statements about assigning values to arrays is false? a. We can assign values to individual elements in a fixed-length array b. An expression value can be assigned to an array element. c. When the array values follow a pattern, we can use a loop to assign values d. Given two arrays of the same type and size, one array can be assigned to the other e. Exchanging values in an hanging values in an array requires the use of a temporary hold area. The sort in which the smallest element from the unsorted sublist is swapped with the element at the beginning of the unsorted sublist is called: a. bubble sort b. selection sort c. insertion sort d. merge sort e. binary sort The sort in which the smallest value from the unsorted list becomes the last element in the sorted sublist is called a. bubble sort b. selection sort c. insertion sort d. merge sort e. binary sort

Explanation / Answer

15 D
16 D

other array are with
int ary{5} this bracket are not valid
and int ary[5]={1 2 3 4 5} no comma provided in element
so int ary[5]={1,2,3}; is valid we can give element less than given size but not more than size

17 B
an expression value can be assign to array is invalid
18 C

19 b

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote