题目内容

Which is FALSE about integration-level characterization tests vs. module- or unit-level characterization tests?

A. They are based on fewer assumptions about how the code works
B. They are just as likely to be unexpectedly dependent on the production database
C. They rely less on detailed knowledge about the code’s structure If a customer can do the action, you can create a simple characterization test by mechanizing the action by brute force
D. If a customer can do the action, you can create a simple characterization test by mechanizing the action by brute force

查看答案
更多问题

Which are always true of Jasmine's it() method:a. it can take a named function as its 2nd argb. it can take an anonymous function as its 2nd argc. it executes asynchronously

A. (a) and (b)
B. (a) and (c)
C. (b) and (c)
D. All are true

“Patrons can make donations as well as buying tickets. For donations we need to track which fund they donate to so we can create reports showing each fund's activity. For tickets, we need to track what show they're for so we can run reports by show, plus other things that don't apply to donations, such as when they expire."Which statement is LEAST compelling for this design?

A. Donation has at least 2 collaborator classes.
B. Donations and Tickets should subclass from a common ancestor.
C. Donations and Tickets should implement a common interface such as “Purchasable”.
Donations and Tickets should implement a common interface such as “Reportable”.

Given the following JavaScript code:var square = { side: 5, area: function() { return this.side*this.side; } };Which of the following expressions evaluates to 25?(i) square.area(ii) square.area()(iii) var p = {side: 5, __proto__: square}; p.area()(iv) square.area.call({side: 5})

A. i and iii
B. ii and iv
C. ii and iii
D. ii, iii, and iv

Which is FALSE concerning AJAX/XHR vs. non-AJAX interactions?

AJAX requests can be handled with their own separate controller actions
B. In general, the server must rely on explicit hint (like headers) to detect XHR
C. The response to an AJAX request can be any content type (not just HTML)
D. If the server fails to respond to an XHR request, the browser's UI will freeze

答案查题题库