Salesforce
CRT-450 · Question #235
CRT-450 Question #235: Real Exam Question with Answer & Explanation
Sign in or unlock CRT-450 to reveal the answer and full explanation for question #235. The question stem and answer options stay visible for context.
Question
A developer created this Apex trigger that calls Myclass.myStaticMethod: The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in 81% overall code coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?
Options
- AThe deployment passes because both classes and the trigger were included in the deployment.
- BThe deployment fails because no assertions were made in the test method.
- CThe deployment passes because the Apex code has the required >75% code coverage.
- DThe deployment fails because the Apex trigger has no code coverage.
Unlock CRT-450 to see the answer
You've previewed enough free CRT-450 questions. Unlock CRT-450 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.