Question: Question 1 (1 point) If your index used to access the indexed variables of the array has the value of a non-existent index, this is
Question 1 (1 point)

If your index used to access the indexed variables of the array has the value of a non-existent index, this is called _________
Question 1 options:
| illegal const | |
| domain error | |
| out of bounds | |
| segmentation fault | |
| memory leak | |
| buffer overflow |
Save
Question 2 (1 point)

If you use the const modifier in a function declaration, you do not include it in the function definition.
Question 2 options:
| True | |
| False |
Save
Question 3 (1 point)

The computer remembers the address of which indexed variable(s) in an array? ______
Question 3 options:
| The center | |
| The first | |
| The memory location before the first | |
| The Last | |
| The memory location after the last |
Save
Question 4 (1 point)

Question 4 options:
Indexes are numbered starting at _________
Save
Question 5 (1 point)

The locations of the various indexed variables in an array can be spread out all over the memory.
Question 5 options:
| True | |
| False |
Save
Question 6 (1 point)

What is wrong with the following code? float scores[10], total;
Question 6 options:
| Cannot declare regular and array variables together. | |
| Arrays must be integers | |
| The 10 should be replaced with a variable name, whose value is input from the user | |
| Nothing. |
Save
Question 7 (1 point)

The following array declaration is legal double scores[4]={0.1,0.2,0.3};
Question 7 options:
| True | |
| False |
Save
Question 8 (1 point)

The modifier that guarantees that an array argument will not be changed is called ______.
Question 8 options:
| range | |
| permanent | |
| const | |
| domain | |
| index | |
| key | |
| value |
Save
Question 9 (1 point)

What are the valid indexes for the array shown below? int myArray[25];
Question 9 options:
| 0-25 | |
| 0-24 | |
| 1-25 | |
| 1-24 |
Save
Question 10 (1 point)

What is wrong with the following code fragment?
const int SIZE=5; float scores[SIZE]; for(int i=0; i { cout cin >> scores[i]; }
Question 10 options:
| Array indexes start at 1 not 0 | |
| Arrays must be integers | |
| Array indices must be less than the size of the array | |
| Should be cin >> scores[0]; |
Save
Question 11 (1 point)

When you have a function that expects an array, it should also expect the size of the array or the number of indexed variables with valid data.
Question 11 options:
| True | |
| False |
Save
Question 12 (1 point)

In the expression cout
Question 12 options:
| base | |
| key | |
| range | |
| delimiter | |
| index |
Save
Question 13 (1 point)

If you put a value in the square brackets of a one-dimension array parameter, this value is _________ by the compiler.
Question 13 options:
| used | |
| ignored |
Save
Question 14 (1 point)
![(1 point) What is wrong with the following code? float scores[10], total;](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f0db171d949_75966f0db170f960.jpg)
The following function will work with any size integer array. void function1(int array[], int numElements);
Question 14 options:
| True | |
| False |
Save
Question 15 (1 point)

Give the following declarations, which of the following is a legal call to this function? int myFunction(int myValue); int myArray[1000];
Question 15 options:
| cout | |
| cout | |
| myArray = myFunction(myArray); | |
| myArray[1] = myFunction(myArray[0]); | |
| A and B | |
| A and C | |
| B and D |
Save
Question 16 (1 point)

The following array declaration is legal double scores[]=(0.1,0.2,0.3);
Question 16 options:
| True | |
| False |
Save
Question 17 (1 point)

The following function declaration guarantees the values in the array argument are not changed in the function. void function1(int array[], int numElements);
Question 17 options:
| True | |
| False |
Save
Question 18 (1 point)
![The following array declaration is legal double scores[4]={0.1,0.2,0.3}; Question 7 options: True](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f0db1818f08_76066f0db180c5de.jpg)
Given an array named scores with 25 elements, what is the correct way to access the 25th element?
Question 18 options:
| scores+25 | |
| scores[24] | |
| scores[25] | |
| scores[last] |
Save
Question 19 (1 point)

In the expression cout
Question 19 options:
| base | |
| key | |
| range | |
| delimiter | |
| index |
Save
Question 20 (1 point)

The following array declaration is legal double scores[4]={0.1,0.2,0.3};
Question 20 options:
| True | |
| False |
Save
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
