Windows Programming

341. Which is the parameter of the WinMain():

  1. HInstance
  2. hPrecInstance
  3. LPSTR lpCmdLine
  4. Int nCmdShow
  5. All of these

Correct answer: (E)
All of these

342. Which control in Visual C++ is used to display the text or requested text:

  1. Static control
  2. Rich Edit control
  3. Edit control
  4. Progress

Correct answer: (C)
Edit control

343. Which variable is used to set the color of text:

  1. crText color
  2. crEdit color
  3. Both a and b
  4. None of these

Correct answer: (A)
crText color

344. The WS_EX_DLGMODALFRAME extended style is inserted at:

  1. Run-time
  2. Compile-time
  3. Design-time
  4. None of these

Correct answer: (A)
Run-time

345. Which is not the color setting of static control:

  1. SS_BLACKFRAME
  2. SS_GRAYFRAME
  3. SS_WHITEFRAME
  4. SW_WHITEFRAME

Correct answer: (D)
SW_WHITEFRAME

346. Which function is called to change the caption:

  1. CWnd::SetWindowText()
  2. CWnd::SelWindowText()
  3. CWnd::DelWindowText()
  4. All of these

Correct answer: (A)
CWnd::SetWindowText()

347. A Psychic Window system is based on the phenomenon of:

  1. Rekhi
  2. Emotions
  3. Visual telepathy
  4. All of these

Correct answer: (C)
Visual telepathy

348. The control classes are based on:

  1. CWnd
  2. WinApp
  3. WinAPI
  4. All of these

Correct answer: (A)
CWnd

349. The types of Windows are:

  1. Parent
  2. Child
  3. Both a and b
  4. None of these

Correct answer: (C)
Both a and b

350. The types of Border:

  1. Raised Border
  2. Sunken Border
  3. Both a and b
  4. None of these

Correct answer: (C)
Both a and b

Page 35 of 50