
1-D Arrays in Visual Basic

Quiz
•
Computers
•
12th Grade
•
Hard

DEBORAH BLACKBURN
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a 1-D array of integers with 10 elements in Visual Basic?
`Dim arr(10) As Integer`
`Dim arr(9) As Integer`
`Dim arr(1 To 10) As Integer`
`Dim arr(0 To 9) As Integer`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to access the third element in a 1-D array named `numbers`?
`numbers(2)`
`numbers(3)`
`numbers[2]`
`numbers[3]`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you modify the fifth element of a 1-D array named `scores` to the value 95?
`scores(4) = 95`
`scores(5) = 95`
`scores[4] = 95`
`scores[5] = 95`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of elements in a newly declared 1-D array of integers in Visual Basic?
`1`
`0`
`null`
`undefined`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a 1-D array of strings with 5 elements in Visual Basic?
`Dim arr(5) As String`
`Dim arr(4) As String`
`Dim arr(0 To 4) As String`
`Dim arr(1 To 5) As String`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly assigns the value "Hello" to the first element of a 1-D array named `greetings`?
`greetings(0) = "Hello"`
`greetings(1) = "Hello"`
`greetings[0] = "Hello"`
`greetings[1] = "Hello"`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you have a 1-D array `arr` declared as `Dim arr(4) As Integer`, what is the index of the last element?
`3`
`4`
`5`
`6`
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Unit 6

Quiz
•
12th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
10 questions
Arrays

Quiz
•
11th Grade - University
15 questions
JS Talks, Quiz #5

Quiz
•
1st - 12th Grade
5 questions
AP CSA Intro to ArrayList (7.1)

Quiz
•
10th - 12th Grade
10 questions
Quiz Javascript Basic Pertemuan 3

Quiz
•
9th - 12th Grade
5 questions
2 D Arrays

Quiz
•
12th Grade
15 questions
Python study group: Week 3

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade