Salesforce Certified Platform Developer I Certification Made Easy

Category: Salesforce Posted:May 16, 2017 By: Serena Josh

Salesforce Certified Platform Developer I Certification Made Easy

Test your skills by taking this questionnaire and to figure out if you are ready to get trained and certified in SALESFORCE DEVELOPER

1. In which of the following environments can Developers write code? Select all that apply.
a. Developer edition production org
b. Enterprise edition production org
c. Enterprise edition Sandbox org
d. Professional edition Sandbox org

2. How can a developer avoid exceeding Governor Limits when using an Apex Trigger? Select all that apply.
a. By using a helper class that can be invoked from multiple triggers
b. By using Maps to hold data from query results
c. By using the Database class to handle DML transactions
d. By performing DML transactions on lists of Objects

3. Which of these is an accurate statement about “with sharing” keywords? Select all that apply.
a. Inner classes inherit the sharing setting from the container class
b. Either inner classes or outer classes can be declared as “with sharing”, but not both
c. Inner classes do not inherit the sharing setting from the container class
d. Both inner classes and outer classes can be declared as “with sharing”

4. Which standard field mandatorily needs to be populated when a developer inserts new Contact records programmatically?
a. Name
b. LastName
c. AccountId
d. FirstName

5. In the given code, from where does the Boolean inherit its value? _x000D_Boolean b = true;
a. Class
b. Object
c. Enum
d. String

6. Which of these is a characteristic of the Lightning Component framework? Select all that apply.
a. It has an event-driven architecture.
b. It works with the existing Visualforce pages.
c. It uses XML as its data format.
d. It includes responsive components.

7. Visualforce components are similar to which type of tag library containing tag namespace prefixes?
a. ASP tag library
b. JSP tag library
c. ASP log file
d. DL JSP log file

8. 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. What action can the developer perform to get the record types and picklist values in the controller? Select all that apply.
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

9. On a Visualforce page with a custom controller, by using an ID parameter that is passed in the URL, how should a developer retrieve a record? Select all that apply.
a. Use the constructor method for the controller
b. Use the $Action.View method in the Visualforce page
c. Use the <apex:detail> tag in the Visualforce page
d. Create a new PageReference object with the Id

10. A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page?
a. By adding a second standard controller to the page for the parent record
b. By using a roll-up summary field on the child record to include data from the parent record
c. By using SOQL on the Visualforce page to query for data from the parent record
d. By using merge field syntax to retrieve data from the parent record
11. A developer needs to provide a Visualforce page that lets users enter product-specific details during a sales cycle. How can this be accomplished? Select all that apply.
a. Download a Managed Package from the AppExchange that provides a custom Visualforce page to modify
b. Copy the standard page and then make a new Visualforce page for Product data entry
c. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify
d. Create a new Visualforce page and an Apex controller to provide Product data entry

12. What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visual force pages?
a. Uploading the content as a Static Resource
b. Accessing the content from a third-party CDN
c. Uploading the content in the Documents tab
d. Accessing the content from Chatter Files

13. The Review__c object has a lookup relationship with the Job_Application__c object. The Job_Application__c object has a master-detail relationship with the Position__c object. The relationship field names are based on the auto-populated defaults. What is the recommended way to display field data from the related Review__c records on a Visualforce page for a single Position__c record?
a. Utilize the Standard Controller for Position__c and expression syntax in the Page to display related Review__c data through the Job_Application__c object
b. Utilize the Standard Controller for Position__c and cross-object Formula Fields on the Job_Application__c object to display Review__c data
c. Utilize the Standard Controller for Position__c and cross-object Formula Fields on the Review__c object to display Review__c data
d. Utilize the Standard Controller for Position__c and a Controller Extension to query for Review__c data

14. Which of these statements are true about the “view state” inspector? Select all that apply.
a. Shows components contributing to view state
b. Must be enabled on a user profile
c. Is displayed only when using <apex: form>
d. Is controlled by the Role Hierarchy

15. What type of a programming language is Apex? Select all that apply.
a. Object-oriented
b. On-Demand
c. Water-Fall
d. Declarative-Specific

16. A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for this object. What happens when a user updates the record?
a. No changes are made to the data.
b. The Workflow Rule is fired more than once.
c. Both the Apex Trigger and Workflow Rule are fired only once.
d. The Apex Trigger is fired more than once.

