题目内容

Which Ruby language mechanisms would be appropriate for implementing associations that can be used by ActiveRecord models? (a) build behaviors into ActiveRecord::Base (b) put behaviors in their own Module (c) put behaviors in their own Class

A. Only (a)
B. (a) or (b), but not (c)
C. (a) or (c), but not (b)
D. Any of (a), (b) or (c) would be equally suitable

查看答案
更多问题

A likely violation of the Single Responsibility principle:Which method?

A. zike
B. initialize
C. get_veem
D. wurgle
E. No Violation
F. the class as a whole

A likely violation of the Open/Closed principle:Which class?-

A. Veem
Blurk
C. SnitVeem
D. BlortVeem
E. JitVeem
F. No Violation

Let R = RottenPotatoes app's availabilityH = Heroku's availabilityC = Internet connection availabilityP = Armando's perception of RP availabilityWhich relationship among these quantities holds?

A. P ≤ C ≤ H ≤ R
B. P ≥ min (C, H, R)
C. P ≤ C ≤ min(H, R)
D. Can’t tell without additional information

A likely violation of the Open/Closed principle:Which method?

A. zike
B. initialize
C. get_veem
D. wurgle
E. he class as a whole
F. No Violation

答案查题题库