[20224] CSC301 Quick Exercise 7-1

[20224] CSC301 Quick Exercise 7-1

University

10 Qs

quiz-placeholder

Similar activities

Java 1D Arrays

Java 1D Arrays

9th Grade - University

14 Qs

One Dimensional Array

One Dimensional Array

9th Grade - University

14 Qs

Java 1D Arrays

Java 1D Arrays

University

15 Qs

CSC301 Chapter 2

CSC301 Chapter 2

University

10 Qs

Data Structure

Data Structure

University

10 Qs

ArrayList Review

ArrayList Review

9th Grade - University

11 Qs

Array

Array

University

11 Qs

Data Structure

Data Structure

University

14 Qs

[20224] CSC301 Quick Exercise 7-1

[20224] CSC301 Quick Exercise 7-1

Assessment

Quiz

Computers

University

Medium

Created by

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?