Which statement is false regarding Cartesian products as a way of representing relationships?
A. You can represent one-to-one relationships as well as one-to-many relationships
B. You can represent many-to-many relationships
C. The size of the full Cartesian product is independent of the join criteria
D. You can only filter based on on primary or foreign key (id) columns
查看答案
Which is true about third-party authentication between a requester and a provider?
A. Once completed, the requester can do anything you can do on the provider
B. If your credentials on the requester are compromised, your credentials on the provider are also compromised
C. If the provider revokes access, the requester no longer has any of your info
D. Access can be time-limited to expire on a pre-set date
Which of the following is/are true regarding JavaScript's prototype inheritance?(i) It can be used to mimic class inheritance(ii) If a property of an object does not exist, this property is checked for up the prototype chain(iii) Every object inherits from exactly one prototype object, including Object (the empty object)(iv) The keyword null is returned when we reach the top of the prototype chain and the property has not been found
A. i and ii
B. ii and iii
C. i, ii, and iv
D. i, ii, iii, and iv
OmniAuth defines a handful of RESTful endpoints your app must provide to handle authentication with a variety of third parties. To add a new auth provider, you create a gem that works with that provider. Which statement is FALSE about OmniAuth?
A. OmniAuth is itself compliant with OCP Using OmniAuth helps your app follow
B. OCP (with respect to 3rd-party authentication)
C. OmniAuth is an example of the Template pattern
D. OmniAuth is an example of the Strategy pattern
Which is true about a class's observance of the Single Responsibility Principle?
A. In general, we would expect to see a correlation between poor cohesion score and poor SOFA metrics
B. Low cohesion is a possible indicator of an opportunity to extract a class
C. If a class respects SRP, its methods probably respect SOFA
D. If a class's methods respect SOFA, the class probably respects SRP