Laura Hdez
Quiz von , erstellt am more than 1 year ago

Quiz am 3. Platform Developer 1: Logic and Process Automation Part 1, erstellt von Laura Hdez am 26/12/2018.

409
1
0
Laura Hdez
Erstellt von Laura Hdez vor mehr als 5 Jahre
Schließen

3. Platform Developer 1: Logic and Process Automation Part 1

Frage 1 von 60

1

How can a developer check if a user has read access to a field and the field can be displayed on a Visualforce page?

Wähle eine der folgenden:

  • Call the isAccessible() method of Schema.DescribeFieldResult to verify field level read permission

  • Call the isViewable() method of Schema.DescribeFieldResult to verify field level read permission

  • Call the isReadable() method of Schema.SObjectResult to verify field level read permission

  • Call the IsAccessible() method of Schema.DescribeSObjectResult to verify field level read permission

Erklärung

Frage 2 von 60

1

What methods can be used to get a list of all sObjects in an organization and their fields? Choose 2 answers.

Wähle eine oder mehr der folgenden:

  • describeObjects()

  • describeGlobal()

  • describeSObjects()

  • describeSObjectFields()

Erklärung

Frage 3 von 60

1

How can a dynamic SOQL query be constructed at runtime using input from an end user?

Wähle eine der folgenden:

  • Use the Database.query(string) with a query specified in the string

  • Use the SOQL.execute(string) with a query specified in the string

  • Use the Database.execute(string) with a query specified in the string

  • Use the Database.search(string) with a query specified in the string

Erklärung

Frage 4 von 60

1

How can a developer check if the current user is able to delete the current object?

Wähle eine der folgenden:

  • Use the isDeletable() method of the DescribeSObjectResult Class

  • Use the canDelete() method of the DescribeSObjectResult Class

  • Use the Deletable() method of the SObjectResult Class

  • Use the canDelete() method of the SObjectResult Class

Erklärung

Frage 5 von 60

1

For which of the following requirements, could a formula field not be used?

Wähle eine der folgenden:

  • A custom field needs to have a default value such as the week from the current date

  • Display a traffic light image of red, yellow or green based on case priority

  • Concatenate values from long text area fields

  • Create a link to an application outside of Salesforce, passing parameters including the session id

Erklärung

Frage 6 von 60

1

Stock Symbol is a custom field on the Account object. What is the best way to make this field appear on Contact detail page layout?

Wähle eine der folgenden:

  • Roll up summary field

  • Lookup field

  • Formula Field

  • Parent Field

  • Requires Apex Code

Erklärung

Frage 7 von 60

1

Universal Containers would like to see a Red / Yellow / Green Traffic Light representation on the Opportunity detail page, based on the value in the Opportunity Probability field. What would you use to achieve this?

Wähle eine der folgenden:

  • Formula Field

  • Master Detail Relationship

  • Rich Text Field

  • Image Field

Erklärung

Frage 8 von 60

1

Which of the following are true about cross-object formula fields? Choose 3 answers.

Wähle eine oder mehr der folgenden:

  • For every object, cross object formula fields can be used in 3 roll-up summaries.

  • Cross object formula fields can pull field values from master-detail or lookup parent records.

  • Cross object formula fields can pull data from a record even if the user does not have access to it.

  • Cross object formula fields can pull field values from objects that are up to 10 relationships away.

  • Cross object formula fields can pull field values from its child records.

Erklärung

Frage 9 von 60

1

Steadfast Insurance Inc. have a custom object [Claim] to track insurance claims. A team member will record a claim and an approval process is used for the insurance manager to approve the claim. In order to assist the manager, the team member's claim limit from their user record should be displayed on the claim record. How can this be developed?

Wähle eine der folgenden:

  • Use a field update in a workflow rule to copy the team members claim limit onto the claim record

  • Use a cross object formula to display the users limit on the claim record

  • Use a trigger to populate the user limit field when the claim is created

  • Use Process Builder to populate the user limit field when the claim is created

Erklärung

Frage 10 von 60

1

You have a requirement to display the total cost of products at the time they were added to an opportunity. The product cost is a custom field on the product object and is added as a formula field to the opportunity product object. How would you meet this requirement?
A. Create a rollup summary field on the opportunity based on the product cost formula field

Wähle eine der folgenden:

  • Create a rollup summary field on the opportunity based on the product cost formula field

  • Create a workflow rule that copies the product cost to a currency field and create a rollup summary field based on the currency field

  • A trigger is required to sum the values of the product cost formula field

  • A trigger is required to query the product cost values and update the opportunity

Erklärung

Frage 11 von 60

1

To fulfill a business requirement, a formula field of a child object has been used in a roll-up summary field of a Master object. Will the roll-up summary field function correctly?

Wähle eine der folgenden:

  • Yes, using formula fields in a roll-up summary is fully supported

  • Yes, if the formula field is not referring to another field in a different object

  • Yes, if the formula field has a numeric value

  • No, using formula fields in a roll-up summary is not supported.

Erklärung

Frage 12 von 60

1

Which of the following field types can a roll-up summary field calculate?

Wähle eine der folgenden:

  • Number

  • Text

  • Checkbox

  • Picklist

Erklärung

Frage 13 von 60

1

An organization has enabled Multiple Currencies. A developer needs to calculate the total of the Estimated_value__c on CampaignMember object using a roll-up summary field on Campaign object named Total_estimated_value__c. What will be the currency of the Total_estimated_value__c field?

Wähle eine der folgenden:

  • The field values in Estimated_value__c from CampaignMember object are converted into the currency of the Campaign, and the Total_estimated_value__c is shown using the currency of the Campaign.

  • The field values in Estimated_value__c are converted into the currency of the majority of the CampaignMember records, and the Total_estimated_value__c is shown using that currency.

  • The field values in Estimated_value__c from CampaignMember object are summed up, and the Total_estimated_value__c field is shown as a Number field on the Campaign.

  • The field values in Estimated_value__c from CampaignMember object are converted into the currency of the current user, and the Total_estimated_value__c is shown using the currency of the current user on the Campaign.

Erklärung

Frage 14 von 60

1

A company would like to send record information to a legacy system when a criteria is met. A developer can accomplish this requirement by using:

Wähle eine der folgenden:

  • Outbound Notification Rule

  • Workflow Rule with Outbound Message

  • Assignment Rule

  • Visual Workflow

Erklärung

Frage 15 von 60

1

The following scenarios can be achieved through the use of standard workflow, instead of using Process Builder, except for? There are 2 correct answers.

Wähle eine oder mehr der folgenden:

  • Creating tasks at multiple intervals

  • Submitting an Order for approval

  • Copying the Account postal code to all child contacts

  • Field update on parent object.

Erklärung

Frage 16 von 60

1

How can child records be updated when the parent is modified? Choose 2 answers.

Wähle eine oder mehr der folgenden:

  • Using Process Builder

  • Using Cross object workflow

  • Using a Trigger

  • Using a formula field

Erklärung

Frage 17 von 60

1

The Stage field of all related Opportunity records should be updated to [Closed Lost], when the associated Account record becomes Inactive. What could be used for this?

Wähle eine der folgenden:

  • Visual Workflow

  • Approval Process

  • Process Builder

  • Workflow rule

Erklärung

Frage 18 von 60

1

Before deleting a record, a complex validation needs to be performed to confirm that the record can be deleted by querying a number of objects. What solution would be most appropriate in this situation?

Wähle eine der folgenden:

  • Apex Trigger

  • Process Builder

  • Validation Rule

  • Visual Workflow

Erklärung

Frage 19 von 60

1

Universal Insurance uses Salesforce for managing claims. If an email is sent regarding a claim, it should be checked for a reference number and if found, attached to a claim record, and the status of the claim record updated. What feature would be most appropriate for this requirement?

Wähle eine der folgenden:

  • Email to Case

  • Email to Custom Object

  • Process Builder

  • Custom Email Handler

Erklärung

Frage 20 von 60

1

A developer is considering writing a trigger to perform data validation to ensure that only valid data is saved. What other options can be used for data quality checks? Choose 3 answers.

Wähle eine oder mehr der folgenden:

  • Validation rules

  • Required fields

  • Picklists

  • Escalation rules

Erklärung

Frage 21 von 60

1

A recruiting application has been proposed by developers that covers Job vacancies and respective applications. The business wants to display the number of applications of every job vacancy without inheriting the security of the parent record (job vacancy) it has. The developer should: Choose 2 answers.

Wähle eine oder mehr der folgenden:

  • Create a lookup relationship between the 2 objects.

  • Create an Apex Trigger that will count all job application on each job and update a field on the parent object.

  • Create a roll up summary on the Job Vacancy object.

  • Create a master-detail relationship between Job Vacancy and Job Application.

Erklärung

Frage 22 von 60

1

Which of the following is NOT an example of a valid Apex variable?

Wähle eine der folgenden:

  • Map<ID, String> sampleMap;

  • Boolean y;

  • String a,b,c;

  • Currency abc;

