You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You have recently finished development of a Windows application using .NET Framework. Users report that
the application is not running properly. When the users try to complete a particular action, the following error message comes out:
Unable to find assembly 'myservices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=29b5ad26c9de9b95'.
You notice that the error occurs as soon as the application tries to call functionality in a serviced component that was registered by using the following command:
regsvcs.exe myservices.dll
You must make sure that the application can call the functionality in the serviced component with no exceptions being thrown. What will you do to accomplish this task?
A. Run the command line tool: regasm.exe myservices.dll.
B. Copy the serviced component assembly into the C:\Program Files\ComPlus Applications fold er.
C. Run the command line tool: gacutil.exe /i myservices.dll.
D. Copy the serviced component assembly into the C:\WINDOWS\system32\Com folder.
You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. The application will be used by school children to read a sequential chain of characters. What will you do to accomplish this task?
A. Use the File class.
B. Use the TextWriter class.
C. Use the TextReader class.
D. Use the BinaryReader class.
You work as a Software Developer for ABC Inc. You develop a Windows-based application named MyApp. The application contains a form named MyForm1 that displays a submit form for registered users. You want to implement a user interface for the application. Which of the following requirements will you consider for the user interface?
Each correct answer represents a complete solution. Choose all that apply.
A. The application saves the user-entered data and checks the integrity of the data.
B. The application components are allowed to handle logging of user-entered data.
C. The user-entered data are validated through the validation checks applied in the Windows Forms controls.
D. Users are allowed to enter data in the required fields on the form.
You work as a Software Developer for ABC Inc. The company has several branches Worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an applications using .NET Framework
2.0. You want to allow users to view various details of a given unmanaged code. What will you do to accomplish the task?
A. Use the dumpbin.exe.
B. Use a COM/DCOM server.
C. Use the Makecert.exe.
D. Use the Dispinterface.
You work as a Software Developer for ABC Inc. You have created a console application that uses two threads, named thread1 and thread2. You need to modify the code to prevent the execution of thread1 until thread2 completes its execution. Which of the following steps will you take to accomplish this task?
A. Use a WaitCallBack delegate to synchronize the threads.
B. Call the sleep() method of thread1.
C. Call the SpinWait() method of thread1.
D. Configure thread1 to run at a lower priority.
E. Configure thread2 to run at a higher priority.
Emily works as a Programmer in an Eye Research Center. The center keeps several records such as case history records for old patients and newly admitted patients, and records for outdoor patients. The Head of the Research Center wants Emily to generate reports for each outdoor patient with minimum network traffic. Emily develops an application named OutdoorPatientReport by using Visual Studio .NET. She needs to utilize the data repository as maintained by the center.
She wants to ensure that the application is displayed to all the doctors. Which of the following actions will Emily take to accomplish this task?
A. Use Microsoft SQL Server stored procedures for data calculations.
B. Implement a batch processing system for data calculations.
C. Create more than one database for data manipulations.
D. Use SQL Server indexes to optimize data calculations.
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an application using the .NET Framework. The application contains a class named globalInfo. You need to serialize all public and nonpublic data of the globalInfo class to ensure that the class generates the minimum byte stream so that the minimum load is placed upon network resources. What will you do?
A. Use the XmlSerializer class.
B. Use the BinaryFormatter class.
C. Use the SoapFormatter class.
D. Use the IXmlSerializable interface.
Allen works as a Software Developer for Mansoft Inc. He develops an application using Visual Studio .NET 2005. The application connects to a SQL Server database using a SqlConnection object named NewConnection. Allen creates a few stored procedures in the database. Sometimes an error occurs, when a user executes stored procedures. Allen wants to add an error-handling code to the application to handle errors that occur on executing stored procedures. Which of the following code segments will he use to accomplish this task?
A. try { NewConnection.Open(); } catch(DBConcurrencyException exep) { //Error-handling code }
B. try { NewConnection.Open(); } catch(SqlException exep) { //Error-handling code }
C. try { NewConnection.Open(); } catch(DataException exep) { //Error-handling code }
D. try { NewConnection.Open(); } catch(InvalidCastException exep) { //Error-handling code }
Robert works as a Software Developer for InfoTech Inc. He develops an application named MyApp that uses SQL Server database and three database components. He wants to ensure that other developed applications cannot use these database components. Users should be authorized before they can access these components. Robert configures the database component assemblies to accomplish this task. Choose the correct actions that Robert should take after the configuration.
A. True
B. False
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application for the company. You need to validate the phone number passed to a class as a parameter in the application. Which of the following is the most effective way to verify that the format of the data matches a phone number?
A. Regular expressions
B. Nested If statements
C. Use the String.Length property
D. A try/catch block