C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

HTML Öğreniyorum!

HTML Öğreniyorum!

8th Grade

10 Qs

TQ - Review Quiz Week 1

TQ - Review Quiz Week 1

9th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Parcial 2 - Robótica

Parcial 2 - Robótica

11th Grade

10 Qs

C++ Arrays

C++ Arrays

Assessment

Quiz

Science, Computers

8th - 12th Grade

Practice Problem

Medium

Created by

Natalia Fumero

Used 541+ 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?