An sObject named Application_c has a lookup relationship to another sObject named Position_c. Both Application _c and Position_c have a picklist field named Status_c.When the Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.How can a developer accomplish this?
A. By changing Application_c.Status_c into a roll -up summary field.
B. By changing Application_c.Status_c into a formula field.
C. By using an Apex trigger with a DML operation.
D. By configuring a cross-object field update with a workflow.
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case Status field are on a custom visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? Choose 2 answers
A. Use Schema.PicklistEntry returned by Case Status getDescribe().getPicklistValues().
B. Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()
C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
D. Use SOQL to query Case records in the org to get all value for the Status picklist field.
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URLWhich statement is unnecessary inside the unit test for the custom controller?
A. Public ExtendedController (ApexPages.StandardController cntrl) { }
B. ApexPages.currentPage().getParameters().put('input', 'TestValue')
C. Test.setCurrentPage(pageRef),
D. String nextPage = controller.save().getUrl();
What is a valid Apex statement?
A. Map conMap = (SELECT Name FROM Contact);
B. Account[] acctList = new List{new Account()}
C. Integer w, x, y = 123, z = 'abc',
D. Private static constant Double rate = 775;
When creating unit tests in Apex, which statement is accurate?Choose 2
A. Unit tests with multiple methods result in all methods failing every time one method fails.
B. Increased test coverage requires large test classes with many lines of code in one method.
C. Triggers do not require any unit tests in order to deploy them from sandbox to production.
D. System Assert statements that do not Increase code coverage contribute important feedback in unit tests
A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception? choose 2 answers
A. Throw new RecordNotFoundException("problem occured");
B. Throw new RecordNotFoundException();
C. throw RecordNotFoundException("problem occured");
D. Throw RecordNotFoundException();
Which resource can be included in a Lightning Component bundle?Choose 2 answers
A. Apex class
B. Adobe Flash
C. JavaScript
D. Documentation
Developer needs to automatically populate the Reports To field in a Contact record based on the values of the related Account and Department fields in the Contact record.
Which type of trigger would the developer create? Choose 2 answers
A. Before update
B. After insert
C. Before insert
D. After update
To which primitive data type in Apex is a currency field atomically assigned?
A. Integer
B. Decimal
C. Double
D. Currency
A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension.Change set deployment to production fails with the test coverage warning: "Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required."
What can the developer do to successfully deploy the new Visualforce page and extension?
A. Create test classes to exercise the Visualforce page markup.
B. Select "Disable Parallel Apex Testing" to run all the tests.
C. Add test methods to existing test classes from previous deployments.
D. Select "Fast Deployment'' to bypass running all the tests.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your CRT-450 exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.