
C++ Arrays Quiz

Quiz
•
Science
•
9th - 12th Grade
•
Medium
Fidaa Abed
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in C++?
A collection of variables with different types
A class with multiple constructors
A variable that can store multiple values of the same type
A type of loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following declaration do? int tests[5];
Creates 6 integer variables
Allocates memory for 5 integers
Creates 5 functions
Declares 5 arrays
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the subscript of the first element in an array?
1
-1
0
Depends on the compiler
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How much memory does int tests[5]; use if each int takes 4 bytes?
5 bytes
10 bytes
20 bytes
25 bytes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement accesses the third element in int tests[5];?
tests(2)
tests[3]
tests[2]
tests.3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is true about the size declarator in an array?
It must be a float
It specifies the number of characters
It shows how many elements the array can hold
It cannot be a constant
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid array declaration using a constant?
const int SIZE = 5; int data(SIZE);
int SIZE = 5; data[SIZE];
const int SIZE = 5; int data[SIZE];
int data[];
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Metric Prefixes

Quiz
•
9th Grade - University
10 questions
THỰC HÀNH SỐ 1

Quiz
•
12th Grade
10 questions
The Nature of Force

Quiz
•
7th - 9th Grade
15 questions
Introduction to Data Analysis Quiz

Quiz
•
12th Grade - University
10 questions
nuclear new Mexico trivia game

Quiz
•
10th Grade
15 questions
Fitness Testing

Quiz
•
12th Grade
15 questions
Einstein: His Interesting Life

Quiz
•
9th Grade
15 questions
Большое Повторение C#

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
16 questions
Metric Conversions

Quiz
•
11th Grade
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
17 questions
Enzymes

Quiz
•
9th Grade
10 questions
Exploring the Basics of Density

Interactive video
•
6th - 10th Grade
25 questions
Life Science Unit 1 Review

Quiz
•
7th - 9th Grade
10 questions
Kinetic and Potential Energy Explained

Interactive video
•
6th - 10th Grade
10 questions
The Evolution of Atomic Theory

Interactive video
•
6th - 10th Grade