Arrays and Vectors Quiz

Arrays and Vectors Quiz

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

L.5. PHP FUNCTION  AND ARRAY - 2

L.5. PHP FUNCTION AND ARRAY - 2

12th Grade

10 Qs

CodeHS 5.6 The List Interface

CodeHS 5.6 The List Interface

9th - 12th Grade

10 Qs

Ap computer science a

Ap computer science a

1st - 12th Grade

15 Qs

SUMATIF 1 ANALISIS DATA

SUMATIF 1 ANALISIS DATA

8th Grade - University

16 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

ARRAYS

ARRAYS

11th - 12th Grade

10 Qs

ArrayList

ArrayList

10th - 12th Grade

11 Qs

Array

Array

10th Grade

10 Qs

Arrays and Vectors Quiz

Arrays and Vectors Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

John Miller

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image
cat is found at index 0 and tiger is found at index 2
cat is found at index 1 and tiger is found at index 3
cat is found at index 0 and tiger is found at index 3
cat is found at index 1 and tiger is found at index 2

2.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image
I only
II only
I and II only
I and III only

3.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

If the size of an array is 9, the valid indices range from:
0 - 9
1 - 9
0 - 8
What is an indices?

4.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Which of the following is the correct way to construct an array that holds 5 decimals?
int array[5];
string array[5];
double array[5];
char array[5];

5.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image
What value will be outputted by the following statement?
9
1
92
11

6.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image
Assume that the array num has been defined as an array and initialized with 5 int values. What is the purpose of the following code segment?
It increments variable count if the index is even and the contents at that index is even.
It increments variable count if the index is odd and the contents at that index is even.
It increments variable count if the index is even and the contents at that index is odd.
It increments variable count if the index is odd and the contents at that index is odd.

7.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image
What are the contents of array myArray after the following code segment executes?
5 10 15 20
1 1 1 1
1 2 3 4
1 10 15 20

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?