Ask Question

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. 25 August, 04:34
    0
    (A) myArray BYTE 10, 20, 30

    Explanation:

    The general syntax of array declaration in assembly is given by

    Array_Name TYPE value1, value2, ...

    where type can be BYTE, WORD, DWORD, QWORD, REAL4 etc

    where values can be in decimal, binary, or hexadecimal

    Example:

    Let us define an array of type unsigned byte and named myArray containing decimal values of 10, 20, and 30.

    myArray BYTE 10, 20, 30

    Hence only option A is the valid data definition.
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