Free CRT-450 Exam Braindumps

Pass your Salesforce Certified Platform Developer I (SU18) exam with these free Questions and Answers

Page 8 of 34
QUESTION 31

Given:
Map 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.)

  1. A. for (ID accountID : accountMap.keySet()) {…}
  2. B. for (Account accountRecord : accountMap.values()) {…}
  3. C. for (Integer i=0; I < accountMap>for (ID accountID : accountMap) {…}
  4. D. for (Account accountRecord : accountMap.keySet()) {…}

Correct Answer: ABC

QUESTION 32

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

  1. A. Use Schema.PicklistEntry returned by Case Status getDescribe().getPicklistValues().
  2. B. Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()
  3. C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
  4. D. Use SOQL to query Case records in the org to get all value for the Status picklist fiel

Correct Answer: AB

QUESTION 33

A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = 'Smith']; What does the query return if there is no Contact with the last name 'Smith'?

  1. A. A contact initialized to null.
  2. B. An error that no rows are found.
  3. C. An empty List of Contacts.
  4. D. A Contact with empty value

Correct Answer: B

QUESTION 34

A developer needs to create a Visualforce page that displays Case data. The page will be used by both support reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction c field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?

  1. A. Create one Visualforce Page for use by both profiles.
  2. B. Use a new Support Manager permission set.
  3. C. Create a separate Visualforce Page for each profile.
  4. D. Use a custom controller that has the with sharing keyword

Correct Answer: D

QUESTION 35

What is the value of x after the code segment executes?
String x = 'A';Integer i = 10;if ( i < 15 ) {i = 15;x = 'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }

  1. A. D
  2. B. A
  3. C. B
  4. D. C

Correct Answer: C

Page 8 of 34

Post your Comments and Discuss Salesforce CRT-450 exam with other Community members: