home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / wossa / w1demoq.nsd < prev    next >
Text File  |  1995-07-27  |  10KB  |  161 lines

  1. t02,2
  2. s01
  3. mult
  4. 1. Which type of thread synchronization is used when a program wants only one thread at a time to access a section of code?
  5. a. semaphore
  6. b. mutex
  7. c. critical section
  8. d. event
  9. b
  10. Choice b is correct. Event synchronization revolves around blocking a thread until a certain set of conditions is met. A semaphore allows only a specified number of threads to access a particular resource or code section. A critical section can only be used by threads within the same process. From p. 12 of "Stepping Up to 32 Bits" in the August 1994 Microsoft Systems Journal, available in the MSDN Development Library.
  11. t02,5
  12. s02
  13. mult
  14. 2. In a Windows NT process, which thread's termination causes a process to no longer exist?
  15. a. the primary thread
  16. b. the initial thread
  17. c. the last thread executing
  18. d. the semaphore thread
  19. c
  20. Choice c is correct. In Windows NT, a process remains active until all of its threads terminate. Readings p. 88, from Chapter One of "Advanced Windows NT," by Jeffrey Richter.
  21. t03,6
  22. s03
  23. mult
  24. 3. Which of the following are not used to handle user requests in an event-driven operating system?
  25. a. list boxes
  26. b. property changes
  27. c. event loops
  28. d. slider controls
  29. c
  30. Choice c is correct. In Windows, the operating system is constantly checking for messages from controls such as push buttons and list boxes. Event loops are used in other operating systems such as MS-DOS to handle user requests. Readings pp. 79-82, from "Introduction to Windows Programming for MS-DOS Programmers."
  31. t04,7
  32. s04
  33. mult
  34. 4. What are the primary functions used to load and unload DLLs?
  35. a. InitDLL and KillDLL
  36. b. LoadDLL and UnloadDLL
  37. c. InitLibrary and KillLibrary
  38. d. LoadLibrary and FreeLibrary
  39. d
  40. Choice d is correct. LoadLibrary and FreeLibrary are used to load and unload DLLs. Readings p. 113, from Chapter Seven of "Advanced Windows NT" by Jeffrey Richter.
  41. t04,8
  42. s05
  43. mult
  44. 5. What are the priority classes available for a process?
  45. a. lowest, below normal, normal, above normal, highest
  46. b. high, normal, idle, real-time
  47. c. 1 through 5
  48. d. 1 through 10
  49. b
  50. Choice b is correct. Although the real-time priority class is a special class, there are no more than four priority classes available to processes. The default is normal. The high priority class should be used with extreme caution, while the real-time class can actually prevent the operating system from running. Analog to digital is a possible example of real-time priority processing. Readings p. 93, from Part 3 of the Programmer's Reference in the Win32 SDK for Windows NT.
  51. t01,10
  52. s06
  53. mult
  54. 6. Which statement best characterizes symmetric multiprocessor operating systems?
  55. a. Symmetric multiprocessing systems allow the operating system to run on any free processor or on all processors simultaneously.
  56. b. Symmetric multiprocessing systems typically select one processor to execute operating system code while other processors run user jobs.
  57. c. On Windows NT, operating system code cannot be preempted when a higher priority thread needs attention.
  58. d. A single process cannot allow different parts of its program to run on different processors.
  59. a
  60. Choice a is correct. Through the use of threads on Windows NT, operating system code can be preempted when a higher priority thread needs attention. The exception is the Executive or Kernel code. Threads allow one process to execute different parts of its program on different processors at the same time. Readings p. 95, from Chapters 1 and 2 of "Inside Windows NT" by Helen Custer.
  61. t01,13
  62. s07
  63. mult
  64. 7. What does the Object Manager do when an object is created?
  65. a. assigns a handle
  66. b. provides a moniker
  67. c. assigns a memory page
  68. d. creates a process
  69. a
  70. Choice a is correct. The object manager creates all object handles. When all handles to an object are closed, the object manager deletes the object. Readings pp. 121-122, from Chapter One of the Resource Guide in the Windows NT Resource Kit.
  71. t03,14
  72. s08
  73. mult
  74. 8. How does Windows 95 identify and resolve hardware conflicts for Plug and Play devices?
  75. a. by using the Virtual Memory Manager
  76. b. by reading the USER.DAT file
  77. c. by using resource configuration information in the registry
  78. d. by using the Device Manager
  79. c
  80. Choice c is correct. The registry is used to manage an extensive store of data about the system and its users. The Virtual memory manager is not nearly as relevant to hardware conflict management as is the registry. The USER.DAT registry file holds user information, while the SYSTEM.DAT file holds hardware information. The Device Manager is a user tool and is not used by the system per se. Readings p. 124, from Part 3 of the Programmer's Reference in the Win32 SDK, available in the MSDN Developer's Library.
  81. t03,15
  82. s09
  83. mult
  84. 9. How does the Win32 API handle hardware errors?
  85. a. by using guarded memory paging
  86. b. by using termination handling
  87. c. by using structured exception handling
  88. d. by using structured error records
  89. c
  90. Choice c is correct. In Win32, structured exception handling is used for both software and hardware errors. Readings pp. 116-117, from the Win32 Programmer's Reference of the Win32 SDK.
  91. t04,21
  92. s10
  93. multmult
  94. 10. Which of the following are true of Task Help?
  95. a. Task-oriented Help topics are organized and displayed in a primary window. The user can size this window like any other primary window.
  96. b. Task-oriented Help information should not include any buttons or controls to provide the user with shortcuts or automation of tasks, since the user usually wants to learn how to do the task himself.
  97. c. Unlike the Help Browser, a Task Help window does not include any command buttons at the top.
  98. d. Task Help windows should have the "always on top" property set.
  99. ad
  100. Only choices a and d are correct. Task-oriented Help information can include a "do it" button to provide the user with shortcuts or automation of tasks. A set of command buttons at the top of the window provides the user access to the Content and Index pages of the Help Topics Browser, the previously selected topic, and a menu of options, including copying and printing a topic. Readings pp. 73-74, from Chapter 2 of the October 1994 "Windows 95 User Interface Design Guide."
  101. t01,22
  102. s11
  103. mult
  104. 11. In a non-preemptive multitasking environment, when does an active process give control back to the operating system?
  105. a. whenever a thread with a higher priority is activated
  106. b. whenever a PeekMessage function is called by the application
  107. c. whenever the time slice for the thread expires
  108. d. whenever the time slice for the process expires 
  109. b
  110. Choice b is correct. Developers of applications for non-preemptive operating systems often use the PeekMessage function to allow other applications access to the operating system. Without this or some other mechanism, applications in non-preemptive environments execute their code or threads until they complete. Thread priority and time slices are not used as described above in non-preemptive operating system environments. Readings pp. 82-84, from Chapter 6 of "Advanced Windows NT" by Jeffrey Richter.
  111. t03,23
  112. s12
  113. multmult
  114. 12. Which of the following are features of Windows 95?
  115. a. portability to non-Intel platforms
  116. b. scaleability to symmetric multiprocessors
  117. c. file merge/reconciliation
  118. d. Multimedia, Compression, Video for Windows
  119. cd
  120. Only choices c and d are correct. Windows 95 supports Multimedia, Compression, Video for Windows, and File merge/reconciliation, but is not portable to non-Intel platforms and is not scaleable to symmetric multiprocessors. For a complete comparison of Windows 95 and Windows NT features, see the table in the Readings book pp. 8-15, from "Why Have Two Desktop Operating Systems?" available in the MSDN Development Library under Technical Articles, Windows (32-bit) Articles, Development Environment Articles. Also from MSDN Development Library under Backgrounders and White Papers, Operating Systems.
  121. t03,26
  122. s13
  123. mult
  124. 13. How is OLE structured storage implemented?
  125. a. A storage object can contain streams, but not other storage objects.
  126. b. A storage object can contain both streams and other storage objects.
  127. c. A stream object is the highest level in the OLE storage system.
  128. d. A storage object is analogous to a file within a directory.
  129. b
  130. Choice b is correct. In OLE structured storage, a storage object can contain both streams and other storage objects. A storage object is the highest level in the system, and a stream object is below it. A storage object is analogous to a directory, while a stream object is analogous to a file within a directory. Readings p. 148, from MSDN OLE Documents: Technical Backgrounder.
  131. t03,34
  132. s14
  133. multmult
  134. 14. For which of the following would one use an OLE type library?
  135. a. object access
  136. b. Object Browser display
  137. c. type checking for properties and methods
  138. d. linking
  139. abc
  140. Only choices a, b, and c are correct. The type library is not required for linking. Because the type library is an OLE Automation mechanism, one could use it for object access, Object Browser display and type checking of properties and methods. Readings p. 198, from MSDN News, Volume 2, July 1993, Number 4.
  141. t03,41
  142. s15
  143. mult
  144. 15. You double-click on an OLE 1.0 object from within an OLE 2.0 document that supports in-place editing. What will happen?
  145. a. an OLE 1.0 editing window will be activated
  146. b. an OLE 2.0 editing window will be activated
  147. c. an error will occur
  148. d. you will have complete OLE 2.0 editing functionality
  149. a
  150. Choice a is correct. OLE 2.0 supports OLE 1.0 features, but OLE 1.0 does not support all OLE 2.0 features. Under OLE 1.0, the typical behavior when double-clicking on an object was for the source application to open with the destination object loaded for editing. From "Object Linking and Embedding 2.0 Technical Backgrounder" in the MSDN Library.
  151. t03,54
  152. s16
  153. mult
  154. 16. How should OCX properties be edited?
  155. a. using the Control Panel
  156. b. using a Type Library
  157. c. using the registry
  158. d. using a Property Page
  159. d
  160. Choice d is correct. A property page is an OCX's user interface. An OCX can have as many properties as necessary, and can have any number of properties set from a single page. From "Shifting Gears from VBX to OCX" by John Marsh - Visual Basic Programmer's Journal, June/July 1994 - available in the MSDN Development Library.
  161.