Case Study: 1
Scenario 1
Background
You are developing an ASP.NET MVC application in Visual Studio 2012 that will be used by Olympic marathon
runners to log data about training runs.
Business Requirements
The application stores date, distance, and durationinformation about a user’s training runs. The usercan view,
insert, edit, and delete records.
The application must be optimized for accessibility. All times must be displayed in the user’s local time.
Technical Requirements
Data Access:
Database access is handled by a public class named RunnerLog.DataAccess.RunnerLogDb. All data retrieval
must be done by HTTP GET and all data updates must be done by HTTP POST.
Layout:
All pages in the application use a master layout file named \Views\Shared\_Layout.cshtml.
Models:
The application uses the \Models\LogModel.cs model.
Views:
All views in the application use the Razor view engine.
Four views located in \Views\RunLog are named:
_CalculatePace.cshtml
EditLog.cshtml
GetLog.cshtml
InsertLog.cshtml
The application also contains a \Views\Home\Index.cshtml view.
Controllers:
The application contains a \Controllers\RunLogController.cs controller.
Images:
A stopwatch.png image is located in the \Images folder.
Videos:
A map of a runner’s path is available when a user views a run log. The map is implemented as an Adobe Flash
application and video. The browser should display the video natively if possible, using H264, Ogg, or WebM
formats, in that order. If the video cannot be displayed, then the Flash application should be used.
Security:
You have the following security requirements:
The application is configured to use forms authentication.
Users must be logged on to insert runner data.
Users must be members of the Admin role to edit or delete runner data. There are no security requirements
for viewing runner data.
You need to protect the application against cross-site request forgery.
Passwords are hashed by using the SHA1 algorithm.
RunnerLog.Providers.RunLogRoleProvider.es contains a custom role provider. Relevant portions of the
application files follow. (Line numbers are included for reference only.) Application Structure
********************************************************************
You need to make the “Distance” header of the tablebold in the Views/RunLog/GetLog.cshtml view.
Which code segment should you use?
A.
table>tr{ font-weight: bold; }
B.
table>th:last-child{ font-weight: bold; }
C.
table+first-child{ font-weight: bold; }
D.
table>tr>th:nth-child (2) { font-weight: bold; }
Is index in nth-child zero-based? If it’s not, D would not be an answer. Second column would be the Date.
0
0
Also Distance is within a td element, not a th element so.
Shouldn’t it in fact be
table > tr > td:nth-child(2) { font-weight:bold; }
0
1
Never mind, I missed the th above that.
0
0
Non of this is correct:
probably should be: table>tr>th:nth-child (3) { font-weight: bold; }
1
0
I agree with Mirda
0
0
Basically this question is wrong. By default th renders as bold. if it supposed that all header cells are in normal font, then it should be
table tr td:nth-child(3) { font-weight:bold }
because the header column is on index 3.
Also, none of the given answers works.
Wrong: table>tr>td:nth-child(2) { font-weight:bold }
Correct: table tr td:nth-child(3) { font-weight:bold }
0
0
correct…even table tr>td:nth-child(3) will work
0
0
Please pay a visit to the web-sites we adhere to, including this a single, as it represents our picks in the web.
0
0
Wonderful story, reckoned we could combine some unrelated information, nonetheless genuinely really worth taking a look, whoa did one particular learn about Mid East has got additional problerms also
0
0
usually posts some extremely interesting stuff like this. If youre new to this site
0
0
the time to read or pay a visit to the subject material or sites we’ve linked to beneath the
0
0
just beneath, are numerous totally not related sites to ours, nevertheless, they are surely really worth going over
0
0
Every as soon as inside a though we decide on blogs that we read. Listed below would be the most up-to-date web-sites that we pick out
0
0
Here is a superb Weblog You may Find Exciting that we Encourage You
0
0
Sites of interest we have a link to
0
0
below you will uncover the link to some web pages that we consider you’ll want to visit
0
0
please pay a visit to the sites we comply with, like this 1, as it represents our picks from the web
0
0
the time to study or take a look at the content material or internet sites we have linked to below the
0
0
that would be the finish of this post. Right here you will find some websites that we assume youll enjoy, just click the hyperlinks over
0
0
Wonderful story, reckoned we could combine several unrelated information, nonetheless genuinely really worth taking a search, whoa did one particular master about Mid East has got far more problerms also
0
0
very few internet websites that happen to be comprehensive beneath, from our point of view are undoubtedly well really worth checking out
0
0
one of our guests lately recommended the following website
0
0
usually posts some incredibly intriguing stuff like this. If youre new to this site
0
0
the time to study or go to the subject material or web sites we’ve linked to below the
0
0
Besides, part of that new 231Q 70-486 dumps are available here:
https://drive.google.com/open?id=0B-ob6L_QjGLpflNtUWtkNlk3ODJFY0pqOUhqVFEwc0lrd0QtamRxUHFLLUdWZEVDaGtlQWM
Best Regards!
0
0
it is true that by default you can see the text in the header with bold but if we want just to simulate the behavior of changing the second columns header property like its color then this should work
table th:nth-child(2) { color: red; }
0
0