True or False question 1. When creating a numeric array with an initialization l
ID: 3910757 • Letter: T
Question
True or False question
1. When creating a numeric array with an initialization list, you must set the initial value of all of the elements in the list.
2. You can use the assignment (=) operator to copy data from one array structure to another in a single statement.
3. The starting data values for the elements of an array can be set with an initialization list.
4. C++ allows you to create an array variable without specifying its size.
5. It is helpful to think of a two-dimensional array as having rows and columns.
6. When creating a multidimensional array, you need to specify at least two size declarators.
7. If you want to print out all the elements of a two-dimensional array you would use nested for loops.
Explanation / Answer
we dont need set all the initial values, if we dont specify all the values than remaining values will be default to 0' s
ex: int a[10]={1,2,3};
than remaining 7 locations will be default to 0's
Answer2: False
using assignment = operator we can't copy the data of one array into another array in single statement, we need iterate through the all elements
Answer 3: True
The starting data values for the elements of an array can be set with an initialization list.
Yes we can intilize array elements with list
Answer 4:True
we can create without giving the size of the array using the initialization list
ex: int a[]={1,2,3};
Answer 5:True,
Yes the data in the 2D arrays are stored in the form of rows and cols, so its good think in that way to understand
Answer 6: True
you must specify row and col size while declaring the 2D array
Answer 7: True
Yes we need to use nested loops because 2D array stores elements in the form rows and cols
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.