CRT-450 Exam Questions

Total 387 Questions

Last Updated Exam : 22-Nov-2024

Topic 1 : Exam Pool A

A developer is asked to create a PDF quote document formatted using the company’s branding guidelines, and automatically save it to the Opportunity record. Which two ways should a developer create this functionality? (Choose two.)


A.

Install an application from the AppExchange to generate documents.


B.

Create a Visualforce page with custom styling.


C.

Create an email template and use it in Process Builder.


D.

Create a visual flow that implements the company’s formatting.





A.
  

Install an application from the AppExchange to generate documents.



B.
  

Create a Visualforce page with custom styling.



What are three characteristics of static methods? (Choose three.)
Initialized only when a class is loaded


A.

A static variable outside of the scope of an Apex transaction


B.

Allowed only in outer classes


C.

Allowed only in inner classes


D.

Excluded from the view state for a Visualforce page





A.
  

A static variable outside of the scope of an Apex transaction



C.
  

Allowed only in inner classes



E.
  

A developer wants to override a button using Visualforce on an object.
What is the requirement?


A.

The controller or extension must have a PageReference method.


B.

The standardController attribute must be set to the object.


C.

The action attribute must be set to a controller method.


D.

The object record must be instantiated in a controller or extension.





B.
  

The standardController attribute must be set to the object.



What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)


A.

Loading files from Documents.


B.

One-time loading for duplicate scripts.


C.

Specifying loading order.


D.

Loading scripts in parallel.


E.

Loading externally hosted scripts.





B.
  

One-time loading for duplicate scripts.



C.
  

Specifying loading order.



D.
  

Loading scripts in parallel.



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 a map of fields.


C.

Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.


D.

Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.





B.
  

Use mySObject.myObject.fields.getMap() to return a map of fields.



C.
  

Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.



Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)


A.

<apex:stylesheet> tag


B.

Inline CSS


C.

<apex:style>tag


D.

<apex:stylesheets>tag


E.

A static resource





A.
  

<apex:stylesheet> tag



B.
  

Inline CSS



E.
  

A static resource



A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.What should the developer do to deploy to production?


A.

Create a test class that provides coverage of the Visualforce page.


B.

Create a test page that provides coverage of the Visualforce page.


C.

Create a test page that provides coverage of the custom controller.
Create a test class that provides coverage of the custom controller.


D.

Create a test class that provides coverage of the custom controller.





D.
  

Create a test class that provides coverage of the custom controller.



A developer needs to create a Visualforce page that displays Case data. The page will be used by both support
reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c
field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a
minimum?


A.

Create one Visualforce Page for use by both profiles.


B.

Use a new Support Manager permission set.


C.

Create a separate Visualforce Page for each profile.


D.

Use a custom controller that has the with sharing keywords.





D.
  

Use a custom controller that has the with sharing keywords.



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);





C.
  

myFooController m = new myFooController();System.assert(m.prop ==null);



Which two number expressions evaluate correctly? (Choose two.)


A.

Double d = 3.14159;


B.

Integer I = 3.14159;


C.

Decimal d = 3.14159;


D.

Long l = 3.14159;





A.
  

Double d = 3.14159;



C.
  

Decimal d = 3.14159;




Page 2 out of 39 Pages
Previous