You are asked to refactor part of the codebase for an application. When you are done, all unit tests pass with 50% code coverage. What can you infer from this?
Suggested Answer: D
Get Premium PSD Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
You can't really say anything because you don't know what the unit tests are testing and whether they are correctly representing whether the application is working correctly. However, if all the tests passes you didn't break any already existing tests. Also, if none tests existed yet, you did not break them.
13 comments · newest first
JO
Jodi
11 months ago
Totally agree with C, at least half is working!
AM
Amber
11 months ago
A is misleading; coverage doesn't equal correctness.
ER
Ernest
12 months ago
Surprised that 50% coverage means anything at all!
GL
Gladys
12 months ago
I think D makes more sense, though.
CO
Corrie
12 months ago
C is definitely the right choice.
KI
Kirk
1 year ago
I guess option D could be true since all existing tests passed, but I'm not completely confident about the implications of 50% coverage.
KA
Kati
1 year ago
I feel like just passing tests doesn't guarantee there are no bugs, so option B seems off to me.
JO
Jolene
1 year ago
I think I saw a similar question in practice exams, and it seems like option C makes the most sense.
PE
Peggy
1 year ago
I remember discussing code coverage in class, but I'm not sure if 50% means half the app is working correctly.
MI
Mike
1 year ago
I'm a bit unsure how to approach this - should I use a specific example or just talk about the general effects of organizational behavior?
LA
Laurel
1 year ago
This is a great question to test our understanding of Meraki API usage. I'm confident I can identify the correct line of code to complete the request.
CA
Carri
1 year ago
This seems like a straightforward question about capacity planning. I'll think through the options carefully and choose the one that best fits the description.
IN
In
1 year ago
Alright, let me walk through this step-by-step. We have an existing alpine image, and we need to create a new container from it. The key is the "-p" option, which maps the container's port 8080 to the host's port 80. I think the answer is "docker run -p 8080:80 alpine:latest".