A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed:
Which type of exception will this trigger cause?
A. A null reference exception
B. A compile time exception
C. A DML exception
D. A limit exception when doing a bulk update
A developer wants to override a button using Visualforce on an object. What is the requirement?
A. The controller or extension must have a PageReference method.
B. The standardController attribute must be set to the object.
C. The action attribute must be set to a controller method.
D. The object record must be instantiated in a controller or extension.
Why would a developer consider using a custom controller over a controller extension?
A. To increase the SOQL query governor limits.
B. To implement all of the logic for a page and bypass default Salesforce functionality
C. To leverage built-in functionality of a standard controller
D. To enforce user sharing settings and permissions
A developer is asked to set a picklist field to `Monitor' on any new Leads owned by a subnet of Users. How should the developer implement this request?
A. Create an after insert Lead trigger.
B. Create a before insert Lead trigger.
C. Create a Lead Workflow Rule Field Update.
D. Create a Lead formula field.
How should a developer avoid hitting the governor limits in test methods?
A. Use @TestVisible on methods that create records.
B. Use Test.loadData() to load data from a static resource.
C. Use @IsTest (SeeAllData=true) to use existing data.
D. Use Test.startTest() to reset governor limits.
Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)
A. Number maps to Decimal.
B. Number maps to Integer.
C. TextArea maps to List of type String.
D. Date/Time maps to Dateline.
E. Checkbox maps to Boolean.
Which three tools can deploy metadata to production? (Choose three.)
A. Change Set from Developer Org
B. Force.com IDE
C. Data Loader
D. Change Set from Sandbox
E. Metadata API
A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)
A. Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.
B. Use mySObject.myObject.fields.getMap() to return a map of fields.
C. Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.
D. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.
A developer executes the following query in Apex to retrieve a list of contacts for each account: List
Which two exceptions may occur when it executes? (Choose two.)
A. CPU limit exception due to the complexity of the query.
B. SOQL query row limit exception due to the number of contacts.
C. SOQL query limit exception due to the number of contacts.
D. SOQL query row limit exception due to the number of accounts.
Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)
A.
B. Inline CSS
C.
D.
E. A static resource
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.