Search Header Logo

[20224] CSC301 Quick Exercise 7-1

Authored by ZALIKHA ZULKIFLI

Computers

University

Used 5+ times

[20224] CSC301 Quick Exercise 7-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?