Web Application Development Test Three
23 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is a unique identifier for officers in the traffic violations database?

  • name
  • shield number (correct)
  • violationID
  • driverID
  • Which of the following attributes is not necessary for each violation in the database?

  • fine amount
  • violation description
  • date of violation (correct)
  • officerID
  • In creating the tables for the database, which aspect is crucial to ensure data integrity?

  • Using only primary keys
  • Mitigating the need for foreign keys
  • Setting all keys as foreign keys
  • Using unique primary keys (correct)
  • What method can be used to insert the raw data from the Incidents List into the created tables?

    <p>Using SQL or Grid controls</p> Signup and view all the answers

    What action is not included in the requirements for managing the database via the Web Application?

    <p>Automatically backing up the database</p> Signup and view all the answers

    What is the correct file extension for Razor pages in a Core Web Application?

    <p>.cshtml</p> Signup and view all the answers

    In the driver's summary profile, what numeric value is assigned to the Senior category?

    <p>65</p> Signup and view all the answers

    What happens when the 'Display Driver Profile' button is clicked?

    <p>A profile summary is displayed based on user selections.</p> Signup and view all the answers

    Which layout feature is specifically mentioned for the footer of the Layout page?

    <p>Email address</p> Signup and view all the answers

    Which technology is specifically required to implement CRUD operations in the web application?

    <p>SQL Database</p> Signup and view all the answers

    What is the purpose of the Data List and Data Analysis links in the application?

    <p>To navigate to other pages in the application.</p> Signup and view all the answers

    What should be included in the master page according to the specifications?

    <p>Header and footer details</p> Signup and view all the answers

    Which programming languages or technologies should be utilized in Part A of the web application development?

    <p>HTML, CSS, Bootstrap, jQuery, JavaScript</p> Signup and view all the answers

    What was the fine associated with the violation code for DUI?

    <p>$350</p> Signup and view all the answers

    Which driver received a ticket for an illegal turn on 5/8/17?

    <p>DeFaio</p> Signup and view all the answers

    How many times was the driver with ID 676 cited for a seatbelt violation?

    <p>2 times</p> Signup and view all the answers

    Which violation code corresponds to the fine of $40?

    <p>Parking</p> Signup and view all the answers

    What was the date of the first speeding violation listed for driver ID 210?

    <p>10/12/17</p> Signup and view all the answers

    What is the total fine accrued by driver ID 676 based on the incidents listed?

    <p>$575</p> Signup and view all the answers

    Which officer cited driver ID 188 for parking violations?

    <p>Conner</p> Signup and view all the answers

    What was the violation code for the ticket given to driver ID 880?

    <p>19</p> Signup and view all the answers

    On which date did driver ID 777 receive their DUI ticket?

    <p>1/4/18</p> Signup and view all the answers

    Which driver was cited for speeding on 1/5/18?

    <p>Stein</p> Signup and view all the answers

    Study Notes

    Web Application Development Test Three Notes

    • Core Web Application: A web application built using C# and Core Web Application framework, version 8.0, with a layout page for consistent design across all pages. Pages are .cshtml, not HTML.

    Part A: Inside Web App

    • Drivers.cshtml: A Razor Page designed to summarize driver information, utilizing HTML, CSS, Bootstrap, and potentially JavaScript/jQuery. The file extension is .cshtml.

    • Driver Profile Display: Based on user input (age category and state), the profile displays a concatenated statement. For example, "Based on details provided, you are a Young Adult driver from California. You are at least 22 years old." The age category and state will change based on user input.

    • Data Entry: Assign numerical values to radio buttons (18 for Teenager, 22 for Young Adult, 27 for Adult, 65 for Senior).

    • Navigation: Links to "Data List," "Data Analysis," and other pages enhance navigation within the application.

    • File Handling: Ensure that necessary JavaScript, CSS, and image files are properly placed.

    Part B: SQL Server

    • Table Creation: The 33rd Precinct needs a database system to manage traffic violations. Tables are designed for efficiency and data integrity as shown in a diagram (Figure 3).

    • Incident Tracking: Create normalized tables to track officers, violations, drivers, and violation incidents. Primary keys ensure data uniqueness.

    • Enforcement Data: Tables must track unique officer IDs (policeID), violation details (violationID, violation, fine), driver information (driverID, name, address), and incident details (incidentiD, incidentDate, violationID, officerID, driverID).

    • Data Import: Populate the created tables with data from the "Incidents List" (Figure 4). Be mindful of primary key constraints.

    • CRUD Capabilities: In the application, use a DBContext to manage interactions with the relevant database tables. Ensure the ability to create, read, update, and delete (CRUD) data.

    • Application Integration: A web application should connect to and handle these tables' data.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Description

    This quiz covers the fundamentals of a web application built using C# and the Core Web Application framework, specifically version 8.0. Participants will explore Razor Pages, user input handling, and navigation features, along with design consistency across the application.

    More Like This

    Understanding Web Development
    3 questions

    Understanding Web Development

    UnquestionableJasper961 avatar
    UnquestionableJasper961
    Bootstrap Web Development Basics
    5 questions
    PHP Web Development Lecture 10
    5 questions
    Use Quizgecko on...
    Browser
    Browser