Exam 9: Introduction to Arrays

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

A matrix is an example of a one-dimensional array.

(True/False)
4.8/5
(25)

What is the value of LIST(5)after the instructions corresponding to the following pseudocode are executed? POS=1\mathrm { 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.8/5
(33)

Using the term SCORE(I),which of the following items represents the subscripted variable name?

(Multiple Choice)
4.9/5
(34)

DAY is a seven-member one-dimensional array.Its contents are shown as follows: Surday Monday Tuesday Wedrasday Thursday Friday Saturday What is the content of DAY(7)?

(Multiple Choice)
4.8/5
(39)

In row-processing logic,all members of the first row of an array are accessed first.

(True/False)
4.8/5
(40)

Most programming languages store and process data groups in column-major order.

(True/False)
4.9/5
(42)

A variable name can be used as both a subscript and a counter in the same program.

(True/False)
5.0/5
(30)

DAY is a seven-member one-dimensional array.Its contents are shown as follows: Surday Monday Tuesday Wedrasday Thursday Friday Saturday Which item below can be used to refer to the location containing "Friday"?

(Multiple Choice)
4.8/5
(41)

The number of elements in a two-dimensional array can be computed by adding the number of rows and the number of columns.

(True/False)
4.8/5
(37)

Nested loops are often used in algorithms that process multi-dimensional arrays.

(True/False)
4.8/5
(37)
Showing 21 - 30 of 30
close modal

Filters

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