Question 1
Question
Is Apex a Case-insensitive language?
Question 2
Question
Apex requires unit testing for deployment into a Production environment (True or false)
Question 3
Question
The sObject data type is a generic data type that is the parent class for all standard and custom objects in Apex?
Question 4
Question
A global class is only accessible within the org.
Question 5
Question
Are these two forms of DML operations?
1.) Standalone statements (insert myAccount;)
2.) Database methods (Database.insert(myAccount);)
Question 6
Question
When a DML standalone statement is executed against a list of records, if one record encounters an error, what happens?
Question 7
Question
When a DML Database method is executed against a list of records, if one record encounters an error, what happens? Given allOrNone is set to false.
Answer
-
Even if an error is encountered with one record in the list, the operation will continue with the other records in the list
-
Even if one record fails, none of the records will get inserted/deleted/updated.
Question 8
Question
When using a Database method to execute a DML operation, and if allOrNone is set to false, how can you check the results of the operation?
Answer
-
Database insert and update methods return a Save object that can be used to get the results of the operation.
-
Database insert and update methods return a SaveResult object that can be used to get the results of the operation.
Question 9
Question
True or False: You must specify a value for the allOrNone parameter when using a Database method.
Question 10
Question
What is the default value of the allOrNone parameter of a Database method?
Question 11
Question
What is the return type for the Database.insert method?
Answer
-
Database.SaveResult
-
Database.FinalResult
-
Database.StoredResult
Question 12
Question
What is the return type for the Database.update method?
Answer
-
Database.StoredResult
-
Database.SaveResult
-
Database.FinalResult
-
Database.Result
Question 13
Question
What is the return type for the Database.update method when a LIST of records is updated?
Question 14
Question
What is the return type for the Database.delete method?
Answer
-
Database.DeleteResult
-
Database.SaveResult
-
Database.SavedResult
Question 15
Question
What is the return type for the Database.merge method?
Answer
-
Database.SaveResult
-
Database.MergeResult
-
Database.DeleteResult
Question 16
Question
What does SOQL stand for?
Answer
-
Salesforce Object Quest Language
-
Salesforce Object Query Language
-
Salesforce Object Queue Language
Question 17
Question
Where can you NOT execute a SOQL query?
Answer
-
the queryString parameter in the query() call
-
Apex Statements
-
Visualforce controllers and getter methods
-
Schema Explorer in the Force.com IDE
-
Query Editor in the developer console
-
Sobject
Question 18
Question
What are the three main components (or clauses) of a SOQL statement?
Question 19
Question
In the Developer Console, where can you run a SOQL query?
Answer
-
In the Query Editor
-
Under the Setup menu
Question 20
Question
What are some differences between SOSL and SOQL?
1.) SOSL can search multiple objects at once
2.) SOQL is used to perform text searches.
3.) SOQL can search multiple objects at once.
4.) SOSL is used to perform text searches.
Answer
-
1st and 2nd option are correct
-
2nd and 3rd option are correct
-
1st and 4th option are correct
Question 21
Question
What is the return type of a SOSL query?
Question 22
Question
By default, SOSL returns only the [BLANK] of found records.
Answer
-
Name
-
IDs
-
Name and IDs
-
No results
Question 23
Question
True or False: The FIND clause does not support wildcard searches.