
Array
Computers
University
Used 552+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
_________________ is a collection of elements used to store the same type of data.
Array
Switch
Case
Loop
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is returned by values[5]?
9
12
6
8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the array:
float stats[3];
What is the range of the index?
0 to 3
0 to 2
1 to 3
0 to 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int nums[ ] =
{2, 3, 5, 8, 9, 11};
How would you access the fourth element in nums
nums[4]
nums[3]
nums(4)
nums(3)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for(int i=0; i<10; i++)
numbers[i] = 2 * i + 1;
// Which index of the array holds the value of 5?
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the error in the following code fragment?
float average [20];
average[20] = 15.25;
A cast is required
data not initialized
A two-dimensional array is required
Array Out-of-bounds error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
________________________ are used to create a multi dimensional array.
Single round brackets
Single square brackets
Multiple squares brackets
Single angled brackets
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?