Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions

Question

5-8 What are the advantages and disadvantages of the BYOD movement?

Answered: 1 week ago