CS311 C++

Review for Second Quiz

  1. What event does the EN_CHANGE event of an edit box detect?

  2. What does the MakeUpper function of the CString class do?

  3. How do you store a string in an object of the CString class? (proper syntax)

  4. What is the difference between UpdateData(TRUE) and UpdateData(FALSE)?

  5. What is an OCX file?

  6. Where should OCX files be stored if your version of Windows is:
    1. 3.11
    2. 95
    3. 98
    4. NT

  7. What method had to be used in class to get to the ActiveX Control Test Container?

  8. Where do you tell the interface that a screen should have Max and Min controls?

  9. What would the resulting byte be if this comparison is made:
    11100011 & 00100001

  10. What condition/state does the constant MK_LBUTTON represent?

  11. Specify the decimal values for RGB settings for "pure" versions of these colors:
    1. black
    2. white
    3. red
    4. yellow

  12. The Draw program was revised to contain a function called OnLButtonDown(). Why does the program only call this function when the author wants it called (not continuously)?

  13. In the MyKey project, why does the program always report that the key being pressed was pressed for one repetition?

  14. What is the method for coding a Hot Key into a menu choice?

  15. Assume you do not have access to Visual C++. Is it still possible to create a Windows application in C++ code?

  16. Assume you are creating a C++ menu. You see two menu choices and a blank rectangle to their right on the menu bar. What do you do to see if there are menu choices already created for the first menu?

  17. When designing a menu, what happens if you double click on a menu choice?

  18. In Chapter 5, the author introduced the itoa() function. What are the three arguments this function expects?

  19. In Appendix C, the author discusses concepts he touches on in Chapter 5, having to do with derived classes.
    1. What is a base class?
    2. What is a derived class?
    3. What would be a reason to create a derived class?

  20. In Chapter 5, we also met the DoModal() function. What does it mean for a screen/window to be modal?

  21. What event is triggered when a menu item is selected, regardless of the purpose of the menu item?

  22. What are the four icons that can appear in the preprogrammed dialog boxes?

  23. What are the four preconfigured button combinations that can appear in preprogrammed dialog boxes?

  24. What is the return value type of the MessageBox() function?

  25. Does the MessageBox() function behave like an overloaded function? Justify your answer with examples.