Sie sind auf Seite 1von 2

1.

messagebox function returns ________ when user clicks on it's ok button


a) true b) idok c) id_ok
2. calling a function within dll using loadlibrary and getprocaddress apis is
called ________
a) dynamic linking b) implicit linking c) explicit
linking
3. every mfc application has one and only one global instance of a class derived
from _______.
a) cwinapp b) cframewnd c) cwinmain
4. the ________ method of cwnd class marks the entire client area of the window
for painting.
a) drawwindow b) refreshwindow c) invalidate
5. the height of rectangle created using crect (10, 20, 50, 70) will be
_________
a) 20 b) 50 c) 70
6. in document-view architecture _______ object is responsible for setting up the
non-client area of
the window.
a) mainframe b) document c) view
7. the ondraw method of view object receives a pointer to _______ object as its
argument
a) cpaintdc b) cclientdc c) cdc
8. cdaorecordset can be used only with _________ database.
a) an access b) any odbc compliant c) any oledb compliant
9. which of the following class is not derived form cobject
a) ccmdtarget b) cruntimeclass c) cwinapp
10. initinstance is a member of which class.
a) cwinthread b) cwinapp c) cwnd

ttttt//ffffff

1. in apis handles are nothing but pointers to objects.


2. waitforsingleobject(hobject, -1) will wait indefinitely for hobject to go into
signalled state.
3. it's not possible to signal an event created by one process in another
process.
4. a thread with lower priority may never get scheduled in a process where a
thread of higher
priority is running.
5. switchtothread api is not available in win 98
6. a memory block allocated with heapalloc is movable.
7. dispatchmessage translates wm_keydown message for shortcut keys to wm_command

message.
8. the values of wparam and lparam are message-dependent.

join the pairs :


_stdcall
_cdecl
_fastcall
_thiscall
on all convention functionalities.........................

programs:
1.create an mfc application (with only one class) that displays a blank window on
the screen.
2.create a serializable class cproduct with m_code (cstring) and m_price (double)
as its public members.
3. on machine with ip 192.168.0.117, a tcp server is listening on port 4011.this
server receives a cproduct (see above question) object from a client and
stores it in database. write client code that opens a csocket to this server
and sends it an instance of cproduct using serialization.

4. create a simple application (using sdk) with its main window based on static
class. the application must exit when user presses escape key.
5. purchase.dll exports a function declared as void __stdcall notifymanager().
write a program which calls this function through explicit linking.

Das könnte Ihnen auch gefallen