Arrays and Vectors Quiz

Arrays and Vectors Quiz

12th Grade

12 Qs

quiz-placeholder

Similar activities

pandas

pandas

9th Grade - University

8 Qs

APCSA Unit 6 Review Arrays

APCSA Unit 6 Review Arrays

9th - 12th Grade

17 Qs

Hash Tables

Hash Tables

12th Grade

11 Qs

Understanding Insertion Sort Algorithm

Understanding Insertion Sort Algorithm

12th Grade

10 Qs

JavaScript String Methods

JavaScript String Methods

12th Grade - Professional Development

15 Qs

Test on Series

Test on Series

11th - 12th Grade

12 Qs

Linked Lists in Visual Basic

Linked Lists in Visual Basic

12th Grade

15 Qs

Array

Array

10th - 12th Grade

15 Qs

Arrays and Vectors Quiz

Arrays and Vectors Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

John Miller

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 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

2 mins • 3 pts

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

3.

MULTIPLE CHOICE QUESTION

2 mins • 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

2 mins • 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

2 mins • 3 pts

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

6.

MULTIPLE CHOICE QUESTION

2 mins • 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

2 mins • 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?