题目内容

Which statement regarding reliability and security is most likely FALSE?

A. Improper initialization of data could violate the security principle of fail-safe defaults
B. Not checking buffer limits could violate the security principle of least privilege
C. Not removing data races could violate the security principle of psychological acceptability
D. None are false; all are true

查看答案
更多问题

Which is NOT a goal of method-level refactoring?

A. Reduce code complexity
B. Eliminate code smells
C. Eliminate bugs
D. Improve testability

If a site has a valid SSL certificate from a trusted CA, which of the following are true:i) The site is probably not “masquerading” as an impostor of a real siteii) CSRF + SQL injection are harder to mount against itiii) Your data is secure once it reaches the site

A. (i) only
B. (i) & (ii) only
C. (ii) & (iii) only
D. (i), (ii) & (iii)y

In the previous example (http://pastebin.com/9xRk1CW1), why did we use andCallFake() to pass ajaxArgs in stubbing the AJAX call, rather than just using andReturn(ajaxArgs)?

A. We could have done it either way; it's just a matter of choice
B. $.ajax doesn't actually return the server reply content, so andReturn won't work
C. ajaxArgs is in the wrong scope, so its value is not "visible" to andReturn
D. We needed to be able to spy on (monitor) the AJAX call

Suppose Movie has many Moviegoers through Reviews. Which foreign-key index or indices would MOST help speed up the query: fans = @movie.moviegoers

A. movies.review_id
B. reviews.movie_id
C. reviews.moviegoer_id
D. moviegoers.review_id

答案查题题库