C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

B Words GCSE Computer Science

B Words GCSE Computer Science

1st - 10th Grade

15 Qs

Les variables sous Python

Les variables sous Python

10th - 12th Grade

10 Qs

Lets us Explore Classification of elements

Lets us Explore Classification of elements

10th - 11th Grade

12 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Trắc nghiệm vui: Ô nhiễm không khí

Trắc nghiệm vui: Ô nhiễm không khí

KG - Professional Development

10 Qs

Examen final algoritmo

Examen final algoritmo

11th Grade

12 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?