题目内容

Which Ruby language features support the DRYness enabled by validations and filters: (a) higher-order functions, (b) closures, (c) metaprogramming

A. Only (a)
B. Only (a) and (b)
C. Only (a) and (c)
D. (a), (b) and (c)

查看答案
更多问题

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

答案查题题库