CRT-450 Dumps

CRT-450 Free Practice Test

Salesforce CRT-450: Salesforce Certified Platform Developer I (SU18)

QUESTION 16

A developer has the following code:try {List nameList;Account a;String s = a.Name;nameList.add(s);} catch (ListException le ) {System.debug(' List Exception ');} catch (NullPointerException npe) {System.debug(' NullPointer Exception ');} catch (Exception e) {System.debug(' Generic Exception ');} What message will be logged?

Correct Answer: B

QUESTION 17

What are two valid options for iterating through each Account in the collection List named AccountList? (Choose two.)

Correct Answer: AD

QUESTION 18

A developer needs to write a method that searches for a phone number that could be on multiple object types. Which method should the developer use to accomplish this task?

Correct Answer: C

QUESTION 19

What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?
CRT-450 dumps exhibit

Correct Answer: C

QUESTION 20

Which statement results in an Apex compiler error?

Correct Answer: D