Erklärung

Frage 23 von 60

1

The developer executes the code below and an error is returned indicating that a variable is not properly declared.

String str = new String();
public void stringDisplay() {
str = 'Hello';
system.debug(str);
}
What is the proper way of declaring a String data type variable?

Wähle eine der folgenden:

  • Text str;

  • String new = str String();

  • String str;

  • String = str();

Erklärung

Frage 24 von 60

1

Given the following options, what are the valid ways to declare a collection variable? Choose 3 answers.

Wähle eine oder mehr der folgenden:

  • new Account(<Name = 'Business Account'>)

  • new Map<Id, Account>()

  • new Contact[]{<elements>}

  • new List<Account>()

  • new Integer()

Erklärung

Frage 25 von 60

1

In Apex, an expression is a construct made up of variables, operators, and method invocations that evaluates to a single value. Which of the following is not a valid Apex expression?

Wähle eine der folgenden:

  • 3 + 4

  • new List<Opportunity>()

  • myClass.myMethod()

  • @future

Erklärung

Frage 26 von 60

1

How can a developer access a static variable named TaxRate declared in a different Apex class named TaxCalculation?

Wähle eine der folgenden:

  • TaxCalculation.TaxRate

  • TaxCalculation.TaxRate()

  • (new TaxCalculation()).TaxRate

  • (new TaxCalculation()).TaxRate()

Erklärung

Frage 27 von 60

1

A developer executes the code below:

If (isCorrect) {
System.debug('The value of x is True');
} else if (!isCorrect) {
System.debug('The value of x is False');
} else {
System.debug('The value of x is Null');
}

How should the developer initialize the variable 'isCorrect'?

Wähle eine der folgenden:

  • Blob isCorrect;

  • String isCorrect;

  • Boolean isCorrect;

  • Enum isCorrect;

Erklärung

Frage 28 von 60

1

Given the following value from a Lead record, lastModifiedDate:2016-05-06 03:25:41, what data type should the developer use to retrieve this type of information?

Wähle eine der folgenden:

  • Time

  • DateTime

  • Date

  • DateValue

Erklärung

Frage 29 von 60

1

Which data type is appropriate for a numerical value of 726.234 stored in the variable totalCost?

Wähle eine der folgenden:

  • Integer totalCost;

  • Decimal totalCost;

  • Long totalCost;

  • Numeric totalCost;

Erklärung

Frage 30 von 60

1

A developer needs to initialize a numerical value of 17. What data type should the developer use?

Wähle eine der folgenden:

  • String

  • Blob

  • Numeric

  • Integer

Erklärung

Frage 31 von 60

1

How can a developer ensure that a variable 'Day' will only contain specific set of constants such as SUNDAY, MONDAY, TUESDAY.....SATURDAY? What should variable 'Day' be declared as?

Wähle eine der folgenden:

  • enum Day{ SUNDAY, MONDAY, .....SATURDAY}

  • list<String>Day{ SUNDAY, MONDAY, .....SATURDAY}

  • set<String>Day{ SUNDAY, MONDAY, .....SATURDAY}

  • map<Id, String>Day{ SUNDAY, MONDAY, .....SATURDAY}

Erklärung

Frage 32 von 60

1

What will be the result if the code below is executed when the variable testRawScore is 75?

if (testRawScore >= 90) {
gradeEqual = 'A';
} else if (testRawScore >= 80) {
gradeEqual = 'B';
} else if (testRawScore >= 70) {
gradeEqual = 'C';
} else if (testRawScore >= 60) {
gradeEqual = 'D';
}

System.debug(gradeEqual);

Wähle eine der folgenden:

  • A

  • B

  • C

  • D

Erklärung

Frage 33 von 60

1

What will be the result if the code below is executed when the variable testRawScore is 75?
if (testRawScore >= 90) {
gradeEqual = 'A';
}
if (testRawScore >= 80) {
gradeEqual = 'B';
}
if (testRawScore >= 70) {
gradeEqual = 'C';
}
if (testRawScore >= 60) {
gradeEqual = 'D';
}
System.debug(gradeEqual);

Wähle eine der folgenden:

  • A

  • B

  • C

  • D

Erklärung

Frage 34 von 60

1

What is the output of the code below?

Integer z = 5;
do {
z = z + 1;
} while(z <= 15);
System.debug(z);

Wähle eine der folgenden:

  • 13

  • 14

  • 15

  • 16

Erklärung

Frage 35 von 60

1

What is the correct syntax for a Do While procedural loop?

