Apex/VF Functions Flashcards

1
Q

Describe apex:pageMessage

A

This component should be used for presenting custom messages in the page using the Salesforce pattern for errors, warnings and other types of messages for a given severity.

Used without rendering it will always display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe apex:pageMessages

A

This component displays all messages that were generated for all components on the current page, presented using the Salesforce styling.

It is only displayed when errors/validation messages were generated when saving

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe apex:inputField

A

HTML input element that corresponds to a field on an object. It respects the attributes of the associated field, including whether it is unique, required etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which apex annotation enables client-and-server-side access to an Apex controller method?

A

@AuraEnabled

Providing this annotation makes your methods available to your Lightning components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which apex annotation is used to identify methods, classes, exceptions, enums, interfaces, or variables that can no longer be referenced in subsequent releases of the managed package in which they reside

A

@deprecated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which apex annotation is used to identify methods that are executed asynchronously

A

@future

When you specify future, the method executes
when Salesforce has available resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which apex annotation is used to define classes and methods that only contain code used for testing your application.

A

@isTest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which apex annotation is used to allow you to perform unrestricted queries against the Force.com database (available for Web services and the Scedulable Interface)

A

@ReadOnly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which apex annotation provides support for Apex methods used in Visualforce to be called via JavaScript?

A

@RemoteAction

This process is often referred to as JavaScript remoting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which apex annotation is used for creating common test records that are available for all test methods
in the class

A

@testSetup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
Which apex annotation is used to access private or protected members of another class outside the test
class
A

@TestVisible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which Visualforce tag do you use to include your own style sheet or styles on a VF page?

A

apex:stylesheet

<apex:stylesheet></apex:stylesheet>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly