Pytania i odpowiedzi

Nowy SF

Zebrane pytania i odpowiedzi do zestawu. fdfds
Ilość pytań: 111 Rozwiązywany: 4085 razy
Pytanie 61
In which two trigger types can a developer modify the new sObject records that are obtained by the trigger.new context? Choose 2 answers
before update
before insert
Pytanie 62
A developer wants multiple test classes to use the same set of test data. How should the developer create the test data?
Reference a test utility class in each test class
Pytanie 63
Account acct = [SELECT Id FROM Account LIMIT 13]; Given the code above, how can a developer get the type of object from acct?
Call "acct.getSObjectType()"
Pytanie 64
Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? Choose 2 answers
throw new MissingFieldValueException('Problem occurred');
throw new MissingFieldValueException();
Pytanie 65
Which three statements are accurate about variable scope? Choose 3 answers
Parallel blocks can reuse the same variable name
A variable can be declared at any point in a block
A variable must be declared before it can be referenced in a block
Pytanie 66
To which primitive data type is a Text Area (Rich) field automatically assigned?
String
Pytanie 67
Which three methods help ensure quality data? Choose 3 answers
Creating a lookup filter
Sending an email alert using a workflow rule
Adding a validation rule
Pytanie 68
Which standard field is required when creating a new Contact record?
LastName
Pytanie 69
From which two locations can a developer determine the overall code coverage for a sandbox? Choose 2 answers
The Apex classes setup page
The Tests tab of the Developer Console
Pytanie 70
A Visualforce page uses the Contact standard controller. How can a developer display the Name from the parent Account record on the page?
Use the {!contact.Account.Name} merge field syntax
Pytanie 71
Which type of code represents the View in the MVC architecture on the Force.com platform?
A Visualforce page that displays information about Case records by iterating over a list of Cases
Pytanie 72
What is the data type returned by the following SOSL search? [FIND 'Acme*' IN NAME FIELDS RETURNING Account, Opportunity];
List>
Pytanie 73
A developer runs the following anonymous code block in a Salesforce org with 100 Accounts. List acc = (SELECT Id FROM Account LIMIT 10]; Delete acc; Database.emptyRecycleBin(acc); system.debug(Ltmits.getLimatQueries()+', '+Limats.getLimitDMLStatements()); What is the debug output?
100 150
Pytanie 74
A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data model provides the simplest solution to meet the requirements?
Create a lookup relationship to indicate that a person has an employer
Pytanie 75
An Apex trigger fails because it exceeds governor limits. Which two techniques should a developer use to resolve the problem? Choose 2 answers
Use Maps to reference related records
Use Lists for all DML operations.
Pytanie 76
Potential home buyers working with a real estate company can make offers on multiple properties that are listed with the real estate company. Offer amounts can be modified; however, the property that has the offer cannot be modified after the offer is placed. What should be done to associate offers with properties in the schema for the organization?
Create a master-detail relationship in the Offer custom object to the Property custom object
Pytanie 77
What are two benefits of the Lightning Component framework? Choose 2 answers
It provides an event-driven architecture for better decoupling between components
It promotes faster development using out-of-the-box components that are suitable for desktop and mobile devices.
Pytanie 78
Given the code below, what can be done so that recordcount can be accessed by a test class, but not by a non-test class? public class MyController {private Integer recordCount; }
Add the TestVisible annotation to recordCount
Pytanie 79
A developer needs to save a List of existing Account records named myAccounts to the database, but the records do not contain Salesforce Id values. Only the value of a custom text field configured as an External ID with an API name of Foreign_Key_c is known. Which two statements enable the developer to save the records to the database without an Id? Choose 2 answers
Database.upsert (myAccounts, Foreign_Key_c);
Upsert myAccounts Foreign_Key_c;
Pytanie 80
A developer is notified that a text field is being automatically populated with invalid values. However, this should be prevented by a custom validation rule that is in place. What could be causing this?
The field is being populated by a workflow field update

Powiązane tematy

#it