You are working for an online retailer on a section of the site that allows people
to create new customer records. At the moment the customer table has primary key of
first name and last name.
You get a support call one day form customer care stating that John Smith cannot create a
new account. Upson investigation you realize that you already have a John Smith as a
customer.
How would you alter the database to allow for multiple customers with the same name?
A -
Add a timestamp field to the customer table and include it in primary key.
B -
Have John Smith create his records as John Smith2.
C -
Crete a new field called CustomerID of type integer and make it an identity field and the primary key.
D -
Remove the primary key so the second John Smith can add his record.
2-
You are a developer working on transaction processing application for an
online retailer. You are currently implementing a new feature where the exact date and
time of the transaction is stored, so that you can guarante shipment within 48 hours.
You are working on a report that locates unshipped orders that are more than 40 hours
old. You find that some orders are causing data errors. Upon investigation you find that
the order date and time are being stored in an nvarchar(30) field and that the format of the
date is not uniform.
What is the best way to fix this problem?
A -
Change the datatype on the field to datetime and rewrite the query.
B -
Change the data type to varchar(30).
C -
Write a function that parses all the different date formats and returns the data you need.
D -
Write a stored procedure that checks for missing medical record numbers and assigns them. Schedule this stored procedure to run nightly.
3-
You are working for a medical records ompany. Your company makes serveral
products all of which use the same database. One of your applications is reporting a data
error because there is no medical record number associated with some of the medical
records.
Upon investigation you discover that the pocket PC application is not requiring that a
medical record number be generated for each record. The pocket PC group is asked to fix
their application and you are asked to fix the database.
After you assign medical record numbers to the orphan records, what is the best solution?
A -
Make the MedicalRecordNo field required in the table.
B -
If a theme is defined in web.config
C -
Write a stored procedure that checks for missing medical record numbers and assigns them. Schedule this stored procedure to run nightly.
D -
Write a trigger that sends you an email when a record is written without a medical record number.
4-
You can use a compare validator to perform all but one of the following
validations. Which one is it?
A -
Compare the value of a control with an expression that refers to the value of another control.
B -
Compare the value of a control with the value of another control
C -
Compare the value of a control with a constant value
D -
Check for a specific data type
5-
You cannot directly apply an ASP.NET theme to a master page. However,
themes are applied to master pages under these circumstances:
A -
All of the others
B -
If a theme is defined in web.config
C -
If a global theme is defined
D -
If a theme is defined in the content page. Master pages are resolved in the content pages, so the content pages theme is applied to the master page as well.
6-
You create an ASP.NET page that allows a user to enter a requested delivery
date in a TextBox control named requestTKDate. The date must be no earlier than two
business days after the order date, and no later that 60 business days after the order date.
You add a CustomValidator control to your page. In the Properties window, you set the
ControlToValidate property to requestTKDate.
You need to ensure that the date entered in the requestDate TextBox control falls within
the acceptable range of values. In addition, you need to minimize the number of round
trips to the server.
What should you do?
A -
Set the AutoPostBack property of requestDate to True. Set the ClientValidationFunction property to the name of a script function contained in the HTML page that is sent to the browser.
B -
Set the AutoPostBack property of requestDate to False. Set the ClientValidationFunction property to the name of a script function contained in the HTML page that is sent to the browser.
C -
Set the AutoPostBack property of requestDate to False. Write code in the ServerValidate event handler to validate the date.
D -
Set the AutoPostBack property of requestDate to True. Write code in the ServerValidate event handler to validate the date.
7-
You create an ASP.NET application for Regalia Bank. The project manager
requires a standard appearance for all Web applications. Standards are expected to
change periodically. You need to enforce these standards and reduce maintenance time.
What should you do?
A -
Create a sample ASP.NET Web form.
B -
Create a cascading style sheet.
C -
Create a Microsoft Visual Studio .NET Enterprise template.
D -
Create a sample HTML page.
8-
You have developed a timeheet entry application that will be used by all
employees in your company. You have used ASP.NET to develop this application and
have deployed it on the companys Web server. What should all the employees of the
company install on therir computers before accessing the timesheet entry application.
A -
Visual Studio .NET
B -
.NET Framework SDK
C -
.NET Famework Redistributable
D -
A Web browser
9-
You have organized your files two folder: web_pages and web_image. The
folder web_images contains an image "theseus.jpg" which should appear on the page
main.html in the folder web_pages.
Which is the correct code:
A -
<img src= "./web_images/theseus.jpg"/>
B -
<img src= "theseus.jpg"/>
C -
<img src= "/web_images/theseus.jpg"/>
D -
<img src= "../web_images/theseus.jpg">
10-
You have designed a Web form that uses a DropDownList control to allow a
user to select a state containing her shipping address. Youve implemented an event
handler for the SelectedIndexChanged event to update the sales tax amount displayed on
the Web form when a new state is selected.
User report that the sales tax amount is not updated no matter which state they choose in
the DropDownList control.
What must you do to fix this problem?
A -
Set the EnableViewState property of the DropDownList control to true.
B -
Move the code to the PreRender event of the DropDownList control.
C -
Set the AutoPostBack property of the DropDownList control to true.
D -
Replace the DropDownList control with a ListBox control