Sponsored Links

Interview Questions



Advertisements MCSD.NET - 70-315 Exam Interview Questions
COOLINTERVIEW.COM MCSD .NET CERTIFICATION EXAM INTERVIEW QUESTIONS MCSD.NET - 70-315 EXAM INTERVIEW QUESTIONS QUESTIONS LISTING

MCSD.NET - 70-315 Exam Interview Questions & Answers

Below we have listed all the MCSD.NET - 70-315 Exam Interview Questions and answers. Feel free to comment on any MCSD.NET - 70-315 Exam Interview Questions or answer by the comment feature available on the page.

To buy an eBook containing 30,000 Interview Questions, with Answers, Click Here.
View All MCSD.NET - 70-315 Exam Interview Questions & Answers - Exam Mode / Learning Mode

MCSD.NET - 70-315 Exam Interview Questions & Answers

MCSD.NET - 70-315 Exam. Developing and Implementing Web Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET. Candidates for this exam work on a team in a medium-sized or large development environment that uses Microsoft Visual Studio .NET, Enterprise Developer Edition. Candidates should have at least one year of experience developing Web-based applications. Candidates should have a working knowledge of Microsoft Visual C# .NET. When you pass Exam 70-315: Developing and Implementing Web Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET, you achieve Microsoft Certified Professional (MCP) status.

Previous 1 2 3 4

Sort By : Latest First | Oldest First | By Rating

