C++ Arrays Quiz

C++ Arrays Quiz

12th Grade

7 Qs

quiz-placeholder

Similar activities

AP Computer Science College Board Test

AP Computer Science College Board Test

12th Grade

10 Qs

AP Computer Science A Classes

AP Computer Science A Classes

12th Grade

10 Qs

J277 - 2.2 - Use of Arrays up to 2D

J277 - 2.2 - Use of Arrays up to 2D

10th Grade - University

8 Qs

Array dan Implementasinya

Array dan Implementasinya

9th - 12th Grade

5 Qs

Unit 7 APCSA

Unit 7 APCSA

10th - 12th Grade

5 Qs

Quiz PF Topic 4 Array

Quiz PF Topic 4 Array

12th Grade

10 Qs

Java Quiz on Arrays

Java Quiz on Arrays

12th Grade

11 Qs

C++ References

C++ References

6th - 12th Grade

12 Qs

C++ Arrays Quiz

C++ Arrays Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Fidaa Abed

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++, what does the array name arr typically represent?

A) The first element of the array

B) The last element of the array

C) The memory address of the first element of the array

D) The total number of elements in the array

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are array elements in C++ indexed?

A) From 1 to the size of the array

B) From 0 to one less than the size of the array

C) From -1 to the size of the array minus two

D) Indexing is not supported in C++ arrays

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an array in C++?

A) A data structure that allows you to store multiple values under a single variable name

B) A function to perform mathematical operations

C) A feature for input and output operations

D) None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare an array in C++?

A) int arr[5];

B) int arr();

C) array arr[5];

D) int array 5;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int array arr[5] in C++, if an integer takes up 4 bytes?

A) 4 bytes

B) 20 bytes

C) 5 bytes

D) 9 bytes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about arrays in C++ is FALSE?

A) Arrays can store multiple values of the same type

B) Once an array is defined, its size can be changed

C) Array elements are stored in contiguous memory locations

D) The array index must be an integer type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the last element of an array named arr with 10 elements in C++?

A) arr[10];

B) arr[9];

C) arr[10] - 1;

D) arr;