CRT-450 MCQs
CRT-450 TestPrep CRT-450 Study Guide CRT-450 Practice Test
CRT-450 Exam Questions
killexams.com Salesforce CRT-450
Salesforce Certified Platform Developer I
https://killexams.com/pass4sure/exam-detail/CRT-450
Question: 375
Which approach should be used to provide test data for a test class?
Query for existing records in the database.
Execute anonymous code blocks that create data.
Use a test data factory class to create test data.
Access data in @TestVisible class variables.
Question: 376
Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)
Number maps to Decimal.
Number maps to Integer.
TextArea maps to List of type String.
Date/Time maps to Dateline.
Checkbox maps to Boolean.
Question: 377
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?
As a String with each value separated by a comma
As a Set with each value as an element in the set
As a String with each value separated by a semicolon
As a List with each value as an element in the list Previous
Question: 378
Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)
Namespace
Time
Exception
Debug Statement
Question: 379
Which resource can be included in a Lightning Component bundle? Choose 2 answers
Apex class
Adobe Flash
JavaScript
Documentation
Question: 380
For which three items can a trace flag be configured? (Choose three.)
Apex Trigger
Apex Class
Process Builder
User
Visualforce
Question: 381
A lead object has a custom field Prior_Email c.
The following trigger is intended to copy the current Email into the Prior_Email c field any time the Email field is changed:
Which type of exception will this trigger cause?
A null reference exception
A compile time exception
A DML exception
A limit exception when doing a bulk update
Question: 382
A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing.
Which two environments meet the requirements for testing? (Choose two.)
Developer Sandbox
Full Sandbox
Developer Edition
Partial Sandbox
Developer Pro Sandbox
Question: 383
A developer encounters APEX heap limit errors in a trigger.
Which two methods should the developer use to avoid this error? (Choose two.)
Use the transient keyword when declaring variables.
Query and store fields from the related object in a collection when updating related objects.
Remove or set collections to null after use.
Use SOQL for loops instead of assigning large queries results to a single collection and looping through the collection.
Question: 384
Which set of roll-up types are available when creating a roll-up summary field?
COUNT, SUM, MIN, MAX
AVERAGE, SUM, MIN, MAX
SUM, MIN, MAX
AVRAGE, COUNT, SUM, MIN, MAX
Question: 385
A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown.
Which step should the developer take to resolve the issue and properly test the exception?
Use try/catch within the unit test to catch the exception.
Use the finally bloc within the unit test to populate the exception.
Use the database methods with all or none set to FALS
E. Use Test.isRunningTest() within the custom controller.
Question: 386
A developer executes the following query in Apex to retrieve a list of contacts for each account: List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ; Which two exceptions may occur when it executes? (Choose two.)
CPU limit exception due to the complexity of the query.
SOQL query row limit exception due to the number of contacts.
SOQL query limit exception due to the number of contacts.
SOQL query row limit exception due to the number of accounts.
Question: 387
How should a developer prevent a recursive trigger?
Use a ???one trigger per object??? pattern.
Use a static Boolean variable.
Use a trigger handler.
Use a private Boolean variable.
Question: 388
What is an accurate statement about variable scope? (Choose 3)
Parallel blocks can use the same variable name.
A variable can be defined at any point in a block.
Sub-blocks cannot reuse a parent block???s variable name.
Sub-blocks can reuse a parent block???s variable name if it???s value is null.
A static variable can restrict the scope to the current block of its value is null.
Question: 389
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?
As a List<String> with each value as an element in the list
As a String with each value separated by a comma
As a String with each value separated by a semicolon
As a Set<String> with each value as an element in the set
Question: 390
A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
A. Make an outbound web services call to the SOAP AP
Hardcode the ID as a constant in an Apex class.
Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
Execute a SOQL query on the RecordType object.
Question: 391
Which two platform features align to the Controller portion of MVC architecture? (Choose two.)
Process Builder actions
Workflow rules
Standard objects
Date fields
KILLEXAMS.COM
Killexams.com is a leading online platform specializing in high-quality certification exam preparation. Offering a robust suite of tools, including MCQs, practice tests, and advanced test engines, Killexams.com empowers candidates to excel in their certification exams. Discover the key features that make Killexams.com the go-to choice for exam success.
Killexams.com provides exam questions that are experienced in test centers. These questions are updated regularly to ensure they are up-to-date and relevant to the latest exam syllabus. By studying these questions, candidates can familiarize themselves with the content and format of the real exam.
Killexams.com offers exam MCQs in PDF format. These questions contain a comprehensive
collection of questions and answers that cover the exam topics. By using these MCQs, candidate can enhance their knowledge and improve their chances of success in the certification exam.
Killexams.com provides practice test through their desktop test engine and online test engine. These practice tests simulate the real exam environment and help candidates assess their readiness for the actual exam. The practice test cover a wide range of questions and enable candidates to identify their strengths and weaknesses.
Killexams.com offers a success guarantee with the exam MCQs. Killexams claim that by using this materials, candidates will pass their exams on the first attempt or they will get refund for the purchase price. This guarantee provides assurance and confidence to individuals preparing for certification exam.
Killexams.com regularly updates its question bank of MCQs to ensure that they are current and reflect the latest changes in the exam syllabus. This helps candidates stay up-to-date with the exam content and increases their chances of success.