Array

Array

University

12 Qs

quiz-placeholder

Similar activities

Single Array

Single Array

9th Grade - University

14 Qs

Topic 7-1: Array 1D

Topic 7-1: Array 1D

University

9 Qs

science day competition (computer science)

science day competition (computer science)

University

10 Qs

Java Arrays

Java Arrays

University

10 Qs

Week 2 : ArrayList

Week 2 : ArrayList

University

15 Qs

Arrays

Arrays

3rd Grade - University

10 Qs

ARRAYS AND FUNCTIONS

ARRAYS AND FUNCTIONS

University

15 Qs

Introduction to NumPy (easy)

Introduction to NumPy (easy)

University

10 Qs

Array

Array

Assessment

Quiz

Computers

University

Hard

Used 550+ times

FREE Resource

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

Media Image
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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?