Which is the correct declaration statements for the following array:
intEmpNums, an array of 100 integers
[20224] CSC301 Quick Exercise 7-1
Quiz
•
Computers
•
University
•
Medium
ZALIKHA ZULKIFLI
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct declaration statements for the following array:
intEmpNums, an array of 100 integers
Dim intEmpNums (100) As Integer
Dim intEmpNums (99) As Integer
Dim intEmpNums () As Integer
Dim intEmpNums As Integer (99)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
All of the values stored within an array are called _________.
Boxes
Elements
Subvariables
Intersections
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following identifies a specific element within an array?
Element specifier
Determinator
Locator
Subscript
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the lower subscript of an array?
1
{ }
0
-1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declares a five-element one-dimensional array?
Dim intSold (4) As Integer
Dim intSold (5) As Integer = {4, 78, 65, 23, 2}
Dim intSold () As Integer = {4, 78, 65, 23, 2}
Both a and c.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The strItems array is declared as follows: Dim strItems(20) As String. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses will process the loop instructions for each element in the array?
Do While intSub > 20
Do While intSub < 20
Do While intSub >= 20
Do While intSub <= 20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. The statement intSales(2) += 10 will _____________________.
replace the 900 amount with 10
replace the 900 amount with 910
replace the 12000 amount with 10
replace the 12000 amount with 12010
11 questions
Array
Quiz
•
University
10 questions
Java Arrays
Quiz
•
University
10 questions
Array in C
Quiz
•
University
15 questions
Python Basics
Quiz
•
KG - University
10 questions
exception
Quiz
•
University
10 questions
Bahasa Pemrograman Python
Quiz
•
University
10 questions
Introduction to Arrays
Quiz
•
KG - University
14 questions
Data Structure
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade