Q&A1 Flashcards
Which component can be bound to the custom controller property statusMessage? public boolean statusMessage{get; private set;}
- -apex:outputText value=”{!statusMessage}”/-
- -apex:inputText value=”{!statusMessage}”/-
- -apex:inputCheckbox value=”{!statusMessage}”/-
- Only explicit getter and setter methods can be used for value binding.
- -apex:outputText value=”{!statusMessage}”/-
A developer wants to present a custom message on a VF page, using the standard look and feel. Which component should he use?
- -apex:pageMessage-
- -apex:customMessage-
- -apex:message-
- -apex:message-
- -apex:pageMessage-
Which is not a name of a method available on the standardController class?
- save
- view
- new
- edit
- new
What is the correct markup language for using a custom controller named CustomController in a page displayed under the Account tab?
- -apex:page controller=”CustomController” tab=”Account”/-
- -apex:page controller=”CustomController” tabStyle=”Account”/-
- -apex:page controller=”CustomController” tabStyle=”Account”/-
How can a developer test an email service and the classes it references?
- Create Messaging.IndboundEmail and Messaging.IndboundEventlope objects and pass the to the handleIndboundEmail() method of the Messaging.InboundEmailHandler class.
- Create a Messaging.OutboundEmail object, pass it to Messaging.sendEmail(), and then call the handleInboundEmail() method of the Messaging.InboundEmailHandler class.
- Create Messaging.IndboundEmail and Messaging.IndboundEventlope objects and pass the to the handleIndboundEmail() method of the Messaging.InboundEmailHandler class.
Which triggers are invoked when two contacts are merged?
- no triggers
- only delete and update contact triggers
- only delete and update triggers on the parent account
- delete and update contact triggers and triggers on the parent account
- only delete and update contact triggers
Which standard VF component can be used to add the ability to invoke a controller action method from the onClick event of an component.
- -apex:actionSupport-
- -apex:actionMethod-
- -apex:actionRegion-
- -apex:actionPoller-
- -apex:actionSupport-
A custom component named myComponent (no attributes) was created in an Org.
Which piece of code should be used to incorporate the component into a page in the same Org.
1. -custom:myComponent/-
2. -c:myComponent/-
3. -myComponent/-
4. -apex:myComponent/-
- -c:myComponent/-
Which is the capability of the developer console?
(3 answers)
1. Edit apex classes in production
2. View feedback on usage against governor limits
3. View a stack trace
4. Generate Apex code from WSDL
5. Execute anonymous blocks
- View feedback on usage against governor limits
- View a stack trace
- Execute anonymous blocks
True/False: Code executed in managed packages applies to an organisation’s governor limits?
True.
Which combination of tags is used when working with VF templates?
- Use apex:insert in the Visualforce template; use apex:define in the Visualforce page referring to the template.
- Use apex:define in the Visualforce template; use apex:insert in the Visualforce page referring to the template.
- Use apex:define in the Visualforce template; use apex:insert in the Visualforce page referring to the template.
What is the correct sequence of operations for an initial request to a page?
- Controller constructor, page’s action method invoked, getter methods called.
- Controller constructor, getter methods called, page’s action method invoked.
- Controller constructor, page’s action method invoked, getter methods called.
True/False: A VF email template can be used when sending mass email.
False.
True/False: The following line successfully instantiates a standard controller.
ApexPages.StandardController con =
new ApexPages.StandardController();
False.
Note, Standard Controllers must have a standard object as parameter.
True/False: Custom Components must be wrapped inside tags.
True
What type of map is returned by the Schema getGlobalDescribe method?
- a map of sObject names and sObject and DescribesObjectResults accessible by running user.
- a map of sObject names and sObject tokens within organization.
- a map of sObject names and DescribesObjectResults within organization
- a map of sObject names and sObject tokens accessible by running user.
- a map of sObject names and sObject tokens within organization.
How to create and display an error message on a VF page that has the line -apex:pageMessages/-
- Instantiate and throw a custom exception that extends System.Exception class with error message passed as argument to exception constructor.
- Custom Error message can only be shown by -page:pageMassage- component.
- Instantiate ApexPages.Message object with severity and error message and pass this object as argument to ApexPages.addMessage() method.
- Include error message as value as -apex:addMessage- component nested inside the -apex:messages/- tags.
- Instantiate ApexPages.Message object with severity and error message and pass this object as argument to ApexPages.addMessage() method.
True/False: Real time webservice integration cannot be included directly in an Apex trigger.
True.
What page definition makes a page viable for overriding that standard edit button of a custom object named my_object__c. (choose 2 answers)
- -apex:page standardController=”my_object__c”-
- -apex:page standardController=”my_object__c” recordSetVar=”records”-
- -apex:page controller=”my_object__c”-
- -apex:page standardController=”my_object__c” extensions=”myObjectExtension”-
- -apex:page standardController=”my_object__c”-
4. -apex:page standardController=”my_object__c” extensions=”myObjectExtension”-