
Arrays in Programming

Quiz
•
Other
•
11th Grade
•
Medium
Evans Jeremiah
Used 2+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array?
A single variable that holds only one value
A special function in programming
A data structure that holds multiple values of the same type
A text formatting tool
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in most programming languages?
0
1
-1
100
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In QBASIC, how is an array declared?
ARRAY scores(5)
NEW scores[5]
DIM scores(5)
scores = ARRAY(5)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid array name?
1array
array-name
arr_1
array@123
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a value to the third element of an array named scores in QBASIC?
scores[3] = 90
scores(3) = 90
scores = 90(3)
SET scores(3) = 90
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a one-dimensional array?
A table with rows and columns
A single row of data
A list with multiple types of values
A loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using arrays in programming?
To slow down programs
To reduce memory
To store multiple values efficiently
To create functions
Create a free account and access millions of resources
Similar Resources on Wayground
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 Other
10 questions
Video Games

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

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University