17. A developer needs to automatically populate the ReportsTo field in a Contact record based on the values of the related Account and Department fields in the record. Which type of Trigger would the developer create? Select all that apply.
a. Before insert
b. After update
c. After insert
d. Before update

18. A developer uses a before insert trigger on the Lead object to fetch Territoy__c object, where the Territory__c. PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10000 Lead records> The developer has the following code block: for(Lead l : Trigger.new){ if(l.PostalCode != null){ List<Territory__C> terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c =:l.PostalCode;] if(terrList.size() > 0){ l.Territory__c = terrList[0].Id; } } } Which line of code is causing the code block to fail?
a. 05: The Lead in a “before insert” trigger cannot be updated.
b. 02: A NullPointer exception is thrown if PostalCode is null.
c. 01: Trigger.new is not valid in a “before insert” Trigger.
d. 03: A SOQL query is located inside the “for” loop code.

19. In what order does Salesforce execute events while saving a record?
a. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
b. Validation Rules; Before triggers; After triggers Workflow Rules Assignment Rules; Commit
c. Before Triggers; Validation Rules; After triggers; Workflow rules; Assignment Rules; Commit
d. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

20. What is the result when a Visualforce page calls an Apex controller, which in turn calls another Apex class, causing the code to hit a Governor Limit?
a. All changes up to the error are saved.
b. All changes before a save point are saved.
c. All changes are saved in the first Apex class.
d. All changes up to the error are rolled back.

21. When would a developer use a custom controller instead of a controller extension? Select all that apply.
a. When a Visualforce page needs to replace the functionality of a standard controller
b. When a Visualforce page needs to add new actions to a standard controller
c. When a Visualforce page does not reference a single primary object
d. When a Visualforce page should not enforce permissions or field-level security

22. 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’; }
a. D
b. A
c. B
d. C

23. In a single record, a user selects multiple values from a multi-select pick list. How are the selected values represented in Apex?
a. As a String with each value separated by a comma
b. As a Set<String> with each value as an element in the set
c. As a List<String> with each value as an element in the list
d. As a String with each value separated by a semicolon

24. Which of these is a good practice for a developer to follow when writing a trigger? Select all that apply.
a. Using @future methods to perform DML operations
b. Using the Map data structure to hold query results by ID
c. Using the Set data structure to ensure distinct records
d. Using synchronous callouts to call external systems

25. How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?
a. By using the IsInsertable() method
b. By using the IsCreatable() method
c. By using the hasAccess() method
d. By using the canCreate() method

26. Which of these is an accurate statement about variable scope? Select all that apply.
a. Parallel blocks can use the same variable name.
b. A variable can be defined at any point in a block.
c. Sub-blocks cannot reuse the variable name of a parent block.
d. Sub-blocks can reuse the variable name of a parent block if its value is null.
e. A static variable can restrict the scope to the current block if its value is null.

27. Which code block returns the ListView of an Account object using the following Debug statement? _x000D_system.debug(controller.getListViewOptions());_x000D_
a. ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator(ÔSELECT Id FROM Account LIMIT 1Õ));
b. ApexPages.StandardController controller = new ApexPages.StandardController([SELECT Id FROM Account LIMIT 1]);
c. ApexPages.StandardController controller = new ApexPages.StandardController(Database.getQueryLocator(ÔSELECT Id FROM Account LIMIT 1Õ));
d. ApexPages.StandardSetController controller = new ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]);

28. A developer runs the following anonymous code block: List<Account> acc = [SELECT Id FROM Account LIMIT 10;]; Delete acc; Database.emptyRecycleBin(acc); system.debug(Limits.getDMLStatements() + ‘, ‘+Limits.getLimitsDMLStatements()); What is the result?
a. 2, 150
b. 150, 2
c. 11, 150
d. 150, 11

29. What is an accurate construction for a custom controller named ”MyController”?
a. Public MyController() {_x000D_account = new Account();_x000D_}
b. Public MyController(SObject obj) {_x000D_account = new (Account) obj;_x000D_}
c. Public MyController(List<SObject> objects){_x000D_accounts = (List<Account>)objects;_x000D_}
d. Public MyController(ApexPages.StandardController stdController){_x000D_account = (Account)stdController.getRecord():_x000D_}

30. Which of the following is a valid Apex statement?
a. Private static constant Double rate = 7.75;
b. Account() acctList = new List<Account>{new Account()};
c. Integer w, x, y, = 123, x = ÔabcÕ;
d. Map conMap = [SELECT Name FROM Contact];

