A case has a variable number of supporting documents

This preview shows page 5 - 8 out of 9 pages.

A case has a variable number of supporting documents associated with it. Examples of documents include motions, depositions, evidence (photographs, scanned documents, audio or video clips, etc.), and others.
21. (3 pts) Which foreign keys would we expect to see in the Cases table? SELECT ALL THAT APPLY.
22. (3 pts) Which foreign key from the above would we expect to see in the Judges table? __
23. (3 pts) Which foreign key from the above would we expect to see in the Documents table? __
Explanation: The Judges table does not need to refer to other tables, as it has a one to many relationship with the other tables. The documents would refer to the Cases table. Which two ActiveRecord associations are required to support the query: "Return all the defendants whose cases have been assigned to this judge"? (Answers have the form "X has many Y", "X belongs to Y", and so on. Be sure to use the correct letter choices for each blank!) First blank: A. Judge(s) B. Defendant(s) C. Case(s) Second blank: D. has many E. has one F. belongs to G. through Third blank: H. Judge(s) I. Defendant(s) J. Case(s) Fourth blank: K. Judge(s) L. Defendant(s) M. Case(s)
24. (3 pts) Association #1 (pick THREE items): ____ A____ ____ D_____ ___ J____
25. (3 pts) Association #2: (pick FOUR items): ____ A____ _____ D___ ____ I___ through ___ M___
A JavaScript-enhanced Rails app includes a user-visible timer showing how long the user has been on each page. The HTML elements for the timer are set as follows:
26. (3 pts) The MyApp.setup function must be called: A. Only once at the beginning of the session B. Only once at the beginning of the session, but must be for the "root" route of the app C. On the initial page load for every page in the app during a given session D. On the initial page load AND on every AJAX interaction during a given session Explanation: JavaScript is loaded with each page, so the setup must be done with each page.
27. (3 pts) The MyApp.startTimer function must be called:
Select TRUE or FALSE for the next five statements about good practices for enhancing SaaS apps with JavaScript. (Assume the user's browser includes a modern and enabled version of JavaScript.)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture