CRT-450 Practice Test Questions

387 Questions


Topic 2 : Exam Pool B

What is a capability of a StandardSetController?Choose 2 answers


A.

It allows pages to perform mass updates of records


B.

It allows pages to perform pagination with large record sets


C.

It enforces field-level security when reading large record sets


D.

It extends the functionality of a standard or custom controller





A.
  

It allows pages to perform mass updates of records



B.
  

It allows pages to perform pagination with large record sets



Which data structure is returned to a developer when performing a SOSL search?


A.

A list of lists of sObjects.


B.

A map of sObject types to a list of sObjects


C.

A map of sObject types to a list oflists of sobjects


D.

A list of sObjects.





A.
  

A list of lists of sObjects.



What is an important consideration when developing in a multi-tenant environment?


A.

Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.


B.

Unique domain names take the place of namespaces for code developed for multiple orgs on multiple
instances.


C.

Polyglot persistence provides support for a global, multilingual user base in multiple orgs on multiple
instances.


D.

Org-wide data security determines whether other tenants can see data in multiple orgs on the same
instance.





A.
  

Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.



A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?


A.

Nothing. The task is automatically displayed on the Account page.


B.

Nothing. The Task cannot be related to an Account and a Contact.


C.

Create a Workflow rule to relate the Task to the Contact's Account.


D.

Create an Account formula field that displays the Task information.





A.
  

Nothing. The task is automatically displayed on the Account page.



A 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?


A.

Create a required Visualforce component.


B.

Create a formula field.


C.

Create a required comments field.


D.

Create a validation rule.





D.
  

Create a validation rule.



A developer has the following code:try {List 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 will be logged?


A.

List Exception


B.

NullPointer Exception


C.

Generic Exception


D.

No message is logged





B.
  

NullPointer Exception



A developer created a lightning component name accountList.cmp that display a list of Accounts. Client-side
logic that is executed when a user hovers over an account in the list should be stored in which bundle member?


A.

AccountListHelper.js


B.

AccountListRenderer.js


C.

AccountList.renderer


D.

AccountList.helper





C.
  

AccountList.renderer



What is a valid way of loading external JavaScript files into a Visualforce page? (Choose 2) 


A.

Using an (apex:includeScript)* tag. \>


B.

Using an (apex:define)* tag.


C.

Using a (link)* tag.


D.

Using a (script)* tag.





A.
  

Using an (apex:includeScript)* tag. \>



D.
  

Using a (script)* tag.



What is an accurate statement about variable scope? (Choose 3)


A.

Parallel blocks can use the same variable name.


B.

A variable can be defined at any point in a block.


C.

Sub-blocks cannot reuse a parent block's variable name.


D.

Sub-blocks can reuse a parent block's variable name if it's value is null.


E.

A static variable can restrict the scope to the current block of its value is null.





A.
  

Parallel blocks can use the same variable name.



B.
  

A variable can be defined at any point in a block.



C.
  

Sub-blocks cannot reuse a parent block's variable name.



What is a benefit of the Lightning Component framework?Choose 3 answers


A.

It uses client-side Apex controllers for logic.


B.

It uses a traditional publish-subscribe model.


C.

It uses an event-driven architecture


D.

It uses an MVC architectural design pattern.


E.

It uses server-side JavaScript controller for logic





B.
  

It uses a traditional publish-subscribe model.



C.
  

It uses an event-driven architecture



D.
  

It uses an MVC architectural design pattern.



Which scenario is invalid for execution by unit tests?


A.

Executing methods for negative test scenarios 


B.

Loading the standard Pricebook ID using a system method


C.

Loading test data in place of user input for Flows.


D.

Executing methods as different users.





C.
  

Loading test data in place of user input for Flows.



When would a developer use a custom controller instead of a controller extension? Choose 2 answers:


A.

When a Visualforce page needs to replace the functionality of a standard controller.


B.

When a Visualforce page does not reference a single primary object.


C.

When a Visualforce page should not enforce permissions or field-level security.


D.

When a Visualforce page needs to add new actions to a standard controller.





B.
  

When a Visualforce page does not reference a single primary object.



C.
  

When a Visualforce page should not enforce permissions or field-level security.




Page 9 out of 33 Pages
Previous