Want to Know More about Salesforce? Click here

31. What must the controller for a Visualforce page utilize to override the standard Opportunity view button?
a. The Opportunity StandardController for pre-built functionality
b. The StandardSetController to support related lists for pagination
c. A constructor that initializes a private Opportunity variable
d. A callback constructor to reference the StandardController

32. A person who does not have “View Encrypted Data” permission will see the field with masked characters. Assuming the field is in the page layout, what happens if he tries to edit the value by clicking on the Edit button?
a. The field will not appear in the edit layout.
b. The user will see only masked characters, but can enter a new value and save it.
c. It will throw an error on changing that field and saving it.
d. He can see the original value and he can save the record.

33. A Position is a custom object containing details of each position. A Candidate contains the details of each candidate such as skills. When users view the Position records, they should also be able to see all those candidates who match the skills required for the post. A position record need not have details of candidates and a candidate record can also be kept blank. A position can be applied by multiple candidates, while a candidate can also apply for multiple positions. What can be done to achieve this?
a. Create a master-child relationship between them
b. Create a junction object to store both the values
c. Create a lookup relationship of candidate on position
d. Create a Visualforce page

34. A custom object has an organization-wide default setting of “Private” with Grant Access Using Hierarchies turned off. Which users can select the Sharing button on records for that object?
a. Only the record owner and a user with the System Administrator profile
b. The record owner, a user with the System Administrator profile, and a user shared to the record
c. The record owner, a user shared to the record, any user above the record owner in the role hierarchy, and a user with the System Administrator profile
d. The record owner, a user above the record owner in the role hierarchy, and a user with the System

35. Universal Containers tracks reviews as a custom object in a recruiting application. The interview score is tracked on each review record and should have a numerical value, so that hiring managers can calculate scores. The scores should be restricted to integer values 1 through 5 and displayed as a set of radio buttons. How can a developer meet this requirement?
a. Create the Interview score field as a picklist, displayed as a radio button on page layout
b. Create a formula field that displays the interview score as a set of radio buttons
c. Create the interview score field with a data type of radio button
d. Create a Visualforce page to display the interview score as a set of radio buttons

36. Universal Containers wants to create a custom order management application that allows users to enter order details such as the Product Name and Product Code. The application should be able to check if these values are consistent with the valid Product Name and Product Code combinations set up in a custom object. Which feature would a developer use to accomplish this?
a. A validation rule with the REGEX function
b. A formula field with the VALIDATE function
c. A validation rule with the VLOOKUP function
d. A formula field with the IF function

37. A customer wants to add a custom validation to the “contact save” process. Before a contact is created, the customer wants to include the validation, which checks if the associated account is active. This validation should be active for all UI as well as integration requests. Which design accomplishes this goal?
a. A custom Web service
b. A “before insert” Trigger
c. A custom Visualforce controller
d. A client-side S-control

38. How would a developer use Schema Builder to delete a custom field from an Account object that was required for prototyping but is no longer needed?
a. Delete the field from Schema Builder and then all references in the code will be automatically removed
b. Remove all the references in the code and then the field will be automatically removed from Schema Builder
c. Mark the field for deletion in Schema Builder and then delete it from the declarative UI
d. Remove all references from the code and then delete the custom field from Schema Builder

39. Where can custom roll-up summary fields be created using Standard Object relationships? Select all that apply.
a. On Opportunity using Opportunity Product records
b. On Account using Case records
c. On Campaign using Campaign Member records
d. On Account using Opportunity records

40. 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 Lookup relationship to the Invoice.
b. The Account should have a Master-Detail relationship to the Invoice.
c. The Invoice should have a Master-Detail relationship to the Account.
d. The Invoice should have a Lookup relationship to the Account.

41. A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting. Once an application is submitted for a job posting, that application cannot be modified to be resubmitted for another job position. The candidate can apply for a different job posting only by submitting a new application. What can an administrator do to associate an application with each job posting in the schema for the organization?
a. Create a master-detail relationship in the Application custom object to the Job Postings custom object
b. Create a master-detail relationship in the Job Postings custom object to the Applications customer object
c. Create a lookup relationship on both objects to a junction object called Job Posting Applications
d. Create a lookup relationship in the Applications customer object to the Job Postings custom object

