Windows Programming

421. Which operator determines amount of storage needed for classes and structures:

  1. sizeof
  2. new
  3. delete
  4. update

Correct answer: (A)
sizeof

422. Which macro sends an output message to the debug window of compiler:

  1. COUT
  2. FOUT
  3. TRACE
  4. Display

Correct answer: (C)
TRACE

423. There are many applications that provide support for menus that are:

  1. Pop-up menu
  2. Floating menu
  3. System menu
  4. All of these

Correct answer: (D)
All of these

424. On selecting a menu item, which message is issued to the window of the main frame:

  1. WM_COMMAND
  2. WM_LBUTTONDOWN
  3. WM_RBUTTONDOWN
  4. WM_LBUTTONDBLCLK

Correct answer: (A)
WM_COMMAND

425. Which class can be used to handle menus by MFC class Library:

  1. CMainFrame
  2. CView
  3. Cmenu
  4. CWinApp

Correct answer: (C)
Cmenu

426. Which name is used to identify the menu item:

  1. Caption
  2. Separator
  3. Pop-up
  4. Grayed

Correct answer: (A)
Caption

427. Which member function resembles the OnDraw member function from CMouseTestView:

  1. CMenuView::OnDraw
  2. CWinApp::OnDraw
  3. CMainFrame::OnDraw
  4. None of these

Correct answer: (A)
CMenuView::OnDraw

428. Which function is used to print a message:

  1. TextOut
  2. ViewOut
  3. FOut
  4. WriteText

Correct answer: (A)
TextOut

429. ___________ are basically the keyboard for message handling function:

  1. Mouse Accelerators
  2. Monitor Accelerators
  3. Keyboard Accelerators
  4. None of these

Correct answer: (C)
Keyboard Accelerators

430. Which windows message is responsible for displaying the context menus:

  1. WM_CONTEXTMENU
  2. WM_VIEWMENU
  3. WM_COMMAND
  4. None of these

Correct answer: (A)
WM_CONTEXTMENU

Page 43 of 50