Question
Rating
View Answer
You are creating an ASP.NET page for XYZ. You create a DataGrid control that displays past
purchases made by the user. The DataGrid control is populated from an existing database when
the page is created.
The page contains TextBox controls that allow users to update their personal information, such as
address and telephone number.
You need to ensure that the page is refreshed as quickly as possible when users update their
contact information.
What should you do?
A. Set the Enable property of the DataGrid control to false.
B. Set the EnableViewState property of the DataGrid to false.
C. Write code in the Page.Load event handler that populates the DataGrid control only when the
IsPostBack property of the page is false.
D. Write in the Page.Load event handler that populates the DataGrid control only when the
IsPostBack property of the page is true.
0.2 Rating
View Answer
You create a Web custom control named EXToggle that users can turn on and off. The EXToggle
control includes a Button control named toggleButton. You write an event handler named
toggleButton_Click for the toggleButton.Click event. This event adjusts the BorderStyle property
to signify whether the Button is toggled on or off.
You want to add code to the EXToggle class so that when toggleButton is clicked, pages that
contain instances of EXToggle can process custom event handling code. You add the following
code to the EXToggle class:
public event EventHandler ChangedValue;
protected void OnChangedValue(EventArgs e)
{
ChangedValue(this, e);
}
You need to add code to the toggleButton_Click so that pages that contain instances of EXToggle
can handle the ChangedValue event and process custom event handling code.
Which lines of code are two possible ways to achieve this goal? (Each correct answer presents a
complete solution. Choose two)
A. ChangedValue(this, EventArgs.Empty);
B. s.Click += new System.EventHandler(this.OnChangedValue);
C. OnChangedValue(EventArgs.Empty);
D. OnChangedValue(this, EventArgs.Empty);
0.2 Rating
View Answer
You are creating an ASP.NET application for an online payment service. The service allows users
to pay their bills electronically by using a credit card.
The application includes a payment page named Payment.aspx. This page contains a form for
entering payee, payment amount, and credit card information. When a user needs to submit a
new billing address to a payee, the page form allows the user to provide the new address
information.
If the user indicates a change of address, the application needs to provide the information to the
ProcessAddressChange.aspx page for processing as soon as the user submits the payment
page information. The ProcessAddressChange.aspx page processes the request for a change of
address but does not provide any display information for the user.
When the requested processing is complete. Payment.aspx displays status results to the user.
You need to add a line of code to Payment.aspx to perform the functionality in
ProcessAddressChange.aspx. Which line of code should you use?
A. Response.Redirect(“ProcessAddressChange.aspx”);
B. Response.WriteFile(“ProcessAddressChange.aspx”);
C. Server.Transfer(“ProcessAddressChange.aspx”,True);
D. Server.Execute(“ProcessAddressChange.aspx”);
0.2 Rating
View Answer
You create an ASP.NET page to display a sorted list of products in a DataGrid control. The
product data is stored in a Microsoft SQL Server database. Each product is identified by a
numerical value named ProductID, and each product has an alphabetic description named
ProductName. You write ADO.NET code that uses a SqlDataAdapter object and a SqlCommand
object to retrieve the product data from the database by calling a stored procedure.
You set the CommandType property of the SqlCommand object to
CommandType.StoredProcedure. You set the CommandText property of the object to
procProductList. Your code successfully fills a DataTable object with a list of products that is
sorted by ProductID in descending order.
You want the data to be displayed in reverse alphabetic order by ProductName.
What should you do?
A. Change the CommandType property setting of the SqlCommand object to
CommandType.Text.
Change the CommandText property setting of the SqlCommand object to the following:
SELECT * FROM procProductList ORDER BY ProductName DESC;
Bind the DataGrid control to the DataTable object.
B. Create a new DataView object based on the DataTable object.
Set the Sort Property of the DataView object to “ProductName DESC”.
Bind the DataGrid control of the DataView object.
C. Set the AllowSorting property of the DataGrid control to True.
Set the SortExpression property of the DataGridColumn that displays ProductName to
“ProductName DESC”.
Bind the DataGrid control to the DataTable object.
D. Set the DisplayExpression property of the DataTable object to “ORDER BY ProductName
DESC”.
Bind the DataGrid control to the DataTable object.
0.2 Rating
View Answer
You create an ASP.NET application that will run on XYZ’s Internet Web site. Your application
contains 100 Web pages. You want to configure your application so that it will display customized
error messages to users when an HTTP code error occurs.
You want to log the error when an ASP.NET exception occurs. You want to accomplish these
goals with the minimum amount of development effort.
Which two actions should you take? (Each correct answer presents part of the solution. Choose
two)
A. Create an Application_Error procedure in the Global.asax file for your application to handle
ASP.NET code errors.
B. Create an applicationError section in the Web.config file for your application to handle
ASP.NET code errors.
C. Create a CustomErrors event in the Global.asax file for your application to handle HTTP
errors.
D. Create a CustomErrors section in the Web.config file for your application to handle HTTP
errors.
E. Add the Page directive to each page in the application to handle ASP.NET code errors.
F. Add the Page directive to each page in the application to handle HTTP errors.
0.2 Rating
View Answer
You create an ASP.NET application and deploy it on a test server named XYZSrv. The
application consists of a main page that links to 30 other pages containing ASP.NET code.
You want to accomplish the following goals:
• Enable tracing on all the pages in the application except the main page.
• Display trace output for up to 40 requests.
• Ensure that trace output is appended to the bottom of each of the pages that will contain
trace output.
• Ensure that any configuration changes affect only this application.
You need to accomplish these goals with the minimum amount of development effort.
Which three actions should you take? (Each correct answer presents part of the solution.
Choose three)
A. Add the following element to the Web.config file:
<trace enabled=”true” pageOutput=”true”/>
B. Add the following attribute to the Trace element of the application’s Web.config file:
requestLimit=40
C. Add the following attribute to the Trace element of the application’s Machine.config file:
requestLimit=40
D. Set the Trace attribute of the Page directive to true for each page except the main page.
E. Set the Trace attribute of the Page directive to false for the main page.
F. Set the TraceMode attribute of the Page directive to SortByTime for the main page.
0.2 Rating
View Answer
You are creating an ASP.NET page to enroll new members in a health care program for XYZ
employees. One of the requirements for membership is that a participant must be at least 65
years old.
You need to ensure that each prospective member enters a name in a TextBox control named
nameTextBox and a date of birth in a TextBox control named birthdayTextBox. In addition, you
need to verify that prospective members meet the age requirement.
What should you do?
A. Add a CustomValidator to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code to validate the date of birth.
Add a RegularExpressionValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox, and create a
regular expression to validate the name.
B. Add a CompareValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code that sets the Operator and ValueToCompare properties to validate the date of birth.
Add a RequiredFieldValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox.
C. Add a RangeValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code that sets the MinimumValue and MaximumValue properties to validate the date of
birth.
Add a CompareValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox.
Add a second CompareValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code that sets the Operator and ValueToCompare properties of the two
CompareValidator controls to validate the name and date of birth.
D. Add a CustomValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox, and write
code to validate the date of birth.
Add a RequiredFieldValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox.
Add a second RequiredFieldValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
0.2 Rating
View Answer
You are creating an ASP.NET page to enroll new members in a health care program for XYZ
employees. One of the requirements for membership is that a participant must be at least 65
years old.
You need to ensure that each prospective member enters a name in a TextBox control named
nameTextBox and a date of birth in a TextBox control named birthdayTextBox. In addition, you
need to verify that prospective members meet the age requirement.
What should you do?
A. Add a CustomValidator to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code to validate the date of birth.
Add a RegularExpressionValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox, and create a
regular expression to validate the name.
B. Add a CompareValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code that sets the Operator and ValueToCompare properties to validate the date of birth.
Add a RequiredFieldValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox.
C. Add a RangeValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code that sets the MinimumValue and MaximumValue properties to validate the date of
birth.
Add a CompareValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox.
Add a second CompareValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
Write code that sets the Operator and ValueToCompare properties of the two
CompareValidator controls to validate the name and date of birth.
D. Add a CustomValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox, and write
code to validate the date of birth.
Add a RequiredFieldValidator control to the page.
In the Properties window, set the ControlToValidate property to nameTextBox.
Add a second RequiredFieldValidator control to the page.
In the Properties window, set the ControlToValidate property to birthdayTextBox.
0.2 Rating
View Answer
You company XYZ Inc. hosts an ASP.NET application that provides customer demographic
information. Some of the demographics data is presented by using images..
The target audience for the application includes a significant number of users who have low
vision. These individuals use various browsers that vocalize the textual content of Web pages.
These users need to receive the content of the images in vocalized form.
You need to modify the application to make it accessible for your target audience. You need to
accomplish this task with the minimum amount of development effort.
How should you modify the application?
A. Modify all ASP.NET pages in the application so that the view state is enabled.
B. Modify all ASP.NET pages in the application to add custom logic that conveys the
demographic information in either textual or graphical format.
C. Modify all images in the application so that the ToolTip property conveys the same
demographic information as the image.
D. Modify all images in the application so that the AlternateText property conveys the same
demographic information as the image.
0.2 Rating
View Answer
You create an ASP.NET application to provide corporate news and information to XYZ’s
employees. The application is used by employees in New Zealand.
Default.aspx has a Web Form label control named currentDateLabel. The Page.Load event
handler for Default.aspx included the following line of code:
currentDateLabel.Text = DateTime.Now.ToString(“D”)
You need to ensure that the data is displayed correctly for employees in New Zealand. What
should you do?
A. In the Web.config file for the application, set the culture attribute of the globalization element to
en-NZ.
B. In the Web.config file for the application, set the uiCulture attribute of the globalization element
to en-NZ.
C. In Visual Studio .NET, set the responseEncoding attribute in the page directive for
Default.aspx to UTF-8.
D. In Visual Studio .NET, save the Default.aspx page for both versions of the application by
selecting Advanced Save Options from the File menu and selecting UTF-8.
0.2 Rating
View Answer
You create an ASP.NET page named XYZCalendar.aspx that shows scheduling information for
projects in your company. The page is accessed from various other ASP and ASP.NET pages
hosted throughout the company’s intranet. All employees on the intranet use Internet Explorer.
XYZCalendar.aspx has a Calendar control at the top of the page. Listed below the Calendar
control is detailed information about project schedules on the data selected. When a user selects
a date in the calendar, the page is refreshed to show the project schedule details for the newly
selected date.
Users report that after viewing two or more dates on XYZCalendar.aspx, they need to click the
browser’s Back button several times in order to return to the page they were viewing prior to
accessing XYZCalendar.aspx.
You need to modify XYZCalendar.aspx so that the users need to click the Back button only once.
What should you do?
A. Add the following statement to the Page.Load event handler for XYZCalendar.aspx:
Response.Expires(0);
B. Add the following statement to the Page.Load event handler for XYZCalendar.aspx:
Response.Cache.SetExpires (DateTime.Now());
C. Add the following attribute to the Page directive for XYZCalendar.aspx:
EnableViewState=”True”
D. Add the following attribute to the Page directive for XYZCalendar.aspx:
SmartNavigation=”True”
0.2 Rating
View Answer
Question: 11.
You create an ASP.NET application and deploy it on a test server named XYZSrv. The
application consists of a main page that links to 30 other pages containing ASP.NET code.
You want to accomplish the following goals:
• Enable tracing on all the pages in the application except the main page.
• Display trace output for up to 40 requests.
• Ensure that trace output is appended to the bottom of each of the pages that will contain
trace output.
• Ensure that any configuration changes affect only this application.
You need to accomplish these goals with the minimum amount of development effort.
Which three actions should you take? (Each correct answer presents part of the solution.
Choose three)
A. Add the following element to the Web.config file:
<trace enabled=”true” pageOutput=”true”/>
B. Add the following attribute to the Trace element of the application’s Web.config file:
requestLimit=40
C. Add the following attribute to the Trace element of the application’s Machine.config file:
requestLimit=40
D. Set the Trace attribute of the Page directive to true for each page except the main page.
E. Set the Trace attribute of the Page directive to false for the main page.
F. Set the TraceMode attribute of the Page directive to SortByTime for the main page.
0.2 Rating
View Answer
You create a reporting application for XYZ’s Travel. You create several reports, each of which
resides in its own folder under the Report folder. Each subfolder has the appropriate security
rights sets for Microsoft Windows users.
You write a function named ListReports that generate a list of available reports. You want to
configure the application and the ListReports function to find out which reports are available to the
current user.
If a user is logged in by using Windows authentication, you want ListReports to apply that user’s
rights. If the user is not logged in by using Windows authentication, you want ListReports to use
the rights granted to the XYZtravelReportingAccount user account. The password for this user
accounts is “p1XYZi32”
Which two actions should you take? (Each correct answer presents part of the solution. Choose
two)
A. Add the following element to the Web.config file:
<identity impersonate=”false”>
B. Add the following element to the Web.config file.
<identify impersonate=”true”>
C. Add the following element to the Web.config file:
<identity impersonate=”true”
userName=”margiestravelReportingAccount”
password=” p1XYZi32”>
D. Add the following element to the Web.config file:
<authorization>
<allow user=”XYZtravelReportingAccount”>
</authorization>
E. Add code to the ListReports function to create and use a WindowsPrincipal object based on
the XYZtravelReportingAccount user account only if no user is authenticated.
F. Add code to the ListReports function to always create and use a WindowsPrincipal object
based on the XYZstravelReportingAccount user account.
0.2 Rating
View Answer
You are creating an ASP.NET page for XYZ. You create a DataGrid control that displays past
purchases made by the user. The DataGrid control is populated from an existing database when
the page is created.
The page contains TextBox controls that allow users to update their personal information, such as
address and telephone number.
You need to ensure that the page is refreshed as quickly as possible when users update their
contact information.
What should you do?
A. Set the Enable property of the DataGrid control to false.
B. Set the EnableViewState property of the DataGrid to false.
C. Write code in the Page.Load event handler that populates the DataGrid control only when the
IsPostBack property of the page is false.
D. Write in the Page.Load event handler that populates the DataGrid control only when the
IsPostBack property of the page is true.
0.2 Rating
View Answer
You are creating an ASP.NET application for XYZ. An earlier version of the application uses
ActiveX components that are written in Visual Basic 6.0. The new ASP.NET application will
continue to use the ActiveX components.
You want the marshaling of data between your ASP.NET application and the ActiveX
components to occur as quickly as possible.
Which two actions should you take? (Each correct answer presents part of the solution. Choose
two)
A. Use ODBC binding.
B. Use late binding.
C. Use early binding
D. Set the AspCompat attribute of the Page directive to true.
E. Set the AspCompat attribute of the Page directive to false.
0.2 Rating
View Answer
You create a new ASP.NET application named XYZSalesReports on your development
computer. You add code to the default WebForm1. To test the code’s functionality, you copy the
entire XYZSalesReports folder from the C:inetpubwwwroot folder on your computer to the
C:inetpubwwwroot folder on a separate Microsoft Windows 2000 Server computer named XYZ1.
XYZ1 hosts several ASP.NET applications.
When you use the browser on your computer to open the copy of the application hosted on XYZ1,
you receive the following error message:
“It is an error to use a section registered as allowDefinition=”MachineToApplication’ beyond
application level.”
You want to correct this error without altering the other Web sites that are hosted on XYZ1.
What should you do?
A. Use Internet Information Services (IIS) to create a virtual directory that points to the
XYZSalesReports folder on XYZ1.
B. Remove the following element from the Web.config file in
CinetpubwwwrootXYZSalesReports on XYZ1:
<authentication mode=”Windows” />
C. Remove the following element from the Web.config file in C:inetpubwwwroot on XYZ1:
<authentication mode=”Windows” />
D. Move the XYZSalesReports folder on XYZ1 up one level, so that it is a subfolder of the inetpub
folder.
0.2 Rating
View Answer
You are creating an ASP.NET application for XYZ. Your application will call an XML Web service
run by Wide World Importers. The XML Web service will return an ADO.NET DataSet object
containing a list of companies that purchase wine.
You need to make the XML Web service available to your application.
What should you do?
A. On the .NET tab of the Reference dialog box, select System.Web.Services.dll.
B. In the Web References dialog box, type the address of the XML Web service.
C. Add a using statement to your Global.asax.cs file, and specify the address of the XML Web
service.
D. Write an event handler in the Global.asax.cs file to import the .wsdl and .disco files associated
with the XML Web service.
0.2 Rating
View Answer

Previous 1 2 3 4




User Options
India News Network

Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal



Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




Copyright ©2003-2024 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions