Salesforce Platform-Developer 1 practice questions-set 7

This was originally published on link to post

Salesforce Platform-Developer 1 practice questions – set 7

Salesforce Platform-Developer 1 practice questions – set 6, these questions will help you to prepare for certification.

How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?
A.By Querying CustomObject__share
B.By Quering the role hierarchy
C.By calling the IsShared() for the Record
D.By calling the Profile settings of the current user

How would a developer use Schema Builder to delete a custom field from the Account object that was required for prototyping but is no longer needed?
A. Remove all the references In the code and then the field will be removed from Schema Builder.
B. Remove all references from the code and then delete the custom field from Schema Builder.
C. Mark the field for deletion in Schema Builder and then delete it from the declarative UI.
D. Delete the field from Schema Builder and then all references in the code will be removed.

What is an accurate statement about variable scope? Choose 3 answers
A. Sub -blocks cannot reuse a parent block’s variable name.
B. A variable can be defined at any point in a block.
C. Parallel blocks can use the same variable name.
D. Sub -blocks can reuse a parent block’s variable name if its value is null.
E. A static variable can restrict the scope to the current block if its value is null.

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 SeeAllData attribute to the test class.
D. Add the TestVisible attribute to the Apex methods.

Which scenario is invalid for execution by unit tests,
A. Executing methods for negative test scenanos.
B. Executing methods as different users.
C. Loading test data in place of user input for Flows.
D. Load the standard Pricebook ID using a system method.

Where can custom roll -up summary fields be created using Standard Object relationships?
Choose 3 answers
A. On Account using Case records.
B. On Account using Opportunity records.
C. On Opportunity using Opportunity Product records.
D. On Quote using Order records.
E. On Campaign using Campaign Member records.

A developer has th 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”?
A. A Contact with empty values.
B. A Contact initialized to null.
C. An empty List of Contacts.
D. An error that no rows are found.

What is an important consideration when in a multi-tenant environment?
A. Polyglot persistance provides support for a global, multilingual user base in multiple orgs on multiple instances
B. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance
C. Unique domain names takes the place of namespace for code developed for multiple orgs for multiple instances
D.Org-wide data security determines whether other tenants can see data in multiple orgs on the same inst

In the Lighting Component framework, which resource can be used to fire events? Choose 2 answers
A. Visualforce controller options
B. Third-party web service code
C. Third -party Javascript code
D. Javascript controller actions

When the value of a field in an account record is updated, which method will update the value of custom field related opportunities? Choose 2 answers
A. An Apex trigger on the Account object.
B. A Process Builder on the Account object.
C. A cross -object formula field on the Account object.
D. A Workflow Rule on the Account object.

What is the capability of formula fields? Choose 3 answers
A. Display the previous value for the field using the PRIORVALUE function.
B. Return and display a field value from another object using a VLOOKUP function.
C. Determine which of three different images to display using IF function.
D. Generate the link using the HYPERLINK function using a specific record in a legacy system.
E. Determine if a datetime field has passed using the NOW function.

In a single record, a user selects multiple values from a multi-select picklist.
How are the selected values represented in Apex?
A. As a String with each value seperated by a comma.
B. As a List<String> with each value as a element in the list.
C. As a String with each value seperated by semi colon.
D. As a Set<String> with each value as a element in the set.

Will post more Salesforce Platform-Developer 1 practice questions – set 6 later to prepare for Salesforce PlatformDeveloper Exam.

These Salesforce Platform-Developer 1 practice questions – set 6 are only for practice, please go to the Salesforce Platform-Developer 1 practice questions – set 6 with good preparation and some hands on experience.

Continue reading here

admin

Leave a Reply

Your email address will not be published. Required fields are marked *