dotnet

using System;


24.04.2017.

Relational Databases

A relational database stores data in tables. Tables are composed of rows , and rows are composed of columns in which values are stored.

A table’s primary key provides a unique value that cannot be duplicated among rows.

Each column of a table represents a different attribute.

The primary key can be composed of more than one column.

A foreign key is a column in a table that must match the primary-key column in another table. This is known as the Rule of Referential Integrity.

Every column in a primary key must have a value, and the value of the primary key must be unique. This is known as the Rule of Entity Integrity.

A one-to-many relationship between tables indicates that a row in one table can have many related rows in a separate table.

Foreign keys enable information from multiple tables to be joined together. There’s a one-to- many relationship between a primary key and its corresponding foreign key.

22.04.2017.

Web Applications Deployment

What launch condition does a Web Setup Project include by default?

What are the four phases of a Web Setup Project deployment?

You need to add a registry entry to make your application function. In which phase of the Web Setup Project should you add the registry entry?

You need to make a change to an operating system-related registry entry to make your application function. You want to ensure you remove this change if setup is cancelled or the application is removed from the computer. In which phases should you undo your registry modification?

How can you cause a cached object to be automatically invalidated after a specific amount of time?

Where is Cache data stored - in memory, on the hard disk, in a database, or on a state server?

What types of data can you store in the Cache collection?

What must you do before you retrieve an object from the Cache collection?

You are creating an ASP.NET Web page that displays a list of customers generated by a database query. The user can filter the list so that only customers within a specific state are displayed. You want to maximize the performance of your Web application by using page output caching. You want to ensure users can filter by state, but you are not concerned about displaying updates to the list of customers because the customer list doesn't change very frequently. Which declarative @OutputCache attribute should you configure?

You need to programmatically configure page output caching. Which object would you use?

You want to cache an object but have it automatically expire in 10 minutes. How can you do this?

Which tool can you use to create performance counters?

22.04.2017.

Mobile Web Applications

What is the primary difference between the standard validator controls and the mobile validator controls?

What can you do to ensure that session state is maintained when mobile devices that don't accept cookies are accessing your mobile Web site?

You need to create a mobile Web site application. What steps should you take?

You have a mobile Label control on your mobile Web form. You want the text to be different based on whether the browser is Internet Explorer or a mobile device. How can you perform this task?

You created a mobile Web site that appears to be working properly for your users. Joe just purchased a new state-of-the-art mobile device. When he attempted to view a Calendar control on your Web site, the control attempted to render a month view, but Joe's mobile device screen wasn't big enough to display the calendar. You decide to create a new .browser file that represents Joe's mobile device and the settings will cause the calendar to render appropriately. How can you get the runtime to recognize the new .browser file settings?

21.04.2017.

User Profiles

You wish to create a user profile that uses a custom type as one of the profile properties. What actions must you take?

Which control would you use to provide a login link?

Which login controls are useful only to authenticated users?

You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?

By default, how does ASP.NET track which users have successfully authenticated using forms authentication?

21.04.2017.

Global and Local Resource Data

In which folder should you store global resource files?

In which folder should you store local resource files?

What must you do to enable users to select their own language preferences?

How can you define a control property using a global resource at design time?

You add a global resource with the name Login by using Visual Studio. How can you access the global resource programmatically?

What can you do to make a Web page more useful to users who use special displays or screen readers to make text more readable?

What can you do to make a Web page more useful to a user who does not use a mouse?

Which Image properties can you define to enable screen readers to describe a picture on a Web page?

20.04.2017.

Web Debugging

In which dialog box do you enable the ASP.NET debugger for your project?

What is the name of the element in the Web.config file that you use to define the debug attribute to turn on debugging for your site?

You are debugging an application on a test server. You have an issue on a particular page and need to get the error details. You do not want to turn on debugging for the entire site. What action should you take?

You are deploying your application to a production environment. You wish to redirect users to a default error page if they hit any unhandled exceptions or HTTP errors within the site. You also wish to indicate the user's requested resource on the error page to help with support calls. What action should you take?

You have an error that is only occurring when the application is deployed to the development or test server. You need to debug this error remotely. What action should you take?

How can you make trace data display on your Web page?

What is the name of the virtual page that you can request to view trace data when the trace data is not displayed on its corresponding Web page?

You want to identify which event in the Web page life cycle takes the longest time to execute. How can you accomplish this?

You are interested in examining the data that is posted to the Web server. What trace result section can you use to see this information?

You wish to configure ASP.NET health monitoring to log information every time a user fails to log in to the server. Which Web event class should you use?

20.04.2017.

Web Configuration

