Q&A2 Flashcards
True/False: In Apex all classes are final by default.
True.
True/False: Apex classes are public by default.
False.
Default is Private
True/False: Apex static variables are.
- Isolated to the transaction
- Go out of scope at the end of the transaction.
- True.
2. True
What is the total number of soql queries issued?
- 50
- 100
- 200
- 300
- 100
True/False: In soql Like ‘Can%’ will select all that start with Can.
True
How many records does bulkified triggers operate on per iteration?
- 50
- 100
- 150
- 200
- 200
True/False: you can use the AddError method to prevent a DML operation in a trigger.
True.
Is useful for validating data in Trigger.nee prior to save.
True/False: System.runAs() enables you to write unit tests that change user contexts.
True.
Note changes the default system.context to user.context
True/False: soql queries executed against custom settings does not count against your governor limits.
False.
A developer wants to create a more powerful sharing rule/assignment rule, which of the following options should he choose?
- Trigger
- Custom controller
- Trigger