C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

10 câu kiểu xâu tiết 1

10 câu kiểu xâu tiết 1

11th Grade

10 Qs

LENGUAJE C

LENGUAJE C

11th Grade

13 Qs

แบบฝึกหัดทบทวนบทเรียน โครงสร้างภาษาซี

แบบฝึกหัดทบทวนบทเรียน โครงสร้างภาษาซี

12th Grade

12 Qs

K10-BAI4-9

K10-BAI4-9

10th - 12th Grade

10 Qs

Mid-Tern Exam's Review

Mid-Tern Exam's Review

8th Grade

15 Qs

Kiểm Tra : Điện Trở - Tụ Điện - Cuộn Cảm (CN12)

Kiểm Tra : Điện Trở - Tụ Điện - Cuộn Cảm (CN12)

12th Grade

10 Qs

Tốc độ phản ứng và CBHH

Tốc độ phản ứng và CBHH

10th - 12th Grade

14 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

C++ Arrays

C++ Arrays

Assessment

Quiz

Science, Computers

8th - 12th Grade

Practice Problem

Medium

Created by

Natalia Fumero

Used 542+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?