Week11chapter10 - aPoly.points array to X=1 Y=2...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 11 Chapter 10 Questions Fill in the Blanks and Short Answer 1. Define a structure named ThreeInts containing three unsigned doublewords named field1 , field2 , and field3 . The fields should be uninitialized. 2. 3. Using the ThreeInts structure from the previous question, declare a variable named first of type ThreeInts : 4. 5. Using the ThreeInts structure from the previous question, write a statement that assigns the value 10h to field1 : 6. 7. Using the ThreeInts structure from the previous question, write a statement that creates a variable named pThree that contains the offset of ThreeInts . 8. Short Programming Problems Example 1 POINT STRUCT X WORD ? Y WORD ? POINT ENDS POLY STRUCT points POINT 10 DUP(<>) numPoints WORD ? POLY ENDS 9. Using Example 1, declare a variable named aPoint of type POINT that initializes X to 10 and Y to 20: 10. Using Example 1, declare a variable named aPoly of type POLY that uses default structure values. 11. 12. Using Example 1, set the first element of the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: aPoly.points array to X=1, Y=2. Multiple-Choice (Each of the following questions has only one correct answer.) 13. What data definitions will be created by the following directives? FOR colorVal,<red,green,blue,turquoise,purple,orange> BYTE "&colorVal",0 ENDM a. six strings, each equal to "&colorVal", followed by a null byte. b. six null-terminated strings, each containing the name of a different color c. six variables, each having a label whose name is a color d. this statement will cause a syntax error 14. Which of the following statements permits assembly if the symbol Win32 has been defined? a. IF Win32 == 1 b. IF DEFINED Win32 c. IFDEF Win32 d. IFNDEF Win32 15. Which of the following statements permits assembly if arg1 is exactly the same as arg2 ? (Assume that a case-senstitive comparison is used.) a. IFEQUAL <arg1>,<arg2> b. IFIDN <arg1>,<arg2> c. IF arg1 EQ arg2 d. IFEQ arg1,arg2...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

Week11chapter10 - aPoly.points array to X=1 Y=2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online