Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Salesforce DEV-501 Practice Exam with Questions & Answers | Set: 6

Questions 51

The system method, System.runAs(), lets you write test methods that change user contexts to either an existing user or a new user.

Options:
A.

True

B.

False

Salesforce DEV-501 Premium Access
Questions 52

A developer would like to modify the contents of the hover details for a custom object called Position. What would a developer customize to accomplish this?

Options:
A.

Imposition page layouts

B.

Position search layouts

C.

Position record types

D.

Position field dependencies

Questions 53

A Visualforce page consists of which primary elements? (Select all that apply)

Options:
A.

An Apex class

B.

A Visualforce controller

C.

A trigger.

D.

S-Controls

E.

Visualforce Markup

F.

None of the above

Questions 54

How can the default profile under which Webservices execute be changed? (No Answer)

Options:
A.

with sharing keyword

B.

Webservice

C.

SOQL statements

D.

constructor

Questions 55

What is the maximum size of a SOAP request or response? (No Answer)

Options:
A.

3 MB

B.

Ids

C.

10

D.

Java

Questions 56

What components of apex are available to improve the processing of data in Salesforce?

Options:
A.

Database class method

B.

GET, POST, PUT, DELETE

C.

Batch apex, apex scheduler.

D.

Internal and external

Questions 57

Which field is available as part of the translation workbench for a validation rule?

Options:
A.

Formula

B.

Description

C.

Error Message

D.

Rule Criteria

Questions 58

What datatype is used for standard or custom objects that store record data? (No Answer)

Options:
A.

System

B.

sObject

C.

Global

Questions 59

A developer can use optional catch statements for any exception type in a try-catch block. However, the general exception type, 'Exception', must only be used by the last catch() block.

EXAMPLE:

try{

// Some risky code.

}

catch(SomeExceptionType e){

// Handle one exception type.

}

catch(SomeOtherExceptionType e){

// Handle another exception type.

}

catch(Exception e){

// This must be the last catch block.

}

~|~

(Select all that apply)

Options:
A.

Make calls to methods using both valid and invalid inputs.

B.

In the case of conditional logic (including ternary operators), execute each branch of code logic.

C.

Only test code using the System Administrator profile.

D.

Focus solely on test coverage percentage score.

E.

Complete successfully without throwing any exceptions, unless those errors are expected and caught in a try...catch block.

F.

None of these

Questions 60

Universal Containers requires that some employees are able to view and edit records of a custom object called Positions, but no users can delete them.

How can Universal Containers accomplish this goal?

Options:
A.

Assign the Read-only profile to all users

B.

Set the organization wide default for positions to Read-only

C.

Remove the Delete permission for positions from all profiles

D.

Remove the Delete Access for positions from all user roles