Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 11 (0.66 points) Which of the following would be an appropriate refactoring when you smell duplicated code? O Encapsulate field Inline method O Extract
Question 11 (0.66 points) Which of the following would be an appropriate refactoring when you smell duplicated code? O Encapsulate field Inline method O Extract method Decompose conditional Question 12 (0.66 points) Execution of a Java application starts with which method? O the constructor of a class named Main O start Obegin O main Question 15 (0.66 points) In the Zuul project you refactored the Room to use a HashMap to store exits rather than 4 specific exit direction variables. Which statement below best describes the advantage gained from this refactoring? Any number of exits can be stored, rather than only 4, and the exits can have any direction OFewer Room objects need to be created in the game We can set up all the exits at once rather than one at a time The Room and Game classes are more tightly coupled Question 16 (0.66 points) Regression testing involves Testing new code for the first time O Running manual tests that are impossible to automate O Rerunning tests that have previously passed Testing cases that are expected to fail Question 17 (0.66 points) A developer writing JUnit tests that exercise every code pathway through a method is doing black box testing. True False Question 18 (0.66 points) Which of the following is not a method used for debugging? O Manual walkthroughs Regression testing O Print statements O Debuggers Question 19 (0.66 points) Which 2 tests exercise the two primary pathways through this method? public double calcTax(double amount, double rate) if (rate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started