Wähle eine der folgenden:

  • do {statement} while (Boolean_condition);

  • while (Boolean_condition){ do {statement}}

  • do {while (Boolean_condition); statement;}

  • do {statement; while (Boolean_condition);}

Erklärung

Frage 36 von 60

1

What is the method in the second line of the code snippet below called?
public class sampleClass(){
public sampleClass(){
//logic here
}

public void sampleMethod(){
//logic here
}
}

Wähle eine der folgenden:

  • Constructor

  • Modifier

  • Extension

  • Initiator

Erklärung

Frage 37 von 60

1

Which of the following are NOT valid use cases of Apex classes? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • Triggers

  • Multiple objects validation

  • Visualforce pages with standard controllers

  • Web Service

  • Custom button with Javascript

Erklärung

Frage 38 von 60

1

Which correctly describes the code snippet below?
Choose 2 answers.

public with sharing class containerClass {
//Insert code here
public class innerClass {
//Insert code here
}
}

Wähle eine oder mehr der folgenden:

  • The innerClass does not inherit the sharing setting of the containerClass.

  • The [with/without sharing] keyword should only be defined in outer classes.

  • [without sharing] will be the default for the inner class

  • The innerClass inherits the sharing setting of the containerClass.

Erklärung

Frage 39 von 60

1

Which of the following class variable declarations best describes the statement below?
A variable numberOfStudents with a constant value of 25 that is accessible only within the Apex class in which it is defined.

Wähle eine der folgenden:

  • global static Integer numberOfStudents = 25;

  • private static final Integer numberOfStudents = 25;

  • public Integer numberOfStudents = 25;

  • protected final Integer numberOfStudents = 25;

Erklärung

Frage 40 von 60

1

The following access modifiers are supported in Apex except?

Wähle eine der folgenden:

  • private

  • public

  • global

  • default

Erklärung

Frage 41 von 60

1

In the following line of code, why can the helloWorld method be called directly instead of instantiating the myClass?
myClass.helloWorld('Hello');

Wähle eine der folgenden:

  • helloWorld is defined as a static method

  • helloWorld is defined as a void method

  • myClass is defined as a static class

  • myClass is defined as public

Erklärung

Frage 42 von 60

1

Which of the following statements are true when defining Apex classes? Choose 2 answers.

Wähle eine oder mehr der folgenden:

  • It is optional to specify an access modifier in declaring a top-level class.

  • A top-level class can have multiple levels of inner classes.

  • It is required to specify an access modifier in declaring top-level class.

  • It is optional to specify an access modifier in declaring inner class.

Erklärung

Frage 43 von 60

1

Which of the following statements about defining an Apex Class is not true?

Wähle eine der folgenden:

  • An access modifier is required in the declaration of a top-level class

  • A definition modifier is required in the top-level class.

  • The keyword [class] followed by the name of the class is necessary

  • A developer may add optional extensions and/or implementations

Erklärung

Frage 44 von 60

1

When should a static method or variable be used? Choose 3 answers.

Wähle eine oder mehr der folgenden:

  • To store information that is shared across instances of a class

  • To use as a utility method

  • When the static variable value should persist beyond the context of a single transaction

  • A developer needs to access a method without instantiating a class.

Erklärung

Frage 45 von 60

1

A PageReference is a reference to an instantiation of a page. Which of the following are valid means of instantiating a PageReference? There are 2 correct answers.

Wähle eine oder mehr der folgenden:

  • ApexPages.Page().existingPageName

  • Page.existingPageName

  • PageReference pageRef = new PageReference('URL');

  • PageReference.page('URL')

Erklärung

Frage 46 von 60

1

Which of the following does not execute in system mode?

Wähle eine der folgenden:

  • Apex Triggers

  • Anonymous Code Blocks

  • Apex Classes

  • Apex Web Service

Erklärung

Frage 47 von 60

1

A developer needs to create a new Contact record in his Apex Trigger. What DML statement should be used in the code?

Wähle eine der folgenden:

  • Insert

  • Upsert

  • Merge

  • Create

Erklärung

Frage 48 von 60

1

An administrator needs to get records with locations saved in geolocation or address fields as individual latitude and longitude values. Which SOQL statement accomplishes this goal?

Wähle eine der folgenden:

  • SELECT Id, Name, Location__latitude__s, Location__longitude__s FROM CustomObject__c

  • SELECT Id, Name, Location__latitude__c, Location__longitude__c FROM CustomObject__c

  • SELECT Id, Name, Location__r.latitude__c, Location__r.longitude__c FROM CustomObject__c

  • SELECT Id, Name, Location__r.latitude, Location__r.longitude FROM CustomObject__c

