Quiz
Examen Developer I - III
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (49)
1What type of level logs have to use to show the minimum lines?
- AFINE
- BDEBUG
- CWARNING
- DINFO
- EWARM
2 Debug logs can contain information about which of the folowing?
Choose 3 answers- ADatabase changes
- Bhttp callouts
- CXML behind metadata configurations
- DResources used by Apex
- EFailed WebMtoMlead submissions
3A 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 to a different job posting.
What can the administrator do to associatean application with each job posting in
the schema for the organization?
Choose one answer- ACreate a lookup relationship on both objects to a junction object called Job
Posting Applications. - BCreate a master-detail relationship in Job Postings custom object to the
Applications custom object. - CCreate a master-detail relationship in the Applications custom object to the
Job Postings custom object. - DCreate a lookup relationship in the Applications custom object to the Job
Postings custom object.
- ACreate a lookup relationship on both objects to a junction object called Job
4Which scenario is invalid for execution by init tests?
Choose one answer- AExecuting methods as different users.
- BExecuting methods for negative test scenarios.
- CLoading the standard Pricebook ID using a system method.
- DLoading test data in place of user input for Flows.
5What is a benefit of the Lightning Component framework?
Choose 1 answers- ABetter performance for custom Salesforce1 Mobile apps.
- BMore centralized control via serverMside logic.
- CMore pre-build component to replicate the Salesforce look and feel.
- DBetter integration with Force.com sites.
6What is a accurate constructor for a custom controller named ‘MyController’?
Choose 1 answer
- Apublic MyController(List<Object> objects){
accounts = (List<Account>)objects;
} - Bpublic MyController(List<Object> objects){
account = (Account) obj; - Cpublic MyController(){
account = new Account();
} - Dpublic MyController(ApexPages.StandardController
stdController) {
account = (Account) stdController.getRecord();
}
- Apublic MyController(List<Object> objects){
7Where can custom rollMup summary field be created using Standard Object relationships?
Choose 3 answers
- AOn Quote using Orders records.
- BOn Opportunity using Opportunity Product records.
- COn Campaign using campaign member records.
- DOn Account using Opportunity records.
- EOn Account using Case records.
8What Force.com development tool is a Java/AntMbased commandMline utility for moving metadata between a local directory and a Force.com organization?
- ADeveloper Console
- BForce.com Migration Tool
- CForce.com IDE
- DWorkbench
9A 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?
- ACreate a formula field.
- BCreate a required Visualforce component.
- CCreate a required comments field.
- DCreate a validation rule.
10 A developer needs to create a Visualforce page that will override the standard
Account edit button. The page will be used to validate the account ‘s address
using a SOQL query. The page will also allow the user to make edits to the address.
Where would the developer write the Account address verification logic?
- AIn a Custom Controller.
- BIn a Standard Extension
- CIn a Standard Controller
- DIn a Controller Extension
11 A company wants a recruiting app that models candidates and interviews; display
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- ACreate a lookup relationship between the Candidate and Interview objects.
- BCreate a roolMup summary field on the Candidate object that counts
Interview records. - CCreate a trigger on the Interview object that updates a field on the
Candidate object. - DCreate a masterMdetail relationship between the Candidate and Interview
objects.
12Which statement should a developer avoid using inside procedural loops?
Choose 2 answers- AIf(o.account == a.id)
- Bupdate contactList;
- CList <Contact> contacts = [SELECT Id, Salutation, FirstName, LastName,
Email FROM Contact WHERE AccountId =:a.Id]; - DSystem.debug(‘Amount of CPU time (in ms) used so far: ‘ +
Limits.getCpuTime());
13What Force.com development tools can be used to write and manage Apex classes
and triggers?
Choose 2 answers
- ADeveloper Console
- BForce.com MIgration tool
- CForce.com IDE
- DWorkbench
14Which declarative method helps ensure quality data?
Choose 3 answers- AValidation rules
- BException handling
- CPage layouts
- DWorkflow alerts
- ELookup filters
15Which of the following statements are true about the ! operator in Apex?
- AIt terminates a line of code
- BIt is often read aloud as “bang”
- CIt cannot be used with Apex Triggers
- DIt reverses the outcome of a Boolean statement
16Identify the correct statements about dependent picklists
Choose 3 answers- AStandard picklists can be controlling fields but not dependent fields
- BThe maximum number of values allowed in a controlling field is 400
- CBefore defining a dependency, you should ensure that your picklist has at
least one value - DA custom multiMselect picklist can be set as the controlling field for a
dependent field - EIf a field represents both a controlling field and a dependent field, it cannot
contain more than 300 values
17 How can a developer determine, from the DescribeSObjectResult, if the current
user will be able to create records for an object in Apex?- ABy using the isCreatable() method.
- BBy using the isInsertable() method.
- CBy using the isAccess() method.
- DBy using the isCreate() method.
18In a single record, a user select multiple values from a multiMselect picklist.
How are the selected values represented in Apex?- AAs a List<String> with each value as an element in the list.
- BAs a String with each value separated by a comma.
- CAs a String with each value separated by a semicolon.
- DAs a Set<String> with each value as an element in the set.
19How can flows be deployed?
Choose 3 answers- ACustom button
- BCustom link
- CApex trigger
- DVisualforce page
- ECommand line
20When can a developer use a custom Visualforce page in a Force.com application?
Choose 2 answers- ATo generate a PDF document with application data.
- BTo modify the page layout settings for a custom object.
- CTo deploy components between two organizations
- DTo create components for dashboards and layouts.
21 Which of the following considerations is NOT true when it comes to using the SOAP API?
- AWhen developing web service client applications, use Developer Sandbox,
which is an exact replica of your Salesforce deployment, including all
customization and data. - BNew client applications should use the most recent version of the
Force.com WSDL file to fully exploit the benefits of richer features and
greater efficiency. - CSOAP API is the most practical when processing data sets that contain
hundreds of thousands of records. - DThe Apex data loader runs on the SOAP API by default.
- AWhen developing web service client applications, use Developer Sandbox,
22A developer writes a SOQL query to find child records for a specific parent.
How many levels can be returned in a single query?- A5
- B7
- C3
- D1
23Which part of the MVC Architecture do Workflows represent?
- AModel: What schema and data does salesforce uses to represent the
system completely. - BView: How the schema and data is represented.
- CController: How the interface actions. Controllers are used to perform the
actions whenever users interact with visual force.
- AModel: What schema and data does salesforce uses to represent the
24A developer needs to know if all tests currently pass in a Salesforce environment.
Which feature can the developer use?
Choose 2 answers.
- AANT Migration Tool
- BWorkbench Metadata Retrieval
- CDeveloper Console
- DSalesforce UI Apex Test Evacution
25Which code block returns the ListView of an Account object using the following
debug statement?
System.debug(controller.getListViewOptions());- AApexPages.StandardSetController controller = new
ApexPages.StandardSetController(Database.getQueryLocator(‘Sel
ect Id from Account Limit 1’)); - BApexPages.StandardSetController controller = new
ApexPages.StandardSetController([SELECT Id FROM Account LIMIT
1]); - CApexPages.StandardController controller = new
ApexStandardController(Database.getQueryLocator(‘Select Id
from Account Limit 1’)); - DApexPages.StandardController controller = new
ApexPages.StandardController([SELECT Id FROM Account LIMIT
1]);
- AApexPages.StandardSetController controller = new
26 What is a good practice for a developer to follow when writing a trigger?
Choose 2 answers- AUsing the Set data structure to ensure distint records.
- BUsing synchronous to callouts to call external systems.
- CUsing @future methods to perform DML operations.
- DUsing the Map data structure to hold query results by ID
27Programmatic tools are often required for features that do which of the following?
Choose 2 answers- ASupport specialized or complex business processes.
- BSupport out of the box Salesforce functionality
- CDon't need to connect to or integrate with thirdMparty systems.
- DProvide highly customized user interfaces or customized clickMthrough
paths.
28A 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?
- AThe invoices should have a lookup relationship to the Account.
- BThe invoices should have a MasterMDetail relationship to the Account.
- CThe Accounts should have a lookup relationship to the Invoice.
- DThe Accounts should have a MasterMDetail relationship to the invoice.
29Benefits to building applications declaratively on the Force.com platform include
which of the following?
Choose 3 answers- AAre usually faster and cheaper to build.
- BGenerally require less maintenance.
- CReceive automatic upgrades when the tools are improved.
- DAren’t subject to governor limits.
30 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?
- ABy using a rollMup formula field on the child record to include data from the
parent record. - BBy using merge field syntax to retrieve data from the parent record.
- CBy adding a second standard controller to the page for the parent record.
- DBy using SOQL on the Visualforce page to query for data from the parent
record.
- ABy using a rollMup formula field on the child record to include data from the
31 A developer has the following code.
try {
List<String> nameList;
Account a;
String s = a.Name;
nameList.add( s );
} catch(ListException le){
System.debug(‘List Exception’);
} catch(NullPointerException npe){
System.debug(‘NullPointer Exception’);
} catch(Exception e){
System.debug(‘Generic Exception’);
}
What message would be logged?- ANo message is logged
- BGeneric Exception
- CNullPointer Exception
- DList Exception
32A 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 myAccount = new Account(Name=’MyAccount’ + x);
try{
insert myAccount;
} catch (Exception ex){
System.Debug(ex);
}
}
How many accounts are in the org after this code is run?
- A251
- B102
- C100
- D101
- E252
33What is a capability of formula fields?
Choose 3 answers- ADetermine if a datetime field has passed using the NOW function.
- BReturn and display a field value another object using VLOOKUP function.
- CGenerate a link using the HYPERLINK function to a specific record in a
legacy system. - DDisplay the previous value for a field using the PRIORVALUE function.
- EDetermine which of three different images to display using the IF function.
34When the value of a field in an account record is updated, which method will
update the value of a custom field in all related opportunities?
Choose 2 answers- AA crossMobject formula field on the Account object.
- BAn Apex trigger on the Account object.
- CA Process Builder on the Account object.
- DA Workflow Rule on the Account object.
35What is the proper process for an Apex Unit Test?
- AQuery for test data using SeeAllData=true. Execute runallTests(). Verify
taht the results are correct. - BCreate data for testing. Call the method being tested. Verify that the result
are correct. - CQuery for test data using SeeAllData=true. Call the method being tested.
Verify taht the result are correct. - DCreate data for testing, Execute runAllTests().Verify that the result are
correct.
- AQuery for test data using SeeAllData=true. Execute runallTests(). Verify
36Which type of information is provided by the Checkpoints tab in the Developer
Console?
Choose 2 answers- ADebug Statement
- BTime
- CNamespace
- DException
37What 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’;
}- AC
- BB
- CD
- DA
38 Which statement would a developer use when creating test data for products and
pricebooks?- AIsTest(SeeAllData=false)
- BId pricebookid = Test.getStandardPricebookId();
- CListobjList = Test.loadData(Account.sObjectType, ‘myResource’);
- DPricebook pb = new Pricebook();
39 A developer creates an Apex helper class to handle complex trigger logic.
How can the helper class warn users when the trigger excedes DML governor
limits?
- ABy using ApexMessage.Message() to display an error message after the
number of DML statements is exceded. - BBy using Messaging.SendEmail() to continue the transaction and send an
alert to the user after the number of DML statements is exceded. - CBy using Pagereference.setRedirect() to redirect the user to a custom
Visualforce page before the number of DML statements is exceded. - DBy using Limits.getDMLRows() and then displaying an error message before
the number of DML statements is exceded.
- ABy using ApexMessage.Message() to display an error message after the
40 A developer has the following querys
Contact c = [SELECT Id, FirstName, LastName, email FROM Contact where
LastName = ‘Smith’];
What dose the query return if there is no Contact with the last name “Smith”?
- AA contact with empty values.
- BAn empty List of Contacts.
- CA Contact initialized to null.
- DAn error that no rows are found.
41 Which statement about change set deployments is accurate?
Choose 3 answers- AThey requiere a deployment connection.
- BThey can be used to transfer Contact records.
- CThey can be used only between related organizations.
- DThey use an all or none deployment model.
- EThey can be used to deploy custom settings data.
42A 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?- AAdd the TestVisible attribute to the Apex class.
- BAdd the SeeAllData attribute to the test methods.
- CAdd the TestVisible attribute to the Apex methods.
- DAdd the SeeAllData attribute to the test class.
43 Where would a developer build a managed package?
- ADeveloper Sandbox
- BPartial Copy Sandbox
- CUnlimited Edition
- DDeveloper Edition
44In the Lightning Component framework, which resource can be used to fire
events?
Choose 2 answers- AThird-party web service code.
- BJavaScript controller actions.
- CThird-party Javascript code.
- DVisualforce controller actions.
45A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce.
Which statement can a adeveloper use to retrieve the correct URL for the current
user’s profile and display this on a Visualforce Page?- A{ Setup.Url_Settings__c.Instance[Profile.Id].URL__c}
- B{ Setup.Url_Settings__c[$Profile.Id].URL__c}
- C{ Setup.Url_Settings__c.URL__c}
- D{ Setup.Url_Settings__c[Profile.Id].URL__c}
46What is the minimun log level needed to see userMgenerated debug statements?
- ADEBUG
- BWARN
- CINFO
- DFINE
47Which trigger event allows a developer to update fields in the Trigger new list
without an additional DML statement?
Choose 2 answers
- AAfter update
- BBefore update
- CAfter insert
- DBefore insert
48What is a valid way of loading external Javascript files into a Visualforce page?
Choose 2 answers- AUsing a <link> tag.
- BUsing an <apex:includeScript> tag.
- CUsing a <script> tag.
- DUsing an <apex:define> tag.
49A developer is creating an application to track engines and their parts. An
individual part can be used in different types of engines.
What data model should be used to track the data and to prevent orphan records?- ACreate a masterMdetail relationship to represent the oneMtoMmany model of
engines to parts. - BCreate a junction object to relate many engines to many parts through a
masterMdetail relationship. - CCreate a lookup relationship to represent how each part relates to the
parent engine object. - DCreate a junction object to relate many engines to many parts through a
lookup relationship.
- ACreate a masterMdetail relationship to represent the oneMtoMmany model of
Informações
- Descrição
- Modelo III
- Idioma
- Español
- Visualizações
- 2.290
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz