Tag: technology

Questions Related to technology

  1. Use XCOPY to install the assembly in the global assembly cache.

  2. Use XCOPY to install the assembly in the Windows\Assembly folder.

  3. Create a strong name for the assembly.

  4. Recompile the assembly by using the Native Image Generator (Ngen.exe).


Correct Option: C

You use Visual Studio .NET to develop a Windows-based application called ABCApp. 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?

  1. Set the RowFilter property of the DataView object to "BackOrder = True".

  2. Set the RowStateFilter property of the DataView object to "BackOrder = True".

  3. Set the Sort property of the DataView object to "BackOrder = True".

  4. Set the ApplyDefaultSort property of the DataView object to True.


Correct Option: A
  1. In the BeginPrint event, set the HasMorePages property of the PrintEventArgs object to True.

  2. In the EndPrint event, set the HasMorePages property of the PrintEventArgs object to True.

  3. In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to True.

  4. In the QueryPageSettings event, set the HasMorePages property of the QueryPageSettingEventArgs object to True.


Correct Option: C

You develop a Windows-Based application that accesses a Microsoft SQL Server database named ABC. Users must supply a user name and password when they start the application. This information is then used to dynamically build a connection string. When you test the application, you discover that it is not using the SqlClient connection pooling feature. You must reduce the time needed to retrieve information. How should you modify the connection string?

  1. to use the Windows user logon when connection to the TestKing1 database.

  2. to use the SQL Server used login when connection to the TestKing1 database.

  3. to use the same application logon ID and password for every connection to the TestKing1 database.

  4. to use the guest login ID and password for every connection to the TestKing1 database.


Correct Option: C

You are preparing a localized version of a Windows Form named ABCLocal. Users of ABCLocal speak a language that prints text from right to left. User interface elements on the form need to conform to this alignment. You must ensure that all user interface elements are properly formatted when the localized Windows Form runs. You must also ensure that ABCLocal is easy to update and maintain. What should you do?

  1. Set the RightToLeft property of each control on the form to Yes.

  2. Set the RightToLeft property of the form to Yes.

  3. Set the Language property of the form to the appropriate language.

  4. Set the Localizable property of the form to True.


Correct Option: B

You develop a Windows-based application that contains a form named ContactABC. You need to write code to initialize all class-level variables in ContactABC as soon as ContactABC is instantiated. You will place your code in a public procedure in the ContactABC class. Which public procedure should you use?

  1. Create

  2. Initialize

  3. Load

  4. New


Correct Option: D

AI Explanation

To answer this question, you need to understand the purpose of each public procedure in the ContactABC class. Let's go through each option to understand why it is correct or incorrect:

Option A) Create - This option is incorrect because the "Create" procedure is not a valid public procedure in the ContactABC class.

Option B) Initialize - This option is incorrect because the "Initialize" procedure is not a valid public procedure in the ContactABC class.

Option C) Load - This option is incorrect because the "Load" procedure is typically used to load data or perform initialization tasks when a form is loaded, not when the ContactABC class is instantiated.

Option D) New - This option is correct because the "New" procedure is a valid public procedure in the ContactABC class. It is called when a new instance of the ContactABC class is created, allowing you to initialize class-level variables at that time.

The correct answer is D) New. This option is correct because it allows you to initialize all class-level variables in ContactABC as soon as it is instantiated.

You use Visual Studio .NET to create several Windows-based applications. All use a common class library assembly named ABCCustomers. You deploy the application to client computers on your company intranet. Later, you modify ABCCustomers.Any application that uses version 1.0.0.0 must now user version 2.0.0.0. What should you do?

  1. Modify the machine configuration file on your client computers.

  2. Modify the application configuration file for Customers.

  3. Modify the Publisher Policy file containing a reference to Customers.

  4. Modify the reference patch for Customers.


Correct Option: C

You develop a Windows-based application ABCApp by using Visual Studio .NET. ABCApp uses a SqlConnection object for database access. You typically run ABCApp on a computer that has limited RAM and hard disk space. After the code finishes using the SqlConnection object, you must ensure that the connection is closed and that any resources consumed by the object are released immediately. What should you do?

  1. Call the Finalize method of the SqlConnection object.

  2. Call the Dispose method of the SqlConnection object.

  3. Set the SqlConnection object equal to Nothing.

  4. Set the SqlConnection object equal to “”.


Correct Option: B

You plan to develop a customer information application CustomABC that uses a Microsoft SQL Server database. CustomABC will be used frequently by a large number of users. Your application code must obtain the fastest possible performance when accessing the database and retrieving large amounts of data. You must accomplish this goal with the minimum amount of code. How should you design CustomABC?

  1. Use classes in the System.Data.OleDb namespace.

  2. Use classes in the System.Data.SqlClient namespace.

  3. Use remoting to connect to the SQL Server computer.

  4. Use interoperability to include legacy COM-based data access components.


Correct Option: B