
Arrays in c++

Quiz
•
Computers
•
1st - 10th Grade
•
Medium
L L
Used 6+ times
FREE Resource
28 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
To access an array element, use the array name and the element's ___________.
data type
subscript
value
name
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The name of an array stores the __________ of the first array element.
value
memory address
element number
data type
4.
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]
5.
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
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.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Python Class 9

Quiz
•
9th - 10th Grade
26 questions
Информатика 8 клас - типове данни

Quiz
•
8th Grade
27 questions
SQL_kartkowka

Quiz
•
1st Grade - University
30 questions
javascript basic Soparkids

Quiz
•
7th - 8th Grade
23 questions
Python Quiz

Quiz
•
6th - 9th Grade
32 questions
G24-25 Q3 Test Review

Quiz
•
10th Grade
25 questions
Library Classes

Quiz
•
10th Grade
30 questions
N5 Computer Science

Quiz
•
9th Grade
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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade