Salesforce CRT-450 Exam Practice Questions (P. 3)
- Full Access (440 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)
- ALoading files from Documents.
- BOne-time loading for duplicate scripts.Most Voted
- CSpecifying loading order.Most Voted
- DLoading scripts in parallel.Most Voted
- ELoading externally hosted scripts.
Correct Answer:
BCD
BCD
send
light_mode
delete
Question #22
A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
- AMake an outbound web services call to the SOAP API.
- BHardcode the ID as a constant in an Apex class.
- CUse the getRecordTypeInfosByName() method in the DescribeSObjectResult class.Most Voted
- DExecute a SOQL query on the RecordType object.Most Voted
Correct Answer:
CD
CD
send
light_mode
delete
Question #23
A developer has the controller class below.

Which code block will run successfully in an execute anonymous window?

Which code block will run successfully in an execute anonymous window?
- AmyFooController m = new myFooController(); System.assert(m.prop !=null);
- BmyFooController m = new myFooController(); System.assert(m.prop ==0);
- CmyFooController m = new myFooController(); System.assert(m.prop ==null);
- DmyFooController m = new myFooController(); System.assert(m.prop ==1);
Correct Answer:
C
C
send
light_mode
delete
Question #24
In a single record, a user selects multiple values from a multi-select picklist.
How are the selected values represented in Apex?
How are the selected values represented in Apex?
- AAs a List<String> with each value as an element in the list
- BAs a String with each value separated by a comma
- CAs a String with each value separated by a semicolonMost Voted
- DAs a Set<String> with each value as an element in the set
Correct Answer:
C
C
send
light_mode
delete
Question #25
A developer writes the following code:

What is the result of the debug statement?

What is the result of the debug statement?
send
light_mode
delete
Question #26
What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)
- Afor (Account theAccount : AccountList) {ג€¦}
- Bfor(AccountList) {ג€¦}
- Cfor (List L : AccountList) {ג€¦}
- Dfor (Integer i=0; i < AccountList.Size(); i++) {ג€¦}
Correct Answer:
AD
AD
send
light_mode
delete
Question #27
Given:
Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]);
What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)
Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]);
What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)
- Afor (ID accountID : accountMap.keySet()) {ג€¦}Most Voted
- Bfor (Account accountRecord : accountMap.values()) {ג€¦}Most Voted
- Cfor (Integer i=0; I < accountMap.size(); i++) {ג€¦}Most Voted
- Dfor (ID accountID : accountMap) {ג€¦}
- Efor (Account accountRecord : accountMap.keySet()) {ג€¦}
Correct Answer:
ABC
ABC
send
light_mode
delete
Question #28
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage.
Which two strategies should a developer use to accomplish this? (Choose two.)
Which two strategies should a developer use to accomplish this? (Choose two.)
- AUse a Visual Workflow.
- BUse a validation rule.
- CUse the Process Automation Settings.
- DUse a Trigger.
Correct Answer:
BD
BD
send
light_mode
delete
Question #29
How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?
- ACreate a Sharing Rule comparing the custom object owner to the account owner.
- BCreate a validation rule on the custom object comparing the record owners on both records.
- CInclude the sharing related list on the custom object page layout.
- DEnsure that the relationship between the objects is Master-Detail.Most Voted
Correct Answer:
D
D
send
light_mode
delete
Question #30
An org has a single account named `˜NoContacts' that has no related contacts. Given the query:
List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=`˜NoContacts'];
What is the result of running this Apex?
List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=`˜NoContacts'];
What is the result of running this Apex?
- Aaccounts[0].contacts is invalid Apex.
- Baccounts[0].contacts is an empty Apex.
- Caccounts[0].contacts is Null.
- DA QueryException is thrown.
Correct Answer:
B
B
send
light_mode
delete
All Pages