Question: What are the two different ways of specifying the length of an array?
Instructor answer: In the array declaration, or by using an initializer list.

Student answer: int n[10]; //array of 10 integers<br>and<br>int n[arraySize] //where arraySize is some positive integer defined by the user
Score (0-5): 4

Student answer: by either inputing the different elements in the array at coding or giving the array specifacations as to the size of the array. it is also possible when giving it specifacations to tell the array to grow as needed.
Score (0-5): 4

Student answer: You can initialize and array by using an initializer list in its declaration or by initializing its size with a constant variable.
Score (0-5): 5

Student answer: Pass the length along with the array or use a vector.
Score (0-5): 3

Student answer: One way is to declare a size of the array using a variable that is equal to an integer. The other way, if the size is omitted in the declaration, the compiler determines the size of the array based on the size of the initializer list.
Score (0-5): 5

Student answer: In the declaration (int array [x]) or with an initilizer (int array[]={0,1,2,etc.}
Score (0-5): 5

Student answer: 1. Declare the length of the array (int array[10];)<br>2. Initialize the array (int array[] = {0, 1, 2, 3}; //compiler will assume size of 4)
Score (0-5): 5

Student answer: statically and dynamically
Score (0-5): 2.5

Student answer: Explicitly int array[10];<br>or by variable<br>const int size = 10;<br>int array[size];
Score (0-5): 4

Student answer: Array lengths can be explicitly specified by inputing the number of elements between the brackets [ ] during declaration, or implicitly by including an initializer list WITHOUT specifying a number between [ ], the compiler will automatically declare the array with the proper number of elements needed for the list.
Score (0-5): 5

Student answer: Specify an array’s size with a constant variable.<br>And setting array elements with calculations.<br>
Score (0-5): 3.5

Student answer: statically, using {} and dynamically, using []
Score (0-5): 4

Student answer: define it as array[5] or array[1,2,3,4,5]
Score (0-5): 4.5

Student answer: Static and dynamic.
Score (0-5): 2.5

Student answer: manually inside the brackets or automatically via an initializer list
Score (0-5): 5

Student answer: You can use an initializer list, or simply tell the compiler how many elements you want in the array.<br><br>For an Initializer list: <br>int a[] = {10, 2, 3, -4, 5};<br><br>For an elemental declaration:<br>int b[5];<br><br>Both arrays have 5 elements in them, but array a is already initialized.
Score (0-5): 5

Student answer: In a string you can specify with the strlen(arrayname) command. This gets the length of the string. Another way is with integers where you initiate the size from the start, ex array[40] specifying a possible length of up to 40. Then it is passed by an object the actual ammout in the array. Another way is to declare it in an initializing program.
Score (0-5): 4.5

Student answer: Implicit, namely when you give it values, like {1,2,3,4,5,6,7,8,9}, at which the compiler will automatically give this a size.<br>Static, during the declaration.<br>
Score (0-5): 5

Student answer: Supply an integer inside the brackets<br>or the compiler counts the number of elements in the initializer list.<br>int n[5];<br>int n[] = { 1,2,3,4,5 }
Score (0-5): 5

Student answer: either initializing the array with a specific length or initializing an array while declaring its contents.
Score (0-5): 5

Student answer: within the brackets or by using an initializer list.
Score (0-5): 5

Student answer: specify the number of elements in the array declaration with a constant or using a constant variable for future scalability
Score (0-5): 4

Student answer: with a number and with a variable
Score (0-5): 3

Student answer: explicitly, by declaring it in brackets (i.e. int array[50];) and implicitly, by initializing several values (i.e. int array[] = {1, 2, 3};)
Score (0-5): 5

Student answer: one way of specifying of array is A[10] ;<br>other way of specifying array is a[arraysize] = [1,2,3,4,5,6,7,8,9,10}
Score (0-5): 4.5

Student answer: 1-Initializing an array in a declaration with an initializer list<br>2-Specifying an array’s size with a constant variable
Score (0-5): 5

Student answer: Initializing the size in the brackets: int a[100];<br>Initializing the length by assigning variables: int a[] = {1,2,3};
Score (0-5): 5

Student answer: user defined value or by the number of elements in initializer list
Score (0-5): 5

Student answer: you can assign the size of it inside the brackets when you declare the array [3], or you can have it set by how many items you set the array equal to {1,2,3}
Score (0-5): 5

Student answer: use an arraylist, or have your program ask the array how many elements it has. As an obj it it should have member length that is the number of slots it has.
Score (0-5): 4