|
Related Questions |
View Answer |
|
You use Visual Studio .NET to create an assembly, called XYZAssembly, that will be used by other applications, including a standard COM client application. You must deploy your assembly on the COM application to a client computer. You must ensure that the COM application can instantiate components within the assembly as COM components. What should you do? A. Create a strong name of the assembly by using the Strong Name tool (Sn.exe). B. Generate a registry file for the assembly by using the Assembly Registration tool (Regasm.exe) Register the file on the client computer. C. Generate a type library for the assembly by using the Type Library Importer (Tlbimp.exe). Register the file on the client computer. D. Deploy the assembly to the global assembly cache on the client computer. Add a reference to the assembly in the COM client application.
|
View Answer
|
|
You develop an application XYZApp that will be sold commercially. You create a Visual Studio .NET setup project to distribute the application. You must ensure that each user accepts your license agreement before installation occurs. What should you do? A. Add a launch condition to your setup project. Add your license agreement to the Message property of the launch condition. B. Open the user interface designer for your setup project. Select the Welcome dialog box from the Start object and add your license agreement to the CopyrightWarning property. C. Save you license agreement in the Rich Text Format and add the file to your setup project.. Open the property pages for the setup project and set the Certificate to the name of your Rich Text file. D. Save your license agreement in Rich Text Format and add the file to your setup project. Open the user interface designer for the setup object. From the Start object, select the License Agreement dialog box and set the LicenseFile property to the name of your Rich Text file.
|
View Answer
|
|
You create a Visual Studio .NET setup project to distribute an application. You add a SQL script named XYZDB.SQL. You must ensure that the SQL script is executed during the installation process. What should you do? A. Add a custom action to your setup project. Select XYZDB.SQL as the source path. B. Add a batch file to your setup project to execute XYZDB.SQL. Add a launch condition to the setup project. Set the Condition property to the batch file. C. Create a new Visual Studio .NET project that executes XYZDB.SQL. Include the new project with your setup project. Add a custom action that launches the new project during installation. D. Add a launch condition to your setup project. Set the Condition property to XYZDB.SQL.
|
View Answer
|
|
As a programmer at XYZ inc, you use Visual Studio .NET to create several applications that will be deployed commercially over the Internet. You must ensure that customers can verify the authenticity of your software. Which action or actions should you take? (Choose all that apply.) A. Sign your portable executables by using Signcode.exe. B. Generate an X.509 certificate by using Makecert.exe. C. Purchase an X.509 certificate from a certificate authority. D. Purchase a Software Publisher Certificate from a certificate authority. E. Convert your certificate to a Software Publisher Certificate by using Cert2spc.exe.
|
View Answer
|
|
You use Visual Studio .NET to create a Windows-based application called XYZApp, that will be distributed to your customers. You add a setup project to your solution to create a distribution package. You deploy the distribution package on a test computer. However, you discover that the distribution package does not create a shortcut to your application on the Programs menu of the test computer. You need to modify your setup project to ensure that this shortcut will be available on your customers Programs menus. What should you do? A. Navigate to the User’s Programs Menu folder in the File System on Target Machine hierarchy. Add the primary output from your application. B. Navigate to the Application Folder folder in the File System on Target Machine hierarchy. Create a shortcut to your application and move the shortcut to the User’s Programs Menu folder in the same hierarchy. C. Navigate to the Install folder in the Customer Actions hierarchy. Create a custom action that adds the primary output from your application to the User’s Programs Menu folder. D. Navigate to the Install folder in the Custom Actions hierarchy. Create a custom action that adds a shortcut to your application’s executable file to the User’s Programs Menu folder.
|
View Answer
|
|
You use Visual Studio .NET to develop a Windows-based application called XYZApp. Your application will display customer order information from a Microsoft SQL Server database. The orders will be displayed on a Windows Form in a data grid named DataGrid1. DataGrid1 is bound to a DataView object. The Windows Form includes a button control named displayBackOrder. When users click this button, DataGrid1 must display only customer orders whose BackOrder value is set to True.. How should you implement this functionality? A. Set the RowFilter property of the DataView object to "BackOrder = True". B. Set the RowStateFilter property of the DataView object to "BackOrder = True". C. Set the Sort property of the DataView object to "BackOrder = True". D. Set the ApplyDefaultSort property of the DataView object to True.
|
View Answer
|
|
You use Visual Studio .NET to create an application named ComapanyClient. Another developer in your company creates a component named ComapanyComponent. Your application uses namespaces exposed by ComapanyComponent. You must deploy both ComapanyClient and ComapanyComponent to several computers in your company’s accounting department. You must also ensure that ComapanyComponent can be used by future client applications. What are three possible ways to achieve your goal? (Each correct answer presents a complete solution. Choose three). A. Deploy ComapanyClient and ComapanyComponent to a single folder on each client computer. Each time a new client application is developed, place the new application in its own folder and copy ComapanyComponent to the new folder. . Deploy ComapanyClient and ComapanyComponent to a single folder on each client computer. Each time a new client application is developed, place the new application in its own folder. Edit ComapanyClient.exe.config and add a privatePath tag that points to the folder where ComapanyComponent is located. C. Deploy ComapanyClient and ComapanyComponent to separate folders on each client computer. In each client application that will use ComapanyComponent, add the following code segment: using ComapanyComponent; D. Deploy ComapanyClient and ComapanyComponent to separate folders on each client computer. Each time a new client application is developed, select Add Reference from the Tools menu and add a reference to ComapanyComponent. E. Deploy ComapanyClient and Tes tSheetsComponent to separate folders on each client computer. Register ComapanyComponent on each client computer by using the RegSvr32 utility. F. Deploy ComapanyClient and ComapanyComponent to separate folders on each client computer. Add ComapanyComponent to the global assembly cache.
|
View Answer
|
|
You use Visual Studio .NET to create an application that uses an assembly. The assembly will reside on the client computer when the application is installed. You must ensure that any future applications installed on the same computer can access the assembly. Which two actions should you take? (Each correct answer presents part of the solution. Choose two) A. Use XCOPY to install the assembly in the global assembly cache. B. Use XCOPY to install the assembly in the WindowsAssembly folder. C. Create a strong name for the assembly. D. Recompile the assembly by using the Native Image Generator (Ngen.exe). E. Modify the application configuration file to include the assembly. F. Use a deployment project to install the assembly in the global assembly cache. G. Use a deployment project to install the assembly in the WindowsSystem32 folder.
|
View Answer
|
|
You create an assembly by using Visual Studio .NET. The assembly is responsible for writing and reading order entry information to and from an XML data file. The assembly also writes and reads values to and from the Windows registry while it is being consumed. The assembly will be distributed to client computers by using your company, XYZ, intranet. All client computers are configured to implement the default .NET security policy. You need to implement security in the assembly. What should you do? A. Implement declarative security and execute the permission demand to allow access to the file system and Windows registry. B. Implement declarative security and execute the minimum permission request to allow access to the file system and Windows registry. C. Implement imperative security and execute the permission demand to allow access to the file system and Windows registry. D. Implement imperative security and execute the minimum permission request to allow access to the file system and Windows registry.
|
View Answer
|
|
You use Visual Studio .NET to develop a Windows-based application. The application will implement a role-based authorization scheme that is based on a Microsoft SQL Server database of user names. Users will enter their user names in a text box named userName and logon screen. You must ensure that all users are assigned the Supervisor rule and the EX role by default. Which code segment should you use? A. WindowsIdentity identity = new WindowsIdentity.GetCurrent(); string[] RoleArray = {“Supervisor”, “EX”}; GenericPrincipal principal = new GenericPrincipal(identity, RoleArray); B. GenericIdentity identity = new GenericIdentity(userName.Text); string[] RoleArray = {“Supervisor”, “EX”}; WindowsPrincipal principal = new WindowsPrincipal(identity); C. GenericIdentity identity = new GenericIdentity(userName.Text); string[] RoleArray = {“Supervisor”, “EX”}; GenericPrincipal principal = new GenericPrincipal(identity, RoleArray); D. WindowsIdentity identity = new WindowsIdentity.GetAnonymous(); string[] RoleArray = {“Supervisor”, “EX”}; WindowsPrincipal principal = new GenericPrincipal(identity, RoleArray);
|
View Answer
|
|
You use Visual .NET to develop a Windows-based application whose project name is XYZMgmt. You create an application configuration file that will be installed on the client computer along with XYZMgmt. You must ensure that the settings in the application configuration file are applied when XYZMgmt is executed. What should you do? A. Name the configuration file XYZMgmt.exe.confing and copy it to the WindowsSystem32 folder. B. Name the configuration file XYZMgmt.config and copy it to the WindowsSystem32 folder. C. Name the configuration file XYZMgmt.exe.config and copy it to the application folder. D. Name the configuration file XYZMgmt.config and copy it to the application folder. E. Name the configuration file XYZMgmt.exe.config and copy it to the global assembly cache.
|
View Answer
|
|
You use Visual Studio .NET to develop a Windows-Bases application named PatTrac. It uses the security class libraries of the .NET Framework to implement security. PatTrac will run within the context of a Windows 2000 domain named MedicalOffice. Calls to a remote Windows 2000 domain named XYZ will occur during the execution of PatTrac. You want PatTrac to log on to the XYZ domain by using a generic user account. What should you do? A. Create a new instance of the WindowsImpersonationContext class by calling the Impersonate method of the Genericidentity object and passing the token of the user whom you want to impersonate. B. Create a new instance of the WindowsImpersonationContext class by calling the Impersonate method of the WindowsIdentify object and passing the token of the user whom you want to impersonate. C. Create a new instance of the ZoneIdentifyPermission class by calling the Impersonate method of the GenericPrincipal object and passing the token of the user whom you want to impersonate. D. Create a new instance of the ZoneIdentifyPermission class by calling the Impersonate method of the WindowsPrincipal object and passing the token of the user whom you want to impersonate.
|
View Answer
|
|
You develop a Windows-based application by using Visual Studio .NET. You use XYZ’s intranet to deploy the application to client computers. You use the security configuration of the .NET Framework to configure security for you application at the enterprise policy level.. Virus attacks cause the IT manager at XYZ to tighten security at the machine level. Users report that they can no longer execute your application. How should you correct this problem? A. Include the LevelFinal attribute in the intranet code group policy at the enterprise level by using the Permission View tool (Permview.exe). B. Include the Exclusive attribute in the intranet code group policy at the enterprise level by using the Permission View tool (Permview.exe). C. Include the LevelFinal attribute in the intranet code group policy at the enterprise level by using the Code Access Security Policy tool (Caspol.exe). D. Include the Exclusive attributes in the intranet code group policy at the enterprise level by using the Code Access Security Policy tool (Caspol.exe).
|
View Answer
|
|
You development team used Visual Studio .NET to create an accounting application, which contains a class named XYZAccounts. This class instantiates several classes from a COM component that was created by using Visual Basic 6.0. Each COM component class includes a custom method named ShutDownObject that must be called before terminating references to the class. Software testers report that the COM component appears to remain in memory after the application terminates. You must ensure that the ShutDownObject method of each COM component class is called before XYZAccounts is terminated. What should you do? A. Add code to the Terminate event of XYZAccounts to call the ShutDownObject method of each COM component class. B. Find each location in your code where a reference to XYZAccounts is set to null or goes out of scope. Add code after each instance to manually invoke the Visual Studio .NET garbage collector. C. Add a destructor to XYZAccounts. Add code to the destructor to call the ShutDownObject method of each COM component class. D. Add the procedure private void Finally() to XYZAccounts. Add code to the procedure to call the ShutDownObject method of each COM component class.
|
View Answer
|
|
You company XYZ assigns you to modify a Visual Studio .NET application that was created by a former colleague. However, when you try to build the application, you discover several syntax errors. You need to correct the syntax errors and compile a debug version of the code so the application can be tested. Before compiling, you want to locate each syntax error as quickly as possible. What should you do? Select each error listed in the Task List window. A. Open the Application event log from the Visual Studio .NET Server Explorer window. Select each error listed. B. Run the application in Debug mode. Each time an error is encountered, correct it and continue debugging the application. C. Select Build Solution from the Build menu. When the build fails, correct each error listed in the Output window. D. Select Build Comment Web Pages from the Tools menu. Select each function listed in the report that is generated.
|
View Answer
|
|
You work as a software developer at Comapany.net You use Visual Studio .NET to create an application that tracks support incidents for your technical support department at Comapany.net. You implement the Trace class to write information about run-time errors in a local log file. You also implement a TraceSwitch object named ComapanySwitch, which can turn Trace logging on and off as needed. To maximize application performance, you ensure that ComapanySwitch is disabled by default. You set your Configuration Manager to Release. You compile the application and deploy it to a shared folder on your company intranet. Fifty users access the application from a shortcut on their desktops. One user receives error messages while running the application. You device to enable verbose trace logging within the application for that user. You must ensure that you do not affect application performance for the other users. Which action or actions should you take? (Choose all that apply) A. Set your Configuration Manager to Debug. Compile your application and deploy it locally on the user’s computer. Create a new shortcut on the user’s desktop to access the local copy of the application. B. Copy the deployed version of the application from the shared folder. Deploy it locally on the user’s computer. Create a new desktop shortcut on the user’s desktop to access the local copy of the application. C. ComapanySwitch with a value of 4. D. Edit the .config file for the application on the shared folder to enable ComapanySwitch with a value of 4. E. Start the application with the /d:TRACE=TRUE command line option. F. Start the application with the /TRACE ComapanySwitch 4 command line option.
|
View Answer
|
|
You use Visual Studio .NET to create a Windows-based application. The application includes a form named XYZProcedures (EXP). EXP allows users to enter very lengthy text into a database. When users click the Print button located on EXP, this text must be printed by the default printer. You implement the printing functionality by using the native .NET System Class Libraries with all default settings. Users report that only the first page of the text is being printed. How should you correct this problem? A. In the BeginPrint event, set the HasMorePages property of the PrintEventArgs object to True. B. In the EndPrint event, set the HasMorePages property of the PrintEventArgs object to True. C. In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to True. D. In the QueryPageSettings event, set the HasMorePages property of the QueryPageSettingEventArgs object to True.
|
View Answer
|
|
Your XYZ project team uses Visual Studio .NET to create an accounting application. Each team member uses the Write method of both the Debug class and the Trace class to record information about application execution in the Windows 2000 event log.. You are performing integration testing for the application. You need to ensure that only one entry is added to the event log each time a call is made to the Write method of either the Debug class or the Trace class. What are two possible code segments for you to use? (Each correct answer presents a complete solution. Choose two) A. EventLogTraceListener myTraceListener = new EventLogTraceListener(“myEventLogSource”); B. EventLogTraceListener myDebugListener = new EventLogTraceListener(“myEventLogSource”); Debug.Listeners.Add(myDebugListener); C. EventLogTraceListener myTraceListener = new EventLogTraceListener(“myEventLogSource”); Debug.Listeners.Add(myTraceListener); Trace.Listeners.Add(myTraceListener); D. EventLogTraceListener myDebugListener = new EventLogTraceListener(“myEventLogSource”); EventLogTraceListener myTraceListener = new EventLogTraceListener(“myEventLogSource”); Debug.Listeners.Add(myDebugListener); Trace.Listeners.Add(myTraceListener);
|
View Answer
|
|
You develop a Visual Studio .NET application that contains a function named XYZUpdate. For debugging purposes, you need to add an entry to a log file whenever XYZUpdate is executed. The log file is named DebugLog.txt. For maximum readability, you must ensure that each entry in DebugLog.txt appears on a separate line. Which code segment should you use? A. StreamWriter oWriter =. new StreamWriter(File.Open( @”C:DebugLog.txt”, FileMode.Append)); TextWriterTraceListener oListener = new TextWriterTraceListener(oWriter); Debug.Listeners.Add(oListener); Debug.WriteLine(“XYZUpdate “ + DateTime.Now.ToString); B. StreamWriter oWriter = new StreamWriter(File.Open( “C:\DebugLog.txt”, FileMode.Append)); TextWriterTraceListener oListener = new TextWriterTraceListener(oWriter); Debug.Listeners.Add(oListener); Debug.Write(“XYZUpdate “ + DateTime.Now.ToString); C. TextWriterTraceListener oListener = new TextWriterTraceListener(); oListener.Name = “C:\DebugLog.txt”; Debug.Listeners.Add(oListener); Debug.WriteLine(“XYZUpdate “ + DateTime.Now.ToString); D. TextWriterTraceListener oListener = new TextWriterTraceListener(); oListener.Name = “C:\DebugLog.txt”; Debug.Listeners.Add(oListener); Debug.Write(“XYZ“ + DateTime.Now.ToString);
|
View Answer
|
|
You develop an application that invokes a procedure named ProcessRecords. You implement the Trace class to log any errors thrown by ProcessRecords. You direct the Trace output to a local log file named ErrorLog.txt by using the following code segment: StreamWriter oWriter = new StreamWriter( File.Open(logfilePath, FileMode.Append)); TextWriterTraceListener oListener = new TextWriterTraceListener(oWriter); Trace.Listeners.Add(oListener); try { ProcessRecords(); }. catch (Exception oEx) { Trace.WriteLine(“Error: “ + oEx.Message; } finally { } Now you need to add code to your finally construct to write all output in the ErrorLog.txt file and then close the file. You want to write the minimum amount of code to achieve this goal. Which code segment should you use? A. oWriter.Close(); B. Trace.Flush(); oWriter.Close(); C. Trace.AutoFlush = true; oWriter.Close(); D. oWriter.AutoFlush = true; oWriter.Close();
|
View Answer
|