Search Header Logo
C++ Arrays and Average Calculator Quiz

C++ Arrays and Average Calculator Quiz

Assessment

Interactive Video

Computers

9th - 10th Grade

Practice Problem

Hard

Created by

Jennifer Brown

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main topic covered in this tutorial?

Pointers in C++

Arrays in C++

Classes in C++

Functions in C++

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an array in C++?

A class with multiple methods

A single value variable

A variable that contains multiple values

A function that returns multiple values

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare an array in C++?

int[5] array;

int array[5];

array int[5];

array[5] int;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to output array values in C++?

print

cout

printf

output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in an array?

0

1

3

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the average calculator in this tutorial?

To calculate the average of grades

To sort the array in ascending order

To find the maximum value in an array

To calculate the sum of numbers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used for the grades in the average calculator?

bool

char

float

string

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?