Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The EQU directiv 20 e permits a constant to be redefined at any point in a progr

ID: 3593526 • Letter: T

Question

The EQU directiv 20 e permits a constant to be redefined at any point in a program. True O False 21. Use a TEXTEQU expression to refine " PROC" as" PROCEDURE" 22. Use TEXTEQU to create a symbol named Sample for a string constant, and then use the symbol when defining a string variable named Mystring 23. Declare a symbolic constant named COUNT that equals 25. Which of the following (choose ALL that are correct, or None of the Above) are valid data definition statements that create an array of unsigned bytes containing decimal 10, 20, and 30, named myArray 24 myArray BYTE 10, 20, 30 | BYTE myArra -Tr yArray-BYTE. DUP3710,20,30 O None of the Above Which of the following defines a text macro named MESSAGE that contains this string data? "I'm good at this!",0 25 MESSAGE TEXTEQU"T'm good at this!0 0 MESSAGE

Explanation / Answer

20. False

EQU is used to define and name constants like a numeric value or text expression. These constant values cannot be changed or redefined in the program. This is similar to #define in c.

21.

proc TEXTEQU <"procedure">

22.

(declaring sample)

Sample TEXTEQU <"THIS IS SAMPLE">

(Using sample)

MyString BYTE Sample

value of string constant Sample is assigned to MyString

23.

COUNT EQU 25

(COUNT acquires the value 25 and it is constant)

24. A

syntax of using BYTE is myarrname BYTE 10,20,..

so A is correct. B,C are obviously wrong.

Dup(vector,element) duplicates the vector element at the specified element index

Dup(3) is wrong

25. A

Message acquires the value of string specified

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote