2022年更新のCRT-450問題集合格保証付きで合格できます!
CRT-450試験問題集を試そう!ベストCRT-450試験問題トレーニングを提供しています
質問 72
What is the result of the following code block ?
Integer x = 1;Integer Y = 0;While(x < 10){Y++;}
- A. An error occurs
- B. X = 0
- C. Y = 10
- D. Y = 9
正解: A
質問 73
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 2 answers
- A. Execute a SOQL query on the recordtype object
- B. Make an outbound web services call to the SOAP API
- C. Hardcore the ID as a constant in an apex class
- D. Use the getrecordtypeinfosbydevelopername() method in the describesobjectresult class
正解: A,D
質問 74
A developer has the controller class below.
Which code block will run successfully in an execute anonymous window?
myFooController m = new myFooController();
- A. System.assert(m.prop ==0);
myFooController m = new myFooController(); - B. System.assert(m.prop ==1);
- C. System.assert(m.prop ==null);
myFooController m = new myFooController(); - D. System.assert(m.prop !=null);
myFooController m = new myFooController();
正解: C
解説:
Explanation
質問 75
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URLWhich statement is unnecessary inside the unit test for the custom controller?
- A. Test.setCurrentPage(pageRef),
- B. ApexPages.currentPage().getParameters().put('input', 'TestValue')
- C. Public ExtendedController (ApexPages.StandardController cntrl) { }
- D. String nextPage = controller.save().getUrl();
正解: C,D
質問 76
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. NullPointer Exception
- B. No message is logged
- C. List Exception
- D. Generic Exception
正解: A
質問 77
How are debug levels adjusted In the Developer Console?
- A. Under the Debug menu > Change Log Levels..., click Add/Change in the DebugLevel Action column
- B. Under the Logs tab, click Change in the DebugLevels panel
- C. Under the Settings menu > Trace Settings..., click Change DebugLevel
- D. Under the Edit menu, dick Change DebugLevels
正解: A
質問 78
Which two platform features align to the Controller portion of MVC architecture? (Choose two.)
- A. Workflow rules
- B. Process Builder actions
- C. Standard objects
- D. Date fields
正解: A,B
質問 79
Which message is logged by the code below?
- A. No message is logged.
- B. NullPointer Exception
- C. List Exception
- D. Generic Exception
正解: B
質問 80
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId :
opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?
- A. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
- B. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
- C. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.
- D. Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.
正解: C
質問 81
What is the data type returned by the following SOSL search? {FIND 'Acme*' in name fields returning account,opportunity};
- A. Map<sObject,sObject>
- B. List<List<Account>,List<Opportunity>
- C. List<List<sObject>>
- D. Map<Id,sObject>
正解: C
質問 82
Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers
- A. Send an outbound message without Apex code.
- B. Create activities at multiple intervals.
- C. Submit a contract for approval.
- D. Copy an account address to its contacts.
正解: A,D
質問 83
A change set deployment from a sandbox to production fails due to a failure in a managed package unit test.
The developer spoke with the managed package owner and they determined it is a false positive and can be ignored.
What should the developer do to successfully deploy?
- A. Edit the managed package's unit test.
- B. Select "Run local tests" to run all tests in the org that are not in the managed package.
- C. Select "Run local tests" to run only the tests that are in the change set.
- D. Select "Fast Deploy" to run only the tests that are in the change set.
正解: B
質問 84
A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?
- A. Data Import Wizard can not import all 500 records.
- B. Data Loader runs from the developer's browser.
- C. Data Import Wizard does not support Opportunities.
- D. Data Loader automatically relates Opportunities to Accounts.
正解: C
質問 85
Given the following block code: try{ List <Accounts> retrievedRecords = [SELECT Id FROM Account WHERE Website = null]; }catch(Exception e){ //manage exception logic } What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?
- A. Check the state of the retrievedRecords variable and access the first element of the list if the variable is empty.
- B. Replace the retrievedRecords variable declaration from a List of Account to a single Account.
- C. Check the state of the retrieveRecords variable and throw a custom exception if the variable is empty.
- D. Check the state of the retrievedRecords variable and use System.assert(false) if the variable is empty
正解: D
質問 86
When creating unit tests in Apex, which statement is accurate?Choose 2
- A. Increased test coverage requires large test classes with many lines of code in one method.
- B. System Assert statements that do not Increase code coverage contribute important feedback in unit tests
- C. Triggers do not require any unit tests in order to deploy them from sandbox to production.
- D. Unit tests with multiple methods result in all methods failing every time one method fails.
正解: A,B
質問 87
A 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. 0
- B. 1
- C. 2
- D. 3
正解: A
質問 88
What is the maximum number of SOQL queries used by the following code?
- A. 0
- B. 1
- C. 2
- D. 3
正解: B
質問 89
What will be the output in the debug log in the event of a QueryExceptionduring a call to the aQuery method in the following example?
- A. Querying Accounts. Query Exception. Done.
- B. Querying Accounts. Custom Exception.
- C. Querying Accounts. Custom Exception. Done.
- D. Querying Accounts. Query Exception.
正解: C
質問 90
The sales team at Universal Containers would like to see a visual indicator appear on both Account and Opportunity page layouts to alert salespeople when an Account is late making payments or has entered the collections process. What can a developer implement to achieve this requirement without having to write custom code?
- A. Workflow Rule
- B. Formula Field
- C. Roll-up Summary Field
- D. Quick Action
正解: B
質問 91
What is the debug output of the following Apex code?
Decimal theValue;
System.debug (theValue);
- A. 0
- B. 0.0
- C. Undefined
- D. null
正解: D
質問 92
Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records. which Visualforce feature supports this requirement?
- A. RecordSetVar page attribute
- B. Custom controller
- C. Controller extension
- D. <apex:listButton> tag
正解: A
質問 93
......
Salesforce CRT-450 認定試験の出題範囲:
トピック | 出題範囲 |
---|---|
トピック 1 |
|
トピック 2 |
|
トピック 3 |
|
トピック 4 |
|
トピック 5 |
|
トピック 6 |
|
最新100%合格率保証付きの素晴らしいCRT-450試験問題PDF:https://www.goshiken.com/Salesforce/CRT-450-mondaishu.html
実践サンプルと問題集指導には2022年最新のCRT-450有効なテスト問題集:https://drive.google.com/open?id=165FxtWHLCSCvMsWql0rbLuSPSwsUPpG6