While creating an ASP.NET web application which help of Visual Studio 2005
you are creates a Web page that has server related buttons, such as fast-forward, reverse,
play, stop, and pause. There should be one event handler that handles the processes of
PostBack from these Button server controls. Other than the normal Submit button, what
type of button can you create?
A -
ManyToOne
B -
OneToMany
C -
Command
D -
Reset
2-
While creating web site you neeed to add an HTML Web server control to the
Web page, you need to drag an HTML element from the ToolBox of Visual Studio 2005
to the Web page and then which of the following tasks you will perform?
A -
Click the HTML element and set ServerControl to true in the Properties window
B -
Right-click the HTML element and click Run=Server
C -
Double-click the HTML element to convert it to an HTML server control
D -
Right-click the HTML element and click Run As Server Control
3-
While developing ASP.NET 2.0 web application you want to display a list of
parts in a master/detail scenario where the user can select a part number using 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 the user to edit
the part. Which Web control is the best choice to dislay the part number list for this
scenario?
A -
The RadioButtonList control
B -
The TextBox control
C -
The DropDownList control
D -
The FormView control
4-
XML is an acronym for ____.
A -
Extra Markup Language
B -
Extensible Markup Language
C -
Exact Markup Language
D -
Exciting Markup Language
5-
You allow users to edit product information on a DataGrid control bound to a
DataSet object. When a user clicks the Update button on the form, you call the
SqlDataAdapter.Update() method to cause the changes from the DataSet object to persist
to the underlying database.
Users reports that new records and updated rows are saved properly but deleted rows are
reappearing the next time they run the application. What could be the problem?
A -
The users do not have permission to update the underlying table
B -
The DeleteCommand property of the SqlDataAdapter object points to a SqlCommand object that does not property delete rows.
C -
The Update() method does not delete rows
D -
Some is restoring an old version of the database between the two executions of the program
6-
You are designing a global time-entry system for a multinational company. It
will be an ASP.NET application served over the Internet through the companys Web
server. You are designing an error-handling mechanism for this application and want the
application to show a customized error page for all HTTP errors. All unhandled
exceptions caused by ASP.NET pages within your application should be logged in the
Web servers event log; all other applications on the Web server should remain
unaffected. You want a solution that requires minimum modifications. Which of the
following places will be your preferred places to write this code?
A -
In the ASPX page, using the Page directive machine.config
B -
machine.config global.asax
C -
web.config global.asax
D -
In the ASPX page, using the Page directive global.asax
7-
You are developing a component that nedd to expose a property named Count
to its container. The Count property should be read-only . How should you implement the
property?
A -
private int count; public int Count { get{count=value;} }
B -
private int count;
C -
private int count; public int Count { get{return count;} set{count=value;} }
D -
private int count; public int Count { get{return count;} }
8-
You are maintaining an ASP.NET application named HUISalesForecast. The
application is writen in Visual C# .NET. The application includes a page named
FirsQuarter.aspx that resides within the Sales namspaces. The page class is named
FirstQuarter.
You discover that another developer inadvertently deleted the Page directive for
FirstQuarter.aspx. You want to create a new Page directive to allow FirstQuarter.aspx to
work property.
Which directive should you use?
You are creating an ASP.NET page for HUI. The page uses string
concatenation to gather data from multiple e-mail messages and format the data for
display on the page You want to ensure that the page displays as quickly as possible. What should you do?
A -
Write code that uses the Append method of the StringBuider object
B -
Write code that uses the Concat method of the String object
C -
Write code that uses the plus-sgn(+) operator to concatenate the strings
D -
Write code that uses the Substring method to the String object
10-
You are createing an ASP.NET application called TestKApp that will be used
by companies to quickly create information portals customized to their business.
TestKApp stored commonly used text strings in application variables for use by the page
in your application.
You need your application to initialize these text strings only when the first user accesses
the application. What should you do?
A -
Include code in the Page.Load event handler for the default application page that sets the values if the text strings when the IsPostback property of the Page object is False.
B -
Add code to the Application_OnStart event handler in the Global.asax file to set the values of the text strings
C -
Include code in the Page.Load event handler for the default application page that sets the values of the text strings when the IsNewSession property of the Session object is set to True.
D -
Add code to the Application_BeginRequest event handler in the Global.asax file to set the values of the text strings.