61. If we have two panes in a static splitter window, housing two views of a document, then change in
the document data automatically changes the two views. (False. (We need to do it using
CDocument::UpdateAllViews))
62. SDI supports only one document type. (True)
63. In a document/view architecture the application object is created dynamically. (True)
64. The drag and drop support is provide through the function RegisterShellFileTypes (). (True)
65. You can call AddDocTemplete multiple times in an SDI. (False)
66. Both Windows and MFC treat UI and worker threads differently. (False. (Windows makes no
distinction between these threads))
67. Both UI and worker threads have message loops. (False. (Only UI threads))
68. Two or more threads may have same thread function. (True)
69. A thread function is a callback function. (True)
70. AfxBeginThread can create only worker threads. (False)
71. Critical Sections can be used for synchronization within same or different process.
(False. (Only within same process.))
72. Events can be used for synchronization within same or different process. (True)
73. When a priority is specified for a thread it is relative to all other threads in the operating system.
(False. (Only relative to the threads in the same process))
74. Bitmaps can be selected in any device context. (False. (Only memory device context.))
75. When a memory device context is first created its size can be anything. (False. (Size of one
monochrome pixel.))
76. A file that is dynamically linked ca0n have any extension. (True)
77. Global variables in a dll are same for all the processes that are linked to that dll. (False. (Private to
each process.))
78. DlllMain () is called only once in the lifetime of a dll. (False. (Four times.))
79. In static linking the object code of the library does not becomes part of the executable but in
dynamic linking it does. (False. (Vice-versa))
80. Every dll must contain a DllMain () provided by the user. (False. (The framework provides a
dummy DllMain () if u don’t provide one.))
81. An extension dll can’ t be use by visual basic clients. (True)
82. It is necessary that a dll used by the client program must either be present in the client program’ s
directory or in the Windows’ system directory. (False. (Can also be present in directory
specified by ‘path’ environment variable or current directory.))
83. Every time you make a change to dll you have to recompile the applications using the dll.(False.
(Only if you have made changes to prototypes of exported functions.))
84. CFile class directly supports both binary and text input and output. (False. (Only binary I/O is
directly supported. Its derived classes are used for text I/O.))
85. Same CArchive object is used for both storing and loading an object during serialization
throughout the application lifetime. (False. (Each time a new object is created.))
86. The CScrollView class does not support scrolling from the keyboard by default. (True)
87. Every MFC application that has a UI must have a class derived from CView. (False. (Dialog based
application don’t have to.))
88. When loading DLL windows searches the directory defined in the path environment variable before
it searches the current directory. (False. (At the end.))
89. Dialog box messages are not passed to the main window of application. (True)
90. A tool bar is also a window that is child of the window hosts it. (True)
91. The repeat count parameter for a key-up message can never be anything but one. (True)
92. Operating system gives higher priority to UI threads as compared to worker threads. (False (O.S
makes no distinction between UI and Worker threads. The programmer decides the priority
if required. ))
93. Toolbars can also contain items that do not appear in menu. (True)
94. Toolbars cannot have Texts. (False)
95. “It important to forward non-client area and system keyboard messages to base class if you process
them”. (True)
|