Windows Programming

271. The Dialog controls are referenced using:

  1. CWnd pointer
  2. Index number
  3. Both a and b
  4. None of these

Correct answer: (C)
Both a and b

272. Class Wizard can generate statements to call the MFC ___________ functions for moving the information back and forth between the screen and the data members in dialog box:

  1. Data transfer and dispose
  2. Data exchange and data validation
  3. Both a and b
  4. None of these

Correct answer: (B)
Data exchange and data validation

273. Which dialog box force to user to do any action:

  1. Modal
  2. Modeless
  3. Both a and b
  4. None of these

Correct answer: (A)
Modal

274. Which is dialog control initialization function:

  1. OnDialog
  2. OnInitDialog
  3. InitDialog
  4. StartDialog

Correct answer: (B)
OnInitDialog

275. Which function is used to create Modal dialog box:

  1. CreateModal()
  2. DoModal()
  3. DrawModal()
  4. Modal()

Correct answer: (B)
DoModal()

276. Which function is create for cancel button event of dialog box:

  1. OnInitCancel()
  2. OnCancel()
  3. CancelClick()
  4. OnClickCancel()

Correct answer: (B)
OnCancel()

277. Which function is used for converting an ID to a CWnd pointer is provided by the MFC library:

  1. CWnd::GetItem
  2. CWnd::GetPointer
  3. CWnd::GetDlgItem
  4. CWnd::GetDlgPointer

Correct answer: (C)
CWnd::GetDlgItem

278. Which function is used to convert a CWnd pointer to a control ID, in MFC library:
a. GetDlgCtrlID()
b. GetPointer()
c. GetDlgItem()
d. GetDlgPointer()

  1. i-a, ii-c, iii-d, iv-b
  2. i-d, ii-c, iii-b, iv-a
  3. i-d, ii-a, iii-c, iv-b
  4. i-c, ii-a, iii-d, iv-b

Correct answer: (A)
i-a, ii-c, iii-d, iv-b

279. In VisualC++, which menu adds ‘Resources’:

  1. Insert
  2. Project
  3. Build
  4. Tools

Correct answer: (A)
Insert

280. Buttons and other utilities can be accessed through the ___________ menu:

  1. Insert
  2. Layout
  3. Tools
  4. Window

Correct answer: (B)
Layout

Page 28 of 50