CRT-450 Exam Questions

Total 387 Questions

Last Updated Exam : 22-Oct-2024

Topic 2 : Exam Pool B

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.



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 newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception
ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after
this code is run?


A.

101


B.

100


C.

102


D.

252





B.
  

100



A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds DML governor limits?


A.

By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded.


B.

By using Messaging.sendEmail() to continue toe transaction and send an alert to the user after the
number of DML statements is exceeded.


C.

By using AmexMessage.Messages() to display an error message after the number of DML statements is
exceeded.


D.

By using Limits.getDMLRows() and then displaying an error message before the number of DML
statements is exceeded.





D.
  

By using Limits.getDMLRows() and then displaying an error message before the number of DML
statements is exceeded.




Page 11 out of 39 Pages
Previous