Ask Question
10 May, 11:34

Which of the following are valid data definition statements that create an array of unsigned bytes containing decimal 10, 20, and 30, named myArray.

a. myArray BYTE 10, 20, 30

b. BYTE myArray 10, 20, 30

c. BYTE myArray[3]: 10, 20,30

d. myArray BYTE DUP (3) 10,20,30

+2
Answers (1)
  1. 10 May, 12:44
    0
    The answer is "Option a".

    Explanation:

    In the question it is defined, that an array "myArray" is defined, which contain the decimal 10, 20 and 30 unsigned bytes, and to assign these value first name of array is used, then the bytes keyword is used after then values, and other options were wrong that can be described as follows:

    In option b and option c, The byte keyword firstly used, which is illegal, that's why it is wrong. In option d, In this code, DUP is used, which is not defined in question, that's why it is wrong.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following are valid data definition statements that create an array of unsigned bytes containing decimal 10, 20, and 30, named ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers