Windows Programming

141. Which function is used to draw a Polygon:

  1. Graphics::Polygon()
  2. Draw Polygon()
  3. Polygon()
  4. None of these

Correct answer: (A)
Graphics::Polygon()

142. Which function is used to draw the Ellipse:

  1. Graphics::Ellipse()
  2. Graphics::DrawEllipse()
  3. DrawEllipse
  4. None of these

Correct answer: (B)
Graphics::DrawEllipse()

143. Which function is used to returns the name of an application:

  1. AfxGetAppName()
  2. AfxGetMainWnd()
  3. AfxGetApp()
  4. All of these

Correct answer: (A)
AfxGetAppName()

144. Which function is used to terminate the thread that is currently executing:

  1. AfxBeginThread()
  2. AfxEndThread()
  3. AfxAbort()
  4. None of these

Correct answer: (B)
AfxEndThread()

145. Which function load bitmap image into CBitmap object:

  1. LoadBitmapW
  2. StartBitmap
  3. DeleteBitmap
  4. None of these

Correct answer: (A)
LoadBitmapW

146. Which function needed for visual information processing have to decide the interaction between user and the machine

  1. visual
  2. cognitive
  3. both a & b
  4. none of these

Correct answer: (B)
cognitive

147. Which function registers a custom WNDCLASS for an MFC application:

  1. AfxRegisterWndClass()
  2. AfxGetMainWnd()
  3. AfxGetApp()
  4. AfxGetInstanceHandle()

Correct answer: (A)
AfxRegisterWndClass()

148. Which function returns a handle identifying the current application instance:

  1. AfxGetMain()
  2. AfxGetMainWnd()
  3. AfxGetApp()
  4. AfxGetInstanceHandle()

Correct answer: (D)
AfxGetInstanceHandle()

149. Which function returns a pointer to an application object:

  1. AfxGetAppName()
  2. AfxGetMainWnd()
  3. AfxGetApp()
  4. All of these

Correct answer: (C)
AfxGetApp()

150. Which function returns a pointer to the application’s main window:

  1. AfxGetMain()
  2. AfxGetMainWnd()
  3. AfxGetApp()
  4. AfxGetAppName()

Correct answer: (B)
AfxGetMainWnd()

Page 15 of 50