46. To fill the client area of the window displayed on screen on should trap the
a) OnCreate ( )
b) OnCreateClient ( )
c) OnRun ( )
d) OnPaint ( )
47. CSingleLock utility class is used for thread synchronisation
a) For more than two threads accessing the same data
b) For two threads accessing two sets of different data
c) For multiple documents
d) None of the above
48. DeleteContents ( ) is a member function of
a) CMyDocument
b) CWinThread
c) CDocument
d) CWinApp
49. Which function in the View is first called when the View is attached to the Document.
a) OnUpdate ( )
b) UpdateAllViews ( )
c) OnInitialUpdate ( )
d) OnNewDocument ( )
50. One must pass the ________ parameter to the function UpdateAllViews ( ) in order to send notification
for all the views to be updated
a) 1
b) NULL
c) this
d) None of the above.
51. Attach ( ) is a function which takes in a ________ parameter
a) Pointer to the object
b) Pointer to the Device context
c) Handle to a Window
d) None of the Above.
52. One should normally create an object of the CPaintDC only in
a) OnDraw ( )
b) OnCreate ( )
c) PreCreateWindow ( )
d) OnPaint ( )
e) None of the above.
53. The OnCreate ( ) member function of the CFrameWnd calls __________ function of the same class to
create the view
a) OnCreateView ( )
b) OnCreateControl ( )
c) OnCreateApplication ( )
d) OnCreateClient ( )
e) b & c.
54. SetModified ( ) is a member function of the class
a) CPropertySheet
b) CDialog
c) CPropertyPage
d) None of the above.
55. UpdateData ( TRUE ) is used to transfer the values from
a) Control to variable
b) variable to control
c) variable to View
d) b & c
e) None of the above
56. In order to terminate an appliction from the OnCreate ( ) member function, one must return
|