Salesforce Developer Flashcards

1
Q

What do you lose when choosing a Visualforce Edit page over a Standard Edit page?

A

Ability to change page layout use Page Layout Editor and lose Inline editing capabilities in list views

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

What is the declarative alternative to writing Triggers?

A

Automate Field Updates using Workflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. What is a declarative alternative for calculating field values in a controller extension?
A

a. Formula Fields and Roll-Up Summary Fields

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

What is the only relationship a Roll-Up Summary can exist on?

A

Master-Detail Relationship

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

What Declarative tool can Enforce Business Rules?

A

a. Validation Rules

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

What two declarative tools can be used to define complex custom business logic and business processes?

A

a. Approval Processes and Flows

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

What is state and behavior in reference to objects?

A

a. State is what an object knows while behaviors is what an object can do

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

What specifies the state and behavior of an object?

A

Variables specify the state while Methods specify the Behavior.

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

Define an Interface

A

a class in which none of the methods have been implemented—the method signatures are there, but the body of each method is empty

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

What is the condition to use an interface?

A

a. another class must implement it by providing a body for all of the methods contained in the interface.

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

How many levels of inner classes can exist in Apex?

A

One

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

What is not necessary in the declaration of an inner class?

A

An access modifier

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

What is required to define a class?

A

Access Modifier, Keyword Class

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

What does the Private Access Modifier do?

A

Class is only known locally, only by this section of code

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

What happens if you don’t specify an access modifier for an inner class?

A

It defaults to private

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

What does the global access modifier do?

A

Declares class to be known by all Apex Code everywhere

17
Q

Classes with the Webservice keyword must have what access modifier?

A

Global

18
Q

What is required if an inner class is defined as global?

A

The outer class must also be defined as global

19
Q

What keyword can be used to run a class in the sharing mode that called it?

A

Use the inherited sharing keyword

20
Q

What keyword enforces sharing rules of the current user?

A

The with sharing keyword

21
Q

What does without sharing keyword do?

A

Runs class without the current users sharing rules

22
Q

What does the ‘virtual’ definition modifier do?

A

Declares that the class allows extensions and overrides

23
Q

What is the requirement to use the override keyword?

A

The class must be defined as virtual

24
Q

What does the ‘abstract’ definition modifier do?

A

Declares a class to have abstract methods (methods that only have signatures declared and no body defined)

25
Q

A class can implement_____ ______, but only extend _______ _________ _________.

A

many interfaces, one existing class

26
Q

What are possible modifiers for variables?

A

public, final, and static

27
Q

What is required to declare a variable?

A

Datatype and the Name

28
Q

What are the 8 Primitive Data Types supported by Apex?

A

Integer, Double, Long, Date, Datetime, String, Boolean and ID

29
Q

What is enum?

A

A data type consisting of typed list of values

30
Q

Define the three collection types

A

LIst: ordered collection
Set: unordered list without duplicates
Map: list of Key:Value pairs

31
Q

A Set<ID> is commonly used in?</ID>

A

In a SOQL query as part of the WHERE clause

32
Q
A