Velocity points 8 end 9 end 10 patterson

This preview shows page 2 - 4 out of 6 pages.

7 @velocity = points 8 end 9 end 10 patterson = Professor.new(3) 11 fox = Professor.new
6. (3 pts) Given the Ruby code in Listing 2, MARK ALL of the following that are FALSE . .
7. (3 pts) Referring to Listing 2, which statement is FALSE about the @tasks attribute of fox ? . . .
Listing 3. 1 def test 2 x = "World" 3 yield("Hello") 4 end 5 6 x = "Ruby" 7 result = test { y => puts "#{y} #{x}" } 8. (3 pts) What is the value of result after executing line 7 of Listing 3?
9. (3 pts) Which one of the following scenarios should be accessible via HTTP GET ? A. A user clicks on a specific photo on a photo-sharing site to delete it. B. A user hits the submit button to send an email. C. A user selects filter criteria to narrow his search results. D. A user wants to save her moviegoer profile on RottenPotatoes.
10. (3 pts) Which step is OPTIONAL when adding the new action MoviesController#bad_movies RottenPotatoes? Assume no JavaScript on the browser. to
11. (3 pts) MARK ALL statements that are TRUE for Rails RESTful routes and the resources to which they refer?
12. (3 pts) What kind(s) of tests below will ensure validation of your software: (i) C0 (statement coverage) (ii) unit testing (iii) integration testing (iv) regression testing (v) DU-coverage (all pairs of define X/use X for every variable X)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture