A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records.
What would a developer do to accomplish this task? Choose 2 answers
A. Create a roll -up summary field on the Candidate object that counts Interview records.
B. Create a master -detail relationship between the Candidate and Interview objects.
C. Create a lookup relationship between the Candidate and Interview objects.
D. Create a trigger on the Interview object that updates a field on the Candidate object.
A developer creates a custom controller and custom Visualforce page by using the following code block:public class myController {public String myString;public String getMyString() {return 'getmyString';}public String getStringMethod1() {return myString;}public String getStringMethod2() {if (myString == null)myString = 'Method2';return myString;}}{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString}
What does the user see when accessing the custom page?
A. GetMyString , , Method2 , getMystring
B. , , Method2 , getMyString
C. , , Method2,
D. GetMyString , , ,
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)
A. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().
B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().
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 values for the Status picklist field.
A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?
A. Apex Triggers
B. HTTP Callouts
C. Apex Controllers
D. Anonymous Blocks
When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)
A. To generate a PDF document with application data
B. To create components for dashboards and layouts
C. To deploy components between two organizations
D. To modify the page layout settings for a custom object
A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement?
A. Create a required Visualforce component.
B. Create a formula field.
C. Create a required comments field.
D. Create a validation rule.
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query?
A. 1
B. 7
C. 5
D. 3
Which user can edit a record after it has been locked for approval? (Choose 2)
A. Any user with a higher role in the hierarchy
B. A user who is assigned as the current approver
C. Any user who approved the record previously
D. An administrator
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 150; x++) {Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after this code is run?
A. 101
B. 100
C. 102
D. 252
A developer wants to create a custom object to track Customer Invoices.How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?
A. The Account should have a Master-Detail relationship to the Invoice.
B. The Invoice should have a Master-Detail relationship to the Account
C. The Account should have a Lookup relationship to the Invoice
D. The Invoice should have a Lookup relationship to the Account Previous
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.