C++ Arrays and Average Calculator Quiz

C++ Arrays and Average Calculator Quiz

Assessment

Interactive Video

Computers

9th - 10th Grade

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

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?