Q&A2 Flashcards

1
Q

True/False: In Apex all classes are final by default.

A

True.

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

True/False: Apex classes are public by default.

A

False.

Default is Private

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

True/False: Apex static variables are.

  1. Isolated to the transaction
  2. Go out of scope at the end of the transaction.
A
  1. True.

2. True

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

What is the total number of soql queries issued?

  1. 50
  2. 100
  3. 200
  4. 300
A
  1. 100
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True/False: In soql Like ‘Can%’ will select all that start with Can.

A

True

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

How many records does bulkified triggers operate on per iteration?

  1. 50
  2. 100
  3. 150
  4. 200
A
  1. 200
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True/False: you can use the AddError method to prevent a DML operation in a trigger.

A

True.

Is useful for validating data in Trigger.nee prior to save.

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

True/False: System.runAs() enables you to write unit tests that change user contexts.

A

True.

Note changes the default system.context to user.context

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

True/False: soql queries executed against custom settings does not count against your governor limits.

A

False.

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

A developer wants to create a more powerful sharing rule/assignment rule, which of the following options should he choose?

  1. Trigger
  2. Custom controller
A
  1. Trigger
How well did you know this?
1
Not at all
2
3
4
5
Perfectly