Question 1
The base class of CPaintDC class is
- CClientDC
- CWindowDC
- CDC
- CObject
Question 2
A CPaintDC object can only be used when responding to which of the following message?
- WM_SIZE
- WM_CREATE
- WM_COMMAND
- WM_PAINT
Question 3
Which function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars.
- GetDC
- BeginPaint
- GetWindowDC
- All of the above
Question 4
RegisterClass function takes a pointer to the following structure?
- MSG
- WNDCLASS
- PAINTSTRUCT
- WNDCLASSEX
Question 5
Which class performs a CWnd::BeginPaint at construction time and CWnd::EndPaint at destruction time.
- CPaintDC
- CClientDC
- CDC
- CMetaFileDC
Question 6
Which data members are defined in CWinApp class?
- m_nCmdShow, m_hInstance
- m_pszAppName
- m_pActiveWnd, m_pszExeName
- All of the above
Question 7
Which member function can we override in an application to provide a customized message loop?
- InitInstance
- Run
- ExitInstance
- OnIdle
Question 8
What is the initial value of nCmdShow of AfxWinMain?
- SW_SHOW
- SW_NORMAL
- SW_SHOWMAXIMIZED
- It depends on the operating system.
Question 9
Which function displays a floating pop-up menu at the specified location?
- CreatePopupMenu
- TrackPopupMenu
- GetSubMenu
- FloatMenu
Question 10
Which function clears all the contents of the list box or combo box?
- DeleteAll
- ClearAll
- ResetContent
- DeleteItems
Question 11
Which function of edit control allows you to set the password character?
- SetPassword
- SetPasswordItem
- SetPasswordChars
- SetPasswordChar
Question 12
Which function retrieves the check state of a button control?
- GetState
- GetCheck
- GetButtonCheck
- GetValue
Question 13
Which scrollbar function allows you to set the page size?
- SetScrollRange
- SetRange
- SetPageSize
- SetScrollInfo
Question 14
Which member function of CProgressCtrl advances the current position by the step increment?
- SetStep
- MoveIt
- StepIt
- UpdateIt
Question 15
The base class of CDocument is?
- CCmdTarget
- CObject
- CWinThread
- None of the above
Question 16
Which function sets a flag indicating that you have modified the document since it was last saved?
- SetModified
- IsModified
- SetModifiedFlag
- UpdateData
Question 17
Which functions returns the document associated with the view?
- GetViewDocument
- GetDocument
- GetDocuments
- GetCurDocument
Question 18
Which of the following statement is wrong?
- One document can have multiple views
- One view can have multiple documents
- In SDI the main frame window is derived from class CFrameWnd
- In MDI the main frame window is derived from class CMDIFrameWnd
Question 19
What is the base class of CFileDialog?
- CDialog
- CWnd
- CCommonDialog
- CCommonDlg
Question 20
Which member function returns the full path of the selected file of CFileDialog?
- GetPathName
- GetFileName
- GetPathFileName
- GetFullPath
Answers
Answer 1 - C
Answer 2 - D
Answer 3 - C
Answer 4 - B
Answer 5 - A
Answer 6 - D
Answer 7 - B
Answer 8 - D
Answer 9 - B
Answer 10 - C
Answer 11 - D
Answer 12 - B
Answer 13 - D
Answer 14 - C
Answer 15 - A
Answer 16 - C
Answer 17 - B
Answer 18 - B
Answer 19 - C
Answer 20 - A
No comments:
Post a Comment