Icct College Foundation

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

ICCT COLLEGE FOUNDATION

V.V. Soliven Ave. II. Cainta Rizal

Midterm Examination in Comso03

I. Multiple Choice: Choose the best answer on the following selection. Use your test booklet to
answer

1. arrays that can be dimensioned and re-dimensioned as par the need of the program
a. Array c. Multi-Dimensional Array
b. Dynamic Array d. Jagged Array
2. This also known as array of arrays
a. Array c. Multi-Dimensional Array
b. Dynamic Array d. Jagged Array
3. helps to preserve the data in an existing array, when you resize it
a. Arrayname c. Preserve
b. Subscripts d. Array
4. This is also known as rectangular arrays
a. Dynamic Array c. jagged array
b. Multi- Dimensional Array d. Array
5. Gets a 32-bit integer that represents the total number of elements in all the dimensions
of the Array.
a. Long Length c. Length
b. Rank d. FixedSize
6. Gets a value indicating whether the Array is read-only.
a. ReadOnly c. IsOnlyRead
b. IsReadOnly d. OnlyRead
7. Gets the number of dimensions of the Array.
a. Long Length c. Length
b. Rank d. FixedSize
8. Gets a value indicating whether the Array has a fixed size.
a. IsSizeFixed c. IsFixedSize
b. FixedSize d. IsSharedOnly
9. the name of the array to re-dimension of an array
a. arrayname c. preserve
b. reDim d. subscripts
10. specifies the new dimension of an array
a. preserve c. subscripts
b. arrayname d. Redim

II. Identification: Choose the answer on the pool of words below

1. Returns a string that represents the current object


2. Sets a value to the element at the specified position in the one-dimensional Array.
3. Searches for the specified object and returns the index of the first occurrence within the
entire one-dimensional Array
4. Gets the value at the specified position in the one-dimensional Array.
5. Gets the Type of the current instance
6. Gets the lower bound of the specified dimension in the Array
7. Gets a 32-bit integer that represents the number of elements in the specified dimension
of the Array.
8. Copies all the elements of the current one-dimensional Array to the specified one
dimensional Array starting at the specified destination Array index
9. Copies a range of elements from an Array starting at the first element and pastes them
into another Array starting at the first element
10. Sets a range of elements in the Array to zero, to false, or to null, depending on the
element type.
11. Sorts the elements in an entire one-dimensional Array using the IComparable
implementation of each element of the Array
12. Reverses the sequence of the elements in the entire one-dimensional Array
13. Gets the upper bound of the specified dimension in the Array.
14. Gets a 64-bit integer that represents the number of elements in the specified dimension
of the Array
15. declares elements to be accessible either from derived classes or from within the same
project, or both
16. declares elements to be accessible only from within the same class, or from a class
derived from this class
17. declares elements to be accessible from within the same project, but not from outside
the project
18. declares elements to be accessible from anywhere within the same project, from other
projects that reference the project, and from an assembly built from the project
19. declares elements to be accessible only from within the same module, class, or structure
20. Bonus

Sub Clear Sub Copy CopyTo


GetValue GetLength GetLowerBound
Protected Friend Protected Private
GetType As IndexOf SetValue
GetLongLength GetUpperBound Reverse
Sort GetDimensions Overridable
Public

III. Give the following vb.net codes that is asking for (3 points)

1. code shows declaring a jagged array named scores of Integers:


2. 2-dimensional array of strings
3. Syntax for ReDim statement

Prepared by:
Raymond A. Ramirez, MIT(Cand.)
Instructor

You might also like