Salesforce Certified Platform Developer I – Apex/ 299 Quizzes & Correct Ans.
1 keer bekeken 0 keer verkocht
Vak
Salesforce Certified Platform Developer I – Apex/
Instelling
Salesforce Certified Platform Developer I – Apex/
Salesforce Certified Platform Developer I – Apex/ 299 Quizzes & Correct Ans.
What is a List? - Answer: A List is an ordered collection of elements of a single data type. Elements added to a List are assigned an implicit index, and therefore, Lists can contain non-unique values (i.e. elements ...
Salesforce Certified Platform Developer I – Apex/
Salesforce Certified Platform Developer I – Apex/
Verkoper
Volgen
docmickey
Ontvangen beoordelingen
Voorbeeld van de inhoud
Salesforce Certified Platform Developer I –
Apex/ 299 Quizzes & Correct Ans.
What is a List? - Answer: A List is an ordered collection of elements of a single
data type. Elements added to a List are assigned an implicit index, and therefore,
Lists can contain non-unique values (i.e. elements can be duplicated within a List).
What is a Set? - Answer: A Set is an unordered collection of unique elements.
There are no indexes assigned to elements in a Set, and therefore, elements in a
Set much be unique.
What is a Map? - Answer: A Map is a collection of key-value pairs. Keys must be
unique, but Values can be repeated. With Maps, we supply the index, unlike Lists,
where the index is automatically applied when an element is added.
Page 1 of 49
,What is a common use case for Lists? - Answer: Lists are commonly used to hold
the results of a SOQL query.
What is a common use case for Sets? - Answer: Sets are commonly used to store
values used to filter data queried by SOQL.
What is a common use case for Maps? - Answer: Maps are commonly used as a
cache of records that can be accessed by key/ID.
Are Apex Arrays the same as Java Arrays? Why or why not? - Answer: While Apex
Array notation seems the same as Java Array notation, they are internally
different. Apex Arrays can be dynamically resized, while Java Arrays cannot be
dynamically resized.
//Array notation
Account[] accounts = new Account[] {acc1,acc2,acc3};
//List notation
List<Account> accounts = new List<Accounts>;
accounts.add(acc1);
accounts.add(acc2);
accounts.add(acc3);
Are Lists also Arrays? - Answer: No. Lists are not Arrays, but they can be
syntactically referenced as Arrays.
Page 2 of 49
,How can you iterate over a Map? - Answer: First retrieve the key set by using the
Map.keySet() method. Then, use a FOR() loop to iterate through the key set to
access and work with each value in the Map.
What do classes consist of? - Answer: Methods and Attributes
Describe differences between Apex and traditional Programming Languages like
Java. - Answer: 1.) Traditional Programming Languages are fully flexible, and allow
you to tell the system to do just about anything. Apex is governed, and can only
do what the system allows.
2.) Apex is case-insensitive
3.) Apex is on-demand, and is compiled and executed in the Cloud (i.e. on the
server)
4.) Apex requires unit testing for deployment into a Production environment
5.) Apex is not a general-purpose Programming Language. It can only be used on
the Force.com platform.
What are the two primary components of Apex code? - Answer: Apex Classes and
Apex Triggers
What is an Apex Class? - Answer: An Apex Class is a template or a blueprint from
which Apex objects are created.
Page 3 of 49
, What is an Apex Trigger? - Answer: A procedure that automatically executes
during a DML operation.
What are the three types of FOR() loops that Apex code supports? - Answer: 1.)
Traditional FOR() loops
2.) List Iteration FOR() loops
3.) SOQL FOR() loops
What are the three types of Collection data types in Apex code? - Answer: 1.) Lists
2.) Maps
3.) Sets
What are Collections used for in Apex code? - Answer: Collections are used to
store groups of elements, such as primitive data types, or sObjects.
Where are the three areas where you can develop Apex code? - Answer: 1.) The
Force.com IDE
2.) The Developer Console
3.) The Setup menu
What conditional statements does Apex support? - Answer: if-else
What conditional statements are not supported by Apex? - Answer: 1.) case
2.) switch
Page 4 of 49
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
√ Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, Bancontact of creditcard voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper docmickey. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €10,07. Je zit daarna nergens aan vast.