Visual C++ - Set 1-1
Question 1
Document view architecture is not supported in
Which function of CView class is used to render an image of the document for screen display, printing, or print preview
Which member function is called by the framework before the OnDraw member function is called for screen display
Which message is sent when a pop-up menu is about to become active?
The return value of NULL from GetMenu indicates
In the following code, what is the significance of the second parameter
HMENU GetSubMenu(HMENU hMenu, int nPos);
Function TrackPopupMenu displays the menu at particular x and y postion. Is the position value?
Which macro converts an integer value to a resource type compatible with Windows resource-management functions?
Which function checks a thread message queue for a message?
Which function translates a WM_KEYDOWN message to a WM_COMMAND?
What style do we specify in CreateWindow function to create a window with a horizontal scroll bar and vertical scroll bar?
The signature of OnSize handler is as follows?
Which message is sent to the dialog box procedure immediately before a dialog box is displayed?
Which message is sent when a menu is about to become active?
Which class provides the scroll handling feature automatically in response to scroll-bar messages?
Which of the following statements is wrong?
Which functions allow you to write the data to the .ini file?
The parameter value of -1 in DoWaitCursor means what?
Which class allows you to implement standard string Find/Replace dialog boxes in your application?
Which member function do we call to create and display the FindReplace dialog box?
Answer 2 - B
Answer 3 - A
Answer 4 - C
Answer 5 - D
Answer 6 - A
Answer 7 - A
Answer 8 - D
Answer 9 - C
Answer 10 - D
Answer 11 - A
Answer 12 - D
Answer 13 - A
Answer 14 - A
Answer 15 - B
Answer 16 - D
Answer 17 - D
Answer 18 - C
Answer 19 - D
Answer 20 - C
Document view architecture is not supported in
- Dialog based Application
- Single Document Interface Application
- Multi Document Interface Application
- None of the above
Which function of CView class is used to render an image of the document for screen display, printing, or print preview
- OnPaint
- OnDraw
- OnUpdate
- OnInitialUpdate
Which member function is called by the framework before the OnDraw member function is called for screen display
- OnPrepareDC
- OnGetDC
- OnUpdateDC
- None of the above
Which message is sent when a pop-up menu is about to become active?
- WM_COMMAND
- WM_MESSAGE
- WM_INITMENUPOPUP
- WM_MENUACTIVE
The return value of NULL from GetMenu indicates
- The window is a child window
- The menu does not have any popup options
- The menu is a floating popup menu
- The specified window has no menu
In the following code, what is the significance of the second parameter
HMENU GetSubMenu(HMENU hMenu, int nPos);
- Specifies the zero-based relative position in the given menu of an item that activates a drop-down menu or submenu.
- Specifies the one-based relative position in the given menu of an item that activates a drop-down menu or submenu.
- Specifies the x coordinate of the menu display.
- None of the above.
Function TrackPopupMenu displays the menu at particular x and y postion. Is the position value?
- based on screen coordinates
- based on client area coordinates
- relative to mouse x and y positions
- None of the above
Which macro converts an integer value to a resource type compatible with Windows resource-management functions?
- CONVERTTOSTRING
- TOSTRING
- MAKERESOURCE
- MAKEINTRESOURCE
Which function checks a thread message queue for a message?
- CheckMessage
- CheckMessageQueue
- PeekMessage
- LookMessage
Which function translates a WM_KEYDOWN message to a WM_COMMAND?
- TranslateKey
- TranslateMessage
- TranslateKeyMessage
- TranslateAccelerator
What style do we specify in CreateWindow function to create a window with a horizontal scroll bar and vertical scroll bar?
- WS_HSCROLL | WS_VSCROLL
- CW_HSCROLL | CW_VSCROLL
- WS_BOTH_SCROLLS
- WS_SCROLLS
The signature of OnSize handler is as follows?
- afx_msg void OnSize ();
- afx_msg void OnSize (UINT nType);
- afx_msg void OnSize (int cx, int cy);
- afx_msg void OnSize (UINT nType, int cx, int cy);
Which message is sent to the dialog box procedure immediately before a dialog box is displayed?
- WM_INITDIALOG
- WM_INITIALIZEDIALOG
- WM_DIALOG
- WM_INITDLG
Which message is sent when a menu is about to become active?
- WM_INITMENU
- WM_INITMENUPOPUP
- WM_INITPOPUP
- WM_MENUINIT
Which class provides the scroll handling feature automatically in response to scroll-bar messages?
- CView
- CScrollView
- CViewScroll
- CListView
Which of the following statements is wrong?
- The application object is constructed when C++ global objects are constructed.
- There is only one application object with each application.
- Application object constructs the main window.
- WinMain function supplied by MFC library does not make use of application object.
Which functions allow you to write the data to the .ini file?
- WriteProfileString
- SetProfileString
- WriteProfileInt
- Both A and C
The parameter value of -1 in DoWaitCursor means what?
- the wait cursor appears
- the wait cursor is restored without incrementing the reference count
- the wait cursor ends
- None of the above
Which class allows you to implement standard string Find/Replace dialog boxes in your application?
- CFindRepDialog
- CFindReplaceDlg
- CFindReplace
- CFindReplaceDialog
Which member function do we call to create and display the FindReplace dialog box?
- DoModal
- CreateWindow
- Create
- CreateDisplay
Answers
Answer 1 - AAnswer 2 - B
Answer 3 - A
Answer 4 - C
Answer 5 - D
Answer 6 - A
Answer 7 - A
Answer 8 - D
Answer 9 - C
Answer 10 - D
Answer 11 - A
Answer 12 - D
Answer 13 - A
Answer 14 - A
Answer 15 - B
Answer 16 - D
Answer 17 - D
Answer 18 - C
Answer 19 - D
Answer 20 - C



0 Response to "Visual C++ - Set 1-1"
Post a Comment