מס שאלות למבחן חשוב מאוד!! רק למבינים (DCOM)

5. You are developing an n-tier application that has four layers. On the client computer, the application includes the user interface (UI) and business objects. On the server, the application includes data objects and the database. You want to use the Getdata method to retrieve data directly from the database. Where should the GetData method be located? A. UI forms B. client-sides objects C. server-side objects D. in a stored procedure 11. 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 59. Your Visual Basic application communicates with a Microsoft SQL Sever database. The application is used to track donation Information for a nonprofit organization. The database has a Donor table and a Donation table. The fields are shown in The following table. Table Fields Donor DonorID, FirstName, LastName, Phone, Address,City,State,Zip Donation DonationlD, DononD , Donationdate ,Amount DononID is a primary Key in the Donor table and a foreign key in the Donation Table. You want to write SQL code that will display records for donors who have No given donations. Which SQL statement should you use? A. SELECT FROM Donor Left Outer Join Donation on Donor.DonorID= Donation.DonorID where Donation.DonorID is Null B. SELECT FROM Donor Inner Join Donation on Donor.DonorID= Donation.DonorID where Not Exists Donation.DonorID C. SELECT FROM Donor Union Donation on Donor.DonorID= Donation. DononID where Donation. DonorID=”” D. SELECT FROM Donor, Donation Where Donor.DonorID Not In Donation. DononID 75.You develop, debug, and compile a reusable component. You want to ensure that information relevant to the component will be readily available to other developers who reuse your component. Which items can you store in the Microsoft repository database? (choose three) A. The Component itself. B. Backup files related to the component. C. Documentation related to the component. D. Project templates related to the component. E. All the Source-Code versions of the component. 89. Your VB application uses the following code statement: Code: #If Win32 Then declare function xfunc lib "xlib"_ (byval ord as long) as long #Else Declare function xfun lib "ylib"_ (byval ord as integer) as integer #End If You compile the code on a computer running Microsoft Window95. What is the most Likely result? A. Function Xfunc will compile from Xlib. B. Function Xfunc will compile from Ylib. C. Function Xfunc will return an integer value. D. Function Xfunc will accept an Integer argument. 91. What advantages do you get when you compile to p-code instead of native code? (Choose two) A. Application will run faster B. Compile will be faster C. Executable will be smaller D. You can Use VB debug tools E. Compile will be slower 102. You deploy a COM EXE server that executes in unattended mode. You want to track any errors that occur while the server is Executing. What should you do? A. Use the MsgBox statement to report errors to the user. B. Use a modal form to display the status of errors to the user. C. Use the Print method of the Debug object to report errors to the immediate window. D. Provide appropriate values for the LogPath property and LogMode property of the App object. 104. You deploy a distributed application that requires dynamic load Balancing. Dynamic load balancing at connection time is not sufficient since client applications do not typically disconnect for long periods of time. You want load balancing to occur on a method-by-method call basis. What should you do? A. Use the DCOMCNFG utility to configure DCOM to use dynamic load balancing with data-dependent routing. B. Develop both the client applications and the server component as entirely stateless entities. C. Develop custom interfaces for the client application and the server component so that the underlying RPC binding handle can be rebound to a different endpoint withoy loss of any state information. D. Develop a set of intermediate COM components for the client request is received, the implementation of these components will use an appropiate load-balancing algorithm to redirect the request to a different server. 105. You develop and deploy a distributed application by using MTS You supply a COM component that decides on which server an MTS-hosted COM component will be activated. You want the decision to be based on specific load-balancing algorithms. You want MTS to use your corn when Just-in-Time(JIT)-activated corn are activated. How can you enable dynamic load balancing? A. Creating an MTS package name load Balancer install the component in the load balancer package ensure that all COM component that will be load balancer call SetComplete at the end of every transaction. B. Implement the entry point DLLCanUnload in component, MTS can call Method of COM DLL to determine whether the client can be disconent form this component. C. You can not enable dynamic load balancing for MTS D. Do nothing. DCOM automatically provides dynamic load balancing via SCM-to-SCM pinging. 117. Mike has the following conditional code in multiple procedures that perform database operations. His project is named MainApp.vbp and compiles to MainApp.exe. #If SQLDEBUG Then ' code to write SQL to a file #End If What methods can Mike use to set the SQLDEBUG constant to True? a) Choose Project|Properties, set the Command Line Arguments to: SQLDEBUG = -1 b) run the following command: MainApp.exe /d SQLDEBUG=-1 c) Choose Project|Properties, set the Conditional Compilation Arguments to: SQLDEBUG = -1 d) run the following command: vb6.exe /make MainApp.vbp /d SQLDEBUG=-1 148. An active X component is creating a problem when used under certain conditions. You want to inform developers on your team about the conditions. Choose the best answer a. You should create an annotation in the Microsoft repository b. You should write a notepad doc. and write about the problem the use the Microsoft repository c. Use Visual Source Safe choose the file menu and drag the description using Windows Explorer d. Use Visual Source Safe and add an annotation to the component e. Add a description under the component in Visual Source Safe. 7. The address table in a database contains the following columns. AddresslD StreetNumber StreetName City Country CreatedBy CreatedDate Timestamp Which three columns would most likely be properties of an address business object? (Choose three.) A. AddresslD B. StreetName C. City D. CreatedBy E. CreatedDate F. Timestamp 111. Juan has created a parameter query that his application is going to execute every 10 seconds. He knows he should implement his query as a stored procedure but the DBA is out of town and he does not have permissions to create a stored procedure on the SQL Server. How can Juan code his query such that a temporary stored procedure is created and used when his query is called? a) Cmd.CommandText = "update SYSTEM_TIMESTAMP SET CHK_TIME=" & Now Cmd.CommandType = adCmdText Cmd.Execute b) Cmd.CommandText = "update SYSTEM_TIMESTAMP SET CHK_TIME=" & Now Cmd.CommandType = adCmdText Cmd.Prepared = True Cmd.Execute c) Cmd.CommandText = "update SYSTEM_TIMESTAMP SET CHK_TIME=" & Now Cmd.CommandType = adCmdStoredProc Cmd.Prepared = True Cmd.Execute d) Cmd.CommandText = "update SYSTEM_TIMESTAMP SET CHK_TIME=" & Now Cmd.CommandType = adCmdTempStoredProc Cmd.Execute 120. Henry is the systems administrator of a large corporation. He monitors the load being placed on several COM Components on multiple servers and wants to control the distribution of that load to various servers. How can Henry best implement load balancing for his situation? (Choose two) a) Use the Win32 remote registry functions to change registry entries on client machines so that components are created on different servers. b) Implement a referral component that clients connect to and pass back the server name to for the clients to create the component on. c) Store the server name in a central database. The client can request the server name and then request the creation of the component on that server. d) Re-create a setup program that clients run each morning to update their registry information.

סתם שתדע

שההודעה שלך מ א ו ד ארוכה, כדאי לך לסכם אותה מעט, זה יעזור מאוד לעזור לך, אני מניח פשוט שרב האנשים עצלנים כמוני... :)

סתם מתוך טוב לב

תגיד איזו שאלה הכי דחופה לך ואני יענה לך אפילו עם הסבר
עבור לעמוד
בחזרה לפורום
כרגע בפורום זה: אין משתמשים רשומים
עבור לפורום:
תיכנות
בחר
בחר