Erklärung

Frage 49 von 60

1

There are several escape sequences that can be used in queries so that a user query can contain special characters. The following are escape sequences commonly used except?

Wähle eine der folgenden:

  • \'

  • \"

  • \\

  • \n

  • \a

Erklärung

Frage 50 von 60

1

What should a developer consider when using the upsert operation to insert and update records? Choose 3 answers.

Wähle eine oder mehr der folgenden:

  • Using the upsert operation, the administrator can either insert or update an existing record in one call.

  • To determine whether a record already exists, the upsert statement or Database method uses the ID of the record as the key to match records, a custom external ID field, or a standard field with the idLookup attribute set to true.

  • If the key is not matched, a new object record is created. If the key is matched once, the existing object record is updated.

  • If the key is matched multiple times, the existing object record is updated based on the latest match.

Erklärung

Frage 51 von 60

1

A developer notices that the code below returns only 20 Account records though he expected 60. Which of the following is true regarding SOSL query limits?

Wähle eine der folgenden:

  • Limits cannot be set in SOSL queries

  • Results were evenly distributed among the objects returned.

  • Limits have to be individually assigned per object.

  • The SOSL Syntax is incorrect

Erklärung

Frage 52 von 60

1

A developer needs to get the Contact records with a last name that starts with 'Ab'. What code in the options below will satisfy his requirements?

Wähle eine der folgenden:

  • SELECT Id, LastName FROM Contact WHERE LastName LIKE 'Ab%'

  • SELECT Id, LastName FROM Contact WHERE LastName IN ('Ab')

  • SELECT Id, LastName FROM Contact WHERE LastName LIKE 'Ab_'

  • SELECT Id, LastName FROM Contact WHERE LastName := 'Ab%'

Erklärung

Frage 53 von 60

1

How would a developer write a query to return the number of leads for each lead source?

Wähle eine der folgenden:

  • SELECT LeadSource, COUNT(Name) FROM Lead GROUP BY LeadSource

  • SELECT GROUP(LeadSource) FROM Lead

  • SELECT COUNT(LeadSource) FROM Lead

  • SELECT COUNT(*) FROM Lead GROUP BY LeadSource

Erklärung

Frage 54 von 60

1

Which of the following DML statements will allow other records in a list to be inserted even if there are records that failed?

Wähle eine der folgenden:

  • insert sObjectsToCreate;

  • upsert sObjectsToCreate;

  • Database.insert(sObjectsToCreate,true);

  • atabase.insert(sObjectsToCreate,false);

Erklärung

Frage 55 von 60

1

Which standard objects in the following list are not supported by DML Operations? Choose 2 answers.

Wähle eine oder mehr der folgenden:

  • Profile

  • User

  • Opportunity Line Item

  • Record Type

Erklärung

Frage 56 von 60

1

Which of the following statements about delete and undelete DML operation is NOT true?

Wähle eine der folgenden:

  • If a parent object is deleted, its children are automatically deleted, as long as each child record can be deleted.

  • Salesforce can restore lookup relationships that have been replaced.

  • Restoring all custom lookup relationships is supported by the undelete operation.

  • Parent accounts (as specified in the Parent Account field on an account) are supported by the undelete operation.

Erklärung

Frage 57 von 60

1

Which of the following statements about the IF-ELSE statement are true? Choose 2 answers.

Wähle eine oder mehr der folgenden:

  • The IF-ELSE statement permits a choice to be made between two possible execution paths.

  • An IF-ELSE statement allows a variable to be tested for equality against a list of values.

  • An IF statement can be followed by a discretionary ELSE statement, which executes when the Boolean expression is false.

  • The IF-ELSE statement provides a secondary path of execution when an IF clause evaluates to true.

  • An IF-ELSE statement can have a number of possible execution paths.

Erklärung

Frage 58 von 60

1

Which of the following is required when defining an Apex Class Method?

Wähle eine der folgenden:

  • Access Modifiers

  • Return Data type

  • Definition Modifiers

  • Input parameters

Erklärung

Frage 59 von 60

1

How can a developer get all picklist values of a specific field via Apex?

Wähle eine der folgenden:

  • Use the fieldPicklist method

  • Use the getPicklistValues method

  • Use the describePicklist method

  • Use the globalPicklist method

Erklärung

Frage 60 von 60

1

What is the discretionary clause that can be added to a SOSL query to specify the information to be returned in the text search result?

Wähle eine der folgenden:

  • LIMIT n

  • RETURNING

  • OFFSET n

  • ORDER by

Erklärung