Which SOQL query successfully returns the Accounts grouped by name?

Which SOQL query successfully returns the Accounts grouped by name?A . SELECT Type, Max(CreatedDate) FROM Account GROUP BY NameB . SELECT Name, Max(CreatedDate) FROM Account GROUP BY NameC . SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY NameD . SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5View...

December 11, 2020 No Comments READ MORE +

Which approach should the developer use to accomplish this declaratively?

A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?A . A Visualforce page that calculates the total number of...

December 11, 2020 No Comments READ MORE +

What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)

What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)A . for (Account theAccount : AccountList) {…}B . for(AccountList) {…}C . for (List L : AccountList) {…}D . for (Integer i=0; i < AccountList.Size(); i++) {…}View AnswerAnswer: A,D

December 10, 2020 No Comments READ MORE +

What is a capability of the Developer Console?

What is a capability of the Developer Console?A . Execute Anonymous Apex code, Create/Edit code, view Debug Logs.B . Execute Anonymous Apex code, Run REST API, create/Edit code.C . Execute Anonymous Apex code, Create/Edit code, Deploy code changes.D . Execute Anonymous Apex code, Run REST API, deploy code changes.View AnswerAnswer:...

December 10, 2020 No Comments READ MORE +

In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object?

A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)A . Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.B . Use mySObject.myObject.fields.getMap() to return...

December 10, 2020 No Comments READ MORE +

Which code block will run successfully in an execute anonymous window?

A developer has the controller class below. Which code block will run successfully in an execute anonymous window?A . myFooController m = new myFooController();System.assert(m.prop !=null);B . myFooController m = new myFooController();System.assert(m.prop ==0);C . myFooController m = new myFooController();System.assert(m.prop ==null);D . myFooController m = new myFooController();System.assert(m.prop ==1);View AnswerAnswer: C

December 10, 2020 No Comments READ MORE +

How are the selected values represented in Apex?

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 separated by a commaB . As a Set with each value as an element in the setC . As a String with...

December 10, 2020 No Comments READ MORE +

Which two methods should a developer use to create this case?

When an Account’s custom picklist field called Customer Sentiment is changed to a value of “Confused”, a new related Case should automatically be created. Which two methods should a developer use to create this case? (Choose two.)A . Process BuilderB . Apex TriggerC . Custom ButtonD . Workflow RuleView AnswerAnswer:...

December 9, 2020 No Comments READ MORE +

What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?

A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?A . Use the first three characters of the sObject ID to determine the sObject type.B . Use the...

December 9, 2020 No Comments READ MORE +

What does the query return if there is no Contact with the last name 'Smith'?

A developer has the 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 initialized to null.B . An error that no rows are found.C ....

December 9, 2020 No Comments READ MORE +