C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Java 1D Arrays

Java 1D Arrays

9th Grade - University

14 Qs

AP Computer Science A

AP Computer Science A

12th Grade

10 Qs

A/P Computer Science

A/P Computer Science

12th Grade

10 Qs

Unit 10 AP CSA

Unit 10 AP CSA

12th Grade

10 Qs

AP CSA Array List

AP CSA Array List

10th Grade

11 Qs

Arrays Intro

Arrays Intro

9th - 12th Grade

12 Qs

c++ ARRAYS QUESTIONS

c++ ARRAYS QUESTIONS

9th - 12th Grade

7 Qs

Lecture 4.4 Part 2

Lecture 4.4 Part 2

12th Grade

11 Qs

C++ Arrays

C++ Arrays

Assessment

Quiz

Science, Computers

8th - 12th Grade

Medium

Created by

Natalia Fumero

Used 423+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Unlike regular variables, __________ can hold multiple values.

constants

named constants

arrays

floats

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

In an array, every element has the same
data type
subscript
memory location
all of the above

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Unlike regular variables, __________ can hold multiple values.

constants

named constants

arrays

floats

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the last legal subscript that can be used with the following array?

int values[5];

0

5

6

4

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Given the following declaration, where is the value 77 stored in the scores array?

int scores[] = {83, 62, 77, 97, 86}

scores[0]

scores[1]

scores[2]

scores[3]

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

To pass an array as an argument to a function, pass the __________ of the array.

contents

size, expressed as an integer

name

value of the first element

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will the following code display?

int numbers[5] = {99, 87, 66, 55, 101};

for (int i = 1; i < 4; i++)

cout << numbers[i] << " ";

99 87 66 55 101

87 66 55 101

87 66 55

Nothing. This code has an error.

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?