1. CFile directly supports the following type of input/output
a) Buffered
b) Unbuffered
c) Both buffered and unbuffered
d) None of above
2. File input/output in text mode can be done using
a) CFile
b) CStdioFile
c) CMemFile
d) CArchive
3. Which resource can be present only once in an MFC application
a) Accelerator Table
b) Menu
c) Icon
d) String table
4. CRuntimeClass is a
a) Structure
b) Union
c) Class
d) Macro
5. An application’s EXE in debug target will be _____ than release target
a) Smaller
b) Bigger
c) Same size
d) Depends upon the application
6. In document/view architecture which object translates mouse and keyboard messages
a) CWinApp
b) CFrameWnd
c) The class you derive from CFrameWnd
d) CView
7. Which of the following class is not derived form CObject
a) CCmdTarget
b) CRuntimeClass
c) CWinApp
d) CView
8. What is the return value from AfxMessageBox when it is dismissed?
a) 0
b) Any negative value
c) Any positive value
d) Value corresponding to the ID of the button clicked by user
9. Arrange the following in order they are searched when a DLL is loaded memory:
A) Process current directory
B) Directory containing Exe
C) Windows Directory
D) Windows system directory
a) C, D, A, B
b) A, C, B, D
c) B, A, C, D
d) B, A, D, C
10. InitInstance is a member of which class.
a) CWinThread
b) CWinApp
c) CWnd
d) CObject
11. In an MDI application how many menu resources are there?
a) At least One
b) At least Two
c) At the most One
d) At the most Two
12. Which type of dialog box overlaps all other windows, including that of other applications when
displayed?
a) System modal
b) Modal
c) Modeless
13. You override OnInitDialog() in the your class derived from Cdialog then when should you call the base
class OnInitDialog() inside your version?
a) As the first statement
b) As the last statement
c) Anywhere
d) You don’t have to call it
14. A class derived directly from which of the following would not be able to receive command messages
a) CObject
b) CCmdTarget
c) CWnd
d) CDocument
15. For the purpose of constructing a modeless dialog box you use following constructor
a) CDialog( LPCTSTR , CWnd* = NULL);
b) CDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL);
c) CDialog();
d) Any of the above can be used.
|