Exam 9: Introduction to Arrays

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The position of an item in an array is specified using a

Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
Verified

C

Given the term MONTH(I),I is the subscripted variable name.

Free
(True/False)
4.9/5
(42)
Correct Answer:
Verified

False

The DIM statement defines the maximum size of an array and is executed at the beginning of the program.

Free
(True/False)
4.8/5
(42)
Correct Answer:
Verified

False

Tables are not widely used in problem solving.

(True/False)
4.8/5
(41)

Given the term GRID(ROW,COLUMN),GRID is the array name.

(True/False)
4.8/5
(38)

DAY is a seven-member one-dimensional array.Its contents are shown as follows: Surday Monday Tuesday Wedrasday Thursday Friday Saturday What is the subscripted variable name that should be used to refer to the location containing Tuesday?

(Multiple Choice)
4.8/5
(42)

Using the term SCORE(I),which reference below represents the subscript?

(Multiple Choice)
5.0/5
(43)

A dimension statement is used to define the

(Multiple Choice)
4.9/5
(39)

The Rth value in the one-dimensional array GRADE is referred to by GRADE(R).

(True/False)
4.7/5
(31)

What is the value of POS after the instructions corresponding to the following pseudocode are executed? POS=1\operatorname { POS } = 1 DOWHILE POS <10< 10 LIST(POS)=POS+3\operatorname { LIST } ( \mathrm { POS } ) = \operatorname { POS } + 3 POS=POS+2\mathrm { POS } = \mathrm { POS } + 2 ENDDO

(Multiple Choice)
4.7/5
(36)

What is the value of LIST(4)after the instructions corresponding to the following pseudocode are executed? POS=1\operatorname { POS } = 1 DOWHILE POS <10< 10 LIST(POS)=POS+3\operatorname { LIST } ( \mathrm { POS } ) = \mathrm { POS } + 3 POS=POS+2\operatorname { POS } = \mathrm { POS } + 2 ENDDO

(Multiple Choice)
4.7/5
(34)

Using the term SCORE(I),which item below represents the array name?

(Multiple Choice)
4.8/5
(35)

A single-level table is the same as a one-dimensional array.

(True/False)
5.0/5
(31)

An example of a simple variable is POS.

(True/False)
5.0/5
(39)

What is the value of GRID(5,4)after the instructions corresponding to the following pseudocode are executed? R = 1 DOWHILE R<5\mathrm { R } < 5 C = 2 DOWHILE C<5\mathrm { C } < 5 GRID R , C = R + C \\ C = C + 1 ENDDO R = R + 2 ENDDO

(Multiple Choice)
4.9/5
(36)

In row-major order,the first subscript varies the most rapidly.

(True/False)
4.9/5
(37)

A subscript can have more than one value at a time.

(True/False)
4.9/5
(31)

Select the subscripted variable name that should be used to refer to the Mth position of the array named N.

(Multiple Choice)
4.8/5
(40)

What is the value of GRID(3,1)after the instructions corresponding to the following pseudocode are executed? R = 1 DOWHILE R<5\mathrm { R } < 5 C = 2 DOWHILE C<5\mathrm { C } < 5 GRID R , C = R + C \\ C = C + 1 ENDDO R = R + 2 ENDDO

(Multiple Choice)
4.8/5
(40)

What is the value of GRID(3,3)after the instructions corresponding to the following pseudocode are executed? R = 1 DOWHILE R<5\mathrm { R } < 5 C = 2 DOWHILE C<5\mathrm { C } < 5 GRID R , C = R + C \\ C = C + 1 ENDDO R = R + 2 ENDDO

(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 30
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)