Ask Question
5 December, 02: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

+1
Answers (1)
  1. 5 December, 02:39
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers