Headers for cached page www.ibm.com/education/certify/tests/sam125.phtml:
HTTP/1.1 200 Document follows

Server: Domino-Go-Webserver/4.6

Date: Tue, 09 Nov 1999 21:21:53 GMT

Accept-Ranges: bytes

Content-Type: text/html

Content-Length: 58291

Last-Modified: Fri, 13 Aug 1999 07:16:00 GMT
IBM Cert - Sample Test 125 (OS/2 Presentation Manager for C )
IBM Software
SearchHomeProgramProcessCertificationsNewsNavigatorFeedback
Professional Certification Program from IBM
Home
Test 125: Edu. & Pubs.Objective

OS/2 Presentation Manager for C
Sample Test 125


SECTION 1 - WINDOW FUNDAMENTALS

1. See the Exhibit (Figure 1.2.f which follows), for the Code Sample needed. Given the code sample in Figure 1.2.f, if the API WinCreateStdWindow was executed, which of the following statements would be true?

a. the application will have to manage its own customized icon if needed
b. the application will get a default system icon
c. the application cannot be minimized
d. the application cannot be maximized

Exhibit: Figure 1.2.f
----------------------------
CODE SAMPLE:
	      flCreateFlags = FCF_STANDARD  &  ~FCF_ICON

SECTION 2 - WINDOW MANAGEMENT

2. Which of the following is a characteristic of a top-level window?

a. it currently has the focus
b. it is the parent to any given window
c. it is a window whose parent is the desktop
d. it is the entire presentation manager screen

3. Access to a window's extra window word is granted only to those windows that have the unique

a. method
b. anchor block
c. window handle
d. class name

4. You have an application that is attempting to display a dialog box. When the first message is received in the dialog procedure, you must set the focus on the dialog. How is this task achieved?

a. execute the function WinSetFocus
b. return TRUE after the message WM_INITDLG
c. send a set focus message to the dialog box
d. post a set focus message to the dialog box

SECTION 3 - PM RESOURCES

5. When a frame window is created using the WinCreateStdWindow API, resources can automatically be loaded from the application's resources and used to create the controls associated with the frame. If the window ID of the frame is 100, which of following shows the correct resource ID for the frame controls?

a. MENU=101, ICON=102, ACCELERATOR TABLE=103
b. MENU=102, ICON=101, ACCELERATOR TABLE=103
c. MENU=100, ICON=100, ACCELERATOR TABLE=100
d. MENU=1, ICON=1, ACCELERATOR TABLE=1

6. An application must create a help instance, an object window of a special class, in order to enable context sensitive help. Which of the following APIs is normally called to create this object window?

a. WinCreateHelpWindow
b. WinCreateStdWindow
c. WinCreateHelpInstance
d. WinCreateWindow

7. Today's advanced applications often allow users to click a mouse button over portions of the application window in order to display a menu of actions related to the object or objects displayed at that location. These menus are called popup menus and the WinPopupMenu API is provided to support this functionality. Prior to calling WinPopupMenu, the menu window must be created. Which of the following APIs would normally be used to create a window for a popup menu whose template is defined in the application's global data?

a. WinCreateMenuWindow
b. WinLoadMenu
c. WinCreateMenu
d. WinEnableMenuItem

SECTION 4 - INTRODUCTION TO THE GRAPHICS ENGINE

8. Which of the following does NOT define a device context?

a. OD_MEMORY
b. OD_DISPLAY
c. OD_METAFILE
d. OD_INFO

9. Bitmaps are device dependent objects that must be owned at all times by some raster device. A raster device may be used as both source and target of BitBlt operations. What is a requirement for a bit block transfer operation on a bitmap?

a. a 24bitperpel bitmap is necessary for the operation
b. the color table provided with the bitmap source data will have to match each target mapping
c. it is essential that both the source and the target of the operation are owned by the same device
d. the color table provided with the bitmap source data will have to match each source pixel index value to the nearest device color palette when initializing the data

10. What is a collection of graphical orders that are editable, can be chained together, and can be retained in memory?

a. icon
b. metafile
c. bitmaps
d. segment

SECTION 5 - USER INTERFACE DESIGN CONSIDERATIONS

11. Which of the following statements about an object window is FALSE?

a. an object window does not have to process WM_PAINT message
b. an object window does not receive input messages
c. the parent of an object window is HWND_OBJECT
d. there can be more than one object window on a system

SECTION 6 - PRINTING FUNDAMENTALS

12. If the PS for a generated print job metafile is set to be larger than the output page, what will happen to the job's output?

a. The PS will be positioned so that its origin will map to the origin on the output page, thus clipping additional output to the page boundaries.
b. The output will be scaled to the output page's area.
c. The output will be thrown away by the queue processor because it is invalid.
d. The top left corner will be used to map the PS to the output page.

OS/2 Presentation Manager for C
Sample Test 125

ANSWER KEY:

1. a

2. c

3. c

4. b

5. c

6. c

7. c

8. b

9. c

10. d

11. c

12. b



CERTIFICATION NAVIGATOR:
Select Certification, or Test Number and Topic, or a Site Page
Site Map    Help

AND

 IBM Home Page  Support  Contact IBM  Employment  Privacy  Legal
©1998 IBM Corporation