Developing sharp software  
Windows API Test - 25 questions
Please answer each of the questions to the best of your knowledge.  Although this may place you at a disadvantage,  we ask that you take this test without the aid of programming help materials such as MSDN.  We understand that you may not have worked with code that employs or deals with every question below, and we do not necessarily expect that you will answer every question.  Feel free to answer those that you are experienced with.  This will help give an indication of where your strengths lie and how you can help Acuit as a software engineer.

Name:

Email:

Phone:


No.

Question

1 Which function is used to set a window's caption text?
SetCation
SetWindowCaption
SetWindowText
SetTitleBar
I don't know
2 Which message refers specifically to an owner-draw button?
  WM_OWNERPAINT
WM_MEASUREITEM
WM_DRAWBTN
WM_PAINTBTN
I don't know
3 The ModifyMenu function can do which of these?
Delete a menu
Delete a menu item
Change a bitmap
Add a menu item
I don't know
4 GetMessage works with which structure?
  MSG
WM_PAINT
APPMSG
GETMSG
I don't know
5 CreateEnhMetaFile works with which of these?
Bitmaps
All Explorer files
Only text files
All of these
I don't know
6 CWindowDC can allow drawing on which part of a window?
  Non-client area
Client area
Both
None of these
I don't know
7 What is the main entry point for a DLL?
DllEntry
DllMain
_DllEntry
_Dll
I don't know
8 WM_PAINT is intended for what purpose?
  Creating icons
Creating bitmaps
Painting windows
Painting captions
I don't know
9 Name the function that is used to hide a window.
SetWindowHide
HideWindow
ShowWindow
DeleteWindow
I don't know
10 Which parameter is not passed to WM_COMMAND?
  Notification code
Menu handle
Identifier
Window handle
I don't know
11 Which function causes all keyboard events to be directed to a window?
SetCapture
SetKeyboard
SetActiveWindow
SetFocus
I don't know
12 Which function is used to load a DLL for use?
  LoadLibrary
LoadDLL
GetProcAddress
GetModuleHandle
I don't know
13 Identify the fields in a RECT structure.
bottom
topleft
both of these
none of these
I don't know
14 What is ScreenToClient used for?
  Getting the screen window
Getting the parent window
Getting a child window
Translating points
I don't know
15 Which of these cannot be done with a Window's region?
XOR with another
Offset by a point
Convert to polygon
Get bounding rectangle
I don't know
16 What is the value of FW_BOLD?
  700
600
500
400
I don't know
17 What is the second parameter to SetTextAlign?
HDC hDC
UINT fMode
HWND hWnd
DWORD Flags
I don't know
18 Which function is not used with a Device Context?
  DrawText
Ellipse
CreateRectRegion
GetClipBox
I don't know
19 SetViewportOrgEx is used with which type of handle?
HOBJECT
HWND
HRGN
HDC
I don't know
20 Which function doesn't return until the message has been processed?
  PostMessage
SendMessage
PostThreadMessage
WaitMessage
I don't know
21 Which window style cannot be used with WS_CHILD?
WS_VISIBLE
WS_POPUP
WS_THICKFRAME
WS_CAPTION
I don't know
22 Which functions are used with an HDC?
  GetWindowInfo
GetWindowExtEx
Both
Neither
I don't know
23 GetWindowLong returns which value?
GWL_ID
DWL_USER
GWL_HNWDPARENT
All of these
I don't know
24 Which message is sent to request that an application terminate?
  WM_CLOSE
WM_ENDSESSION
WM_QUIT
WM_DESTROY
I don't know
25 Which is true of child windows within WM_INITDIALOG?
Position has been set
Visible in the dialog
Focus has been set
All of these
I don't know

     When finished make sure you have filled in the user information above and press the Submit button below.
     Do not submit this test more than once until your answers have been checked and returned to you.
       Best of luck from Acuit Development!