Select a data definition statement that creates an array of 500 signed doublewords named myList and initializes each array element to the value ?1.

a. SDWORD myList 500 DUP (-1)

b. myList 500 SDWORD DUP (-1)

c. myList 500 SDWORD (-1)

d. myList SDWORD 500 DUP (-1)

Respuesta :

Answer:

The answer is "Option b".

Explanation:

In the given question there is a miss typing problem, in this question at the last line there we use "value -1 ?"  

In the question, it is defined that an array "myList" declares that includes 500 signed double words. To define this type of data first array name is used than the size of the array then the function that is "SDWORD and DUP" which defines its values, in this question except option b all are wrong that can be described as follows:

  • In option a, It is correct because for define any array firstly we use array name.
  • In option c, It is not correct because this does not use both functions.
  • In option d, In this code after array name, the function is used first that's incorrect.