stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Salesfoce Platform Dev I - Week 2 Flashcards | StudBud
Explore
/
Salesfoce Platform Dev I - Week 2
Salesfoce Platform Dev I - Week 2
20 terms
·
StudBud Administration
·
3 plays
Apex programming concepts
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
Why is it important to handle exceptions?
To cover 75% of the code required by a test
Try catch blocks efficiently deal with the errors thrown
2
What do the methods in the Schema Class return?
They return values within the schema structure
They return an object's location within the metadata
They return information about the metadata
They return info about objects and their fields
3
Which of these is
NOT
a primitive data type
Sets
Maps
Blob
Date
4
When should a system administrator consider using the Salesforce AppExchange?
When looking for pre-built custom applications and tools
To submit ideas for Salesforce application enhancements
When standard Salesforce functionality needs to be extended
To find answers to Salesforce application questions
5
What is the limit on single object DML operations?
There is no limit
200 ops
150 ops
100 ops
6
How can we allow apex to have partial success in DML statements?
Add DML statements to a try catch block & add use "finally"
Use the Database Class [Ex: Database.insert();]
Add DML statements to a loop
7
How are sets different from lists?
Lists are distinguished by their indices
Lists are an ordered collection of elements and sets are not
There is no difference, they are both ordered
Lists have duplicates and sets don't
8
SOSL only allows the following syntax
FIND {Joe Smith} IN Name Fields RETURNING lead
SELECT Id, Name FROM Account WHERE Name = 'Sandy'
9
Is the Schema Namespace the same as the Schema Class and why?
Yes, because they both contain methods to deal w. the Schema
No, because the namespace is just a group of classes
10
SOQL allows the following sintax
FIND {Joe Smith} IN Name Fields RETURNING lead
SELECT Id, Name, BillingCity FROM Account
SELECT Id, Name FROM Account WHERE Name = 'Sandy'
11
What does SOSL stand for?
sObject Search Language
Salesforce Object Search Language
Salesforce Object Query Language
Salesforce Object Selection Language
12
Primitive data types are ...?
The same thing as complex objects
A primitive is an indivisible, immutable object
Lists, sets and maps
13
How does LIKE work in SOQL?
Match only the first characters
Case-sensitive matching
Case-insensitive matching and is only for String fields.
14
Why is the Limits Class important for Apex Developers?
Lets you know the amount of heap size remaining
Limit the amount of DML results returned
Helps limit the amount of method calls
Limit the amount of resources that need to be used
15
What are governor limits?
Limits for the amount of apex classes, objects & components
Limits for the amount of data stored in the database
Limits to avoid the monopolization of shared resources
Limits imposed by SF that maintain the multi-tenant system
16
What is Bulk DML?
Bulk DML works on a collection of objects & counts as one op
Bulk DML ignores the limit for ops in single objects
Operations to records that run asynchronously
Operations to records that run synchronously
17
What does DML stand for?
Data Manipulation Language
Data Movement Language
Data Management Language
18
Suppose a Marketing team needs all Contacts containing "Smith", choose the correct query
FIND "January" IN Contacts RETURNING LastName
SELECT LastName FROM Contacts WHERE LastName="Smith"
FIND {Smith} IN ALL FIELDS RETURNING Contact(LastName)
19
What is Anonymous Execution?
When apex code executes it won't get stored in the metadata
In anonymous blocks the code has access to all obj & fields
Anonymous blocks are there to execute code on the fly
Apex code will ignore user permissions during execution
20
To imitate CRUD operations in Salesforce we use
SQL
SOQL
DML
SOSL