Windows Programming

411. Which class is derived from CObject adding much functionality and is shared by all windows in an MFC programs:

  1. CView
  2. CWnd
  3. CMyView
  4. None of these

Correct answer: (B)
CWnd

412. The CObject is used always as:

  1. Base class
  2. Derived class
  3. Child Class
  4. None of these

Correct answer: (A)
Base class

413. Which macro is used for supporting runtime class identification for class declaration:

  1. DECLARE_DYNCREATE
  2. DECLARE_DYNAMIC
  3. IMPLEMENT_DYNAMIC
  4. IMPLEMENT_DYNCREAE

Correct answer: (B)
DECLARE_DYNAMIC

414. Which macro is used for supporting runtime class identification for class definition:

  1. IMPLEMENT_DYNCREAT
  2. DECLARE_DYNAMIC
  3. IMPLEMENT_DYNAMIC
  4. DECLARE_DYNCREATE

Correct answer: (C)
IMPLEMENT_DYNAMIC

415. Which macro is used for supporting creation of dynamic object for class identification for class declaration:

  1. DECLARE_DYNCREATE
  2. DECLARE_DYNAMIC
  3. IMPLEMENT_DYNAMIC
  4. IMPLEMENT_DYNCREAT

Correct answer: (A)
DECLARE_DYNCREATE

416. Which macro is used for supporting creation of dynamic object for class definition:

  1. IMPLEMENT_DYNCREATE
  2. DECLARE_DYNAMIC
  3. IMPLEMENT_DYNAMIC
  4. DECLARE_DYNCREATE

Correct answer: (A)
IMPLEMENT_DYNCREATE

417. Which macro is used for serialization support for class declaration:

  1. DECLARE_ DYNCREATE
  2. IMPLEMENT_SERIAL
  3. DECLARE_ SERIAL
  4. IMPLEMENT_DYNCREAT

Correct answer: (C)
DECLARE_ SERIAL

418. Which operator is used for dynamic allocation of an object from free storage in C++:

  1. this
  2. static
  3. new
  4. delete

Correct answer: (C)
new

419. Which class can be used for determining an object type or for creating a new object:

  1. CViewClass
  2. CRuntimeClass
  3. CWndClass
  4. None of these

Correct answer: (B)
CRuntimeClass

420. ___________ is a simple numeric variable that denotes a location or an address in memory:

  1. Pointer
  2. Array
  3. String
  4. None of these

Correct answer: (A)
Pointer

Page 42 of 50