| Author |
70-175. Question of the week!!!
|
|
| ibnou 2002-07-08, 10:15 am |
| Hi All!!!
And today the poser is....
---------
1********. You are implementing a COM server that contains a component that will have a property named statusid. You want statusid to be read/write for code within the COM server, but read-only for code outside of the COM
server.
Which code fragment should you use to define the stautsid property?
lnewvalue as long)
B. public property get statusid() as long
private property let statusid(byval lnewvalue as long)
C. friend property get statusid() as long
private property let statusid(byval lnewvalue as long)
D. friend property get statusid() as long
public property let statusid(byval lnewvalue as long)
public property get statusid() as long
friend property let statusid(byval lnewvalue as long)
2********. You are designing the properties, methods, and events for
components in a new VB application. There is a requirement that a customer have
an ID number. How should you design the ID number?
A. as an event
B. as a method
C. as a property
D. as a component
3********. You are installing Microsoft Transaction Server(MTS) .The server will
be used for supporting database transactions across multiple servers.
Which component must you install accomplish this?
A. ODBC
B. OLEDB
C. Microsoft Internet Information Server
D. Microsoft Distributed Transaction Coordinator
--------------------------
Good luck!!!!
See you next for the answers!!!!! | |
| RichardJW 2002-07-17, 6:37 pm |
| 1. friend property let
and
public property get
2. C. as a property
3. A. ODBC | |
|
|
Now the answers :
1. A. public property get statusid() as long
friend property let statusid(byval lnewvalue as long)
2. C. as a property
3. D. Microsoft Distributed Transaction Coordinator
 | |
| RichardJW 2002-07-23, 5:37 am |
| 3. D. Microsoft Distributed Transaction Coordinator
Whoops !! Here is a case of me obviously not bothering to read the question properly.
However your Q's of the week/month - they're not very popular are they? And seeing I've already done the VB exams ... well. |
|
|
|