What type does WebConfigureManager.GetSection return, and how should you handle it?

How can you programmatically update a connection string stored in the Web.config file?

You catch an unhandled exception in Page_Error handler. How can you access the last error?

You need to have ASP.NET dynamically generate Word documents when a Web browser requests a file ending in a .doc extension. How can you do this?

How can you determine if the client is a bot indexing your site for a search engine?

You have created an ASP.NET search page and want to set the page title to "Search results:<Query>". How can you dynamically set the page title?

19.04.2017.

User Controls

What is the easiest way to group several TextBox and Label controls that can be dragged onto a Web page as a unit without writing much code?

What type of control can be used to provide data that is to be rendered but allows the Web page designer to specify the format of the data?

You wish to consume a user control on a page. However, you do not know the number of instances you wish to create. This information will be available at run time. Therefore, you wish to dynamically create these controls. Which actions should you take?

You want to create a user control to display data, but you are concerned that you don't know how the Web page designers want to format the data. Also, some of the page designers mention that the format of the data might be different, depending on the Web page. How can you best create a user control to solve this problem?

You have two TextBox controls inside your user control. You wish to allow a user of the user control to initialize, read, and modify the Text property of these controls. What step should you take?

You wish to create a new, custom Web server control that does not rely on any one existing ASP.NET control. From what class should you inherit?

You want to create a control that can be distributed as a .dll. The control contains several TextBox, Label, and Button controls and you want to be able to add the control to the Toolbox. What is the best choice of control to create?

You wish to create a new, custom control that extends from the CheckBox control. From which class should you inherit?

You wish to define a custom image to be displayed in the Toolbox for your custom Web server control. Which actions do you take?

You are going to create a custom Web server control that inherits directly from the WebControl class. Which method do you need to override to get your control to display in the browser window?

You are creating a composite control. You create a class that inherits from the CompositeControl class. What method must be overridden so you can provide code to instantiate the child controls and set their properties?

18.04.2017.

Web Services

What type of file do you use to create an XML Web service?

What is the name of the attribute class you apply to your Web service?

How do you identify a method as exposed as part of a Web service?

You wish to create a new Web service that will expose multiple methods that are meant to work with user-specific data through a transaction. You decide to use ASP.NET session state to manage the user's context on the server between Web service requests. How should you define your Web service?

You need to secure your Web service. The service will be accessed over the Internet by multiple different systems. Authentication information should be secured. You wish to trust only those callers that have been verified as trusted. What type of security should you consider?

How do you mark a class or interface as a WCF service?

How do you mark methods in an interface or class so they are exposed as part of the class's service contract?

You wish to write a WCF service application. You intend to host the service in IIS and leverage ASP.NET to build the service. What type of project should you create?

You define your own custom type to be used with your WCF service. This type represents a product at your company. It contains a number of public properties. You wish to expose this type in such a way as to be serialized and defined by an XSD schema. What actions should you take?

You write a WCF service. You wish to indicate that a method of the service never returns a message. Rather, it is meant to be called with the assumption that no message will be returned. Which parameter of the OperationContract class should you use?

17.04.2017.

Data Source Controls

Which attribute of the SqlDataSource control do you use to define a connection to the database?

How do you define an ObjectDataSource to connect to a business object?

Which attribute of the LinqDataSource control do you use to indicate the O/R class used for connecting to and working with LINQ-based data?

You have a data context map for your SQL Server database defined inside a class file. You need to connect to this data using a data source control. Which data source control should you use?

You are using an ObjectDataSource control to connect to a business object. Which attributes of the control must you set to return data for the given data source?

You wish to apply caching to your data source control to increase your scalability for frequently used data. You wish to set the cache to expire every 60 seconds. Which attributes of your data source control should you set to do so?

What method should you call on a data-bound control when the data is ready to be read from the data source?

What method is used in a FormView to perform two-way data binding?

What GUI object can provide a data source that allows you to connect middle-tier objects to data-bound controls?

You wish to display a list of suppliers on a Web page. The supplier list must display 10 suppliers at a time, and you required the ability to edit individual suppliers. Which Web control is the best choice for this scenario?

You want to display a list of parts in a master-detail scenario where users can select a part number from a list that takes a minimum amount of space on the Web page. When the part is selected, a DetailsView control displays all the information about the part and allows users to edit the part. Which Web control is the best choice to display the part number list for this scenario?


Stariji postovi

<< 04/2017 >>
nedponutosricetpetsub
01
02030405060708
09101112131415
16171819202122
23242526272829
30

MOJI LINKOVI

MOJI FAVORITI
-

BROJAČ POSJETA
3755

Powered by Blogger.ba