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.
What is an accurate constructor for a custom controller named "MyController"?
A. public MyController () { account = new Account () ; }
B. public MyController (sObject obj) { account = (Account) obj; }
C. public MyController (List objects) { accounts = (List ) objects; }
D. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }
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.
A developer uses an 'after update' trigger on the Account object to update all the Contacts related to the
Account. The trigger code shown below is randomly failing.
List
for(Contact c : [SELECT Id, Account_Date__c FROM
Contact WHERE AccountId = :a.Id]){ c.Account_Date__c = Date.today(); theContacts.add(c); }
} updates theContacts;
Which line of code is causing the code block to fail?
A. An exception is thrown if theContacts is empty
B. The trigger processes more than 200 records in the for loop.
C. An exception is thrown if Account_Date__c is null.
D. A SOQL query is located inside of the for loop.
Manage package can be created in which type of org?
A. Partial copy sandbox
B. Unlimited edition
C. Developer Edition
D. Developer sandbox
A developer tasked with creating a schema to track Movies, Actors, and contracts. A single movie can have many contracts and a single actor can have many contracts. Each contract is owned and actively managed by a single user. Which schema should be created to enable user to easily manage the contract they own; without requiring access to the movie or the actor records?
A. A master detail relationship to the movie object and a lookup relationship to the actor object
B. A lookup relationship to the movie object and a lookup relationship to the actor object
C. A lookup relationship to the movie object and a master detail relationship to the actor object
D. A master detail relationship to the movie object and a master detail relationship to the actor object
Which two describe Heroku Redis? Choose 2 answers.
A. Is an in-memory key-value data store, run by Heroku.
B. Is a repository for storing large images.
C. Is an option for long-term data storage.
D. Is provisioned and managed as an add-on.
Which process automation should be used to send an outbound message without using Apex code?
A. Workflow Rule
B. Process Builder
C. Approval Process
D. Flow Builder
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.
B. Custom controller
C. RecordSetVar page attribute
D. Controller extension
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?
A. ApexPages.currentPage() .getParameters() .get('url_param')
B. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
C. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
D. String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))