Pts the two pieces of code at right have the same

This preview shows page 4 - 6 out of 7 pages.

20.(3 pts) The two pieces of code at right have the same logicalfunctionality but different structure. Which statement is TRUEabout comparing them?A.Version 1 exposes more testing seamsB.Version 1 has higher per-method cyclomatic complexityC.Version 1 has a lower ABC scoreD.Version 1 cannot be tested to 100% C2 coverage# version 1:def foo(x,y)if xif yz()endelseif y# version 2:def foo(x,y)if xcheck_y_z(y)elsecheck_y_w(y)endend
w()endendenddef check_y_z(val)z() if valenddef check_y_w(val)w() if valendAs an example of procurement reform in government, Ray Ells’ software consultancy has been awarded a contract todevelop Casebook, a SaaS app to keep track of the status of civil court cases.Here's some notes from an early customerinterview:Each case has two parties: the plaintiff and the defendant.The same plaintiffs and defendants may be parties in more than one case.A party that is a plaintiff in one case
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? _____WhichtwoActiveRecord associations arerequiredto support the query: "Return all the defendants whose cases havebeen assigned to this judge"?(Answers have the form "X has many Y", "X belongs to Y", and so on.Be sure to use thecorrect letter choices for each blank!)
24.(3 pts) Association #1 (pick THREE items): ___________________________[A, B or C][D,E,F or G][H, I or J]
25.(3 pts) Association #2: (pick FOUR items): ___________________________through_______
A JavaScript-enhanced Rails app includes a user-visible timer showing how long the user has been on each page.TheHTML elements for the timer are set as follows:

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 7 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture