CRT-450 Exam Questions

Total 387 Questions

Last Updated Exam : 22-Oct-2024

Topic 2 : Exam Pool B

Which type of code represents the view in the MVC architecture on the Force.com platform?


A.

An apex method in an extension that returns a list of cases


B.

An apex method that executes SOQL to retrieve a list of cases


C.

A visualforce page that dysplays information about case records by iterating over a list of cases


D.

Validation rules fValidation rules for a page layout that includes a related list of casesor a page layout that includes a related list of cases


E.

Validation rules for a page layout that includes a related list of cases





C.
  

A visualforce page that dysplays information about case records by iterating over a list of cases



In the code below, what type does Boolean inherit from?
Boolean b= true;


A.

Enum


B.

Object


C.

String


D.

Class





B.
  

Object



To which data type in Apex a currency field automatically assigned?


A.

Integer


B.

Decimal


C.

Double


D.

Currency





B.
  

Decimal



How can a developer use a Set<Id> to limit the number of records returned by a SOQL query?


A.

Reference the Set in the LIMIT clause of the query


B.

Pass the query results as an argument in a reference to the Set.containsAll() method.


C.

Pass the Set as an argument in a reference to the Database.query() method


D.

Reference the Set in the WHERE clause of the query





D.
  

Reference the Set in the WHERE clause of the query



How many level of child records can be returned in a single SOQL query from one parent object


A.

1


B.

3


C.

5


D.

7





A.
  

1



A developer wants to handle the click event for a lightning:button componentthe onclick attribute for the
component references a javascript function in which resource in the component bundle?


A.

Helper.js


B.

Handler.js


C.

Renderer.js


D.

Controller.js





D.
  

Controller.js



In which two trigger types can a developer modify the new sObject records that are obtained by the
trigger.new context? Choose 2 answers


A.

After insert


B.

After update


C.

Before update


D.

Before insert





C.
  

Before update



D.
  

Before insert



An Apex transaction inserts 100 Account records and 2,000 Contact records before encountering a DML
exception when attempting to insert 500 Opportunity records. The Account records are inserted by calling the
database.insert() method with the allOrNone argument set to false. The Contact and Opportunity records are
inserted using the standalone insert statement. How many total records will be committed to the database in
this transaction?


A.

100


B.

2000


C.

2100


D.

0





A.
  

100



Which two sosl searches will return records matching search criteria contained in any of the searchable text
fields on an object? choose 2 answers


A.

[find 'acme*' in any fields returning account,opportunity]


B.

[find 'acme*'returning account,opportunity]


C.

[find 'acme*'in all fields returning account,opportunity]


D.

[find 'acme*' in text fields returning account,opportunity]





C.
  

[find 'acme*'in all fields returning account,opportunity]



A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's
age based on birth date. What should the negative tests include?


A.

Assert that future dates are rejected by the method.


B.

Assert that past dates are accepted by the method.


C.

Assert that a null value is accepted by the method


D.

Throwing a custom exception in the unit test.





A.
  

Assert that future dates are rejected by the method.




Page 22 out of 39 Pages
Previous