42. An org has different Apex Classes that provide Account related functionality. After a new validation rule is added to the Account object, many of the test methods fail. What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? Select all that apply.
a. Create a method that performs a callout for a valid Account record, and call this method from within test methods.
b. Create a method that creates valid Account records, and call this method from within test methods.
c. Create a method that queries for valid Account records, and call this method from within test methods.
d. Create a method that loads valid Account records from a Static Resource, and call this method within test methods.

43. A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce. What kind of relationship would a developer use to relate the Account to the Warehouse?
a. Parent-Child
b. Master-Detail
c. One-to-Many
d. Lookup

44. A developer is creating an application to track engines and their components. An individual component can be used in different types of engines. What data model should be used to track the data and to prevent orphan records?
a. Create a junction object to relate many engines to many parts through a master-detail relationship
b. Create a lookup relationship to represent how each part relates to the parent engine object
c. Create a master-detail relationship to represent the one-to-many model of engines to parts
d. Create a junction object to relate many engines to many parts through a lookup relationship

45. Which of these statements is true for encrypted custom fields? Select all that apply.
a. Encrypted fields can be included in Search results.
b. Encrypted fields can be included in report results.
c. Encrypted fields are not available in filters for list views, reports, and Roll-up summary fields.
d. Encrypted fields are not available for validation rules or Apex scripts.

46. A developer created an Apex Trigger using the Developer Console and now wants to debug the code. How can the developer accomplish this in the Developer Console?
a. Select the Override Log Triggers checkbox for the Trigger
b. Open the Progress tab in the Developer Console
c. Open the Logs tab in the Developer Console
d. Add the user name in the Log Inspector

47. What is the minimum log level needed to see user-generated debug statements?
a. INFO
b. FINE
c. WARN
d. DEBUG

48. Which of the following can be done using the Force.com platform? Select all that apply.
a. Data-warehousing
b. Applications with clicks and not code
c. Applications can be upgraded without loss of customization
d. Code version control system

49. Which of the following refers to the data model of Salesforce? Select all that apply.
a. Force.com API
b. Force.com metadata API
c. Sandbox
d. Force.com IDE

50. Which one of the following is not possible to view in the Debug Logs?
a. Workflow formula evaluation results
b. Assignment rules
c. Formula field calculations
d. Validation rules
e. Resources used by Apex Script

51. By using which tool can the developer change the data model of a Salesforce organization?
a. Data loader
b. Administrator setup
c. Cloud based data wizard
d. Other
52. Dashboard refresh can be monitored using:
a. Apex jobs
b. Scheduled jobs
c. Dashboard jobs
d. Report jobs

53. Which of the following will you use for browsing objects and fields in the Force.com IDE? Select all that apply.
a. Force.com Projects
b. Schema Explorer
c. Development Work Area
d. Debug View

Know More about Salesforce with Live Webinar

54. Each setSavepoint() and rollback statement counts against the total number of DML statements.
1
0

55. What should a developer working in a sandbox use to exercise a new test class before the developer deploys that test class to production? Select all that apply.
a. The Apex Test Execution page in Salesforce Setup
b. The Run Tests page in Salesforce Setup
c. The Test menu in the Developer Console
d. The REST API and ApexTestRun method

56. A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class?
a. Add the TestVisible attribute to the Apex class
b. Add the SeeAllData attribute to the test methods
c. Add the @TestVisible attribute to the Apex methods
d. Add the SeeAllData attribute to the test class

57. What is the proper process for an Apex Unit Test?
a. Query for test data using SeeAllData=true. Call the method being tested. Verify that the results are correct.
b. Query for test data using SeeAllData=truExecute runAllTests(). Verify that the results are correct.
c. Create data for testing. Execute runAllTest(). Verify that the results are correct.
d. Create data for testing. Call the method being tested. Verify that the results are correct.

58. Which of the following scenarios is invalid for execution by unit tests?
a. Executing methods for negative test scenarios
b. Loading the standard Pricebook ID using a system method
c. Loading test data in place of user input for Flows
d. Executing methods as different users

59. Where would you find identical Force.com IDs?
a. Production and Full Copy Sandbox only
b. Production and Dev Sandbox only
c. Two developer orgs
d. Two Sandbox orgs

60. What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
a. Create a process with Process Builder
b. Create a workflow rule with field update
c. Create a lightning component
d. Create a Visualforce page

Click here to View the Answers

24 X 7 Customer Support X

  • us flag 99999999 (Toll Free)
  • india flag +91 9999999