A developer wants to mark each Account in a List
Which Apex technique should the developer use?
Suggested Answer: C
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
26 comments · newest first
GA
Galen
2 days ago
True, but I like the simplicity of A.
LA
Laurel
8 days ago
A works, but C is more efficient for this case.
GA
Galen
13 days ago
I’m leaning towards A. It’s straightforward too.
WA
Walker
18 days ago
Exactly, then check the date with an if statement.
LA
Laurel
23 days ago
Right! We need to iterate through each account.
WA
Walker
28 days ago
I agree, C makes sense. The for loop is essential here.
LA
Laurel
1 month ago
I think option C is the best choice. It allows for clear logic.
ST
Stanton
1 month ago
Definitely C, it allows for clear logic.
RO
Roslyn
1 month ago
A switch statement isn't needed here, so C is right.
HE
Heike
2 months ago
I feel like C is more efficient for this task.
AS
Ashanti
2 months ago
Option A could work too, but C is cleaner.
AL
Alyce
2 months ago
I agree, a for loop with an if statement makes sense.
JO
Joye
2 months ago
I think option C is the best choice.
GA
Gail
2 months ago
Not sure if C is right... what about edge cases?
OR
Oretha
2 months ago
Totally agree with C, it's the most efficient option.
PA
Paris
3 months ago
Wait, a switch statement? That doesn't fit here!
LU
Luis
3 months ago
I think A could work too, but C seems cleaner.
DO
Doretha
3 months ago
C is the way to go! For loop with if makes sense.
BA
Barney
3 months ago
I think option A could work too, but I feel like C is more straightforward for this scenario. I just hope I remember the syntax correctly!
LA
Larue
3 months ago
I’m a bit confused about the switch statement. I don’t recall using it for conditions like date comparisons. Isn’t it more for discrete values?
SC
Scarlet
4 months ago
I remember practicing a similar question where we had to check conditions inside a loop. I feel like option C makes the most sense here.
TI
Timothy
4 months ago
I think we might need to use a for loop to iterate through the List, but I'm not sure if we should use an if statement or a switch statement for checking the date.
JE
Jennie
4 months ago
I agree with Herman, but I’m not entirely sure if option A or C is better. I guess it depends on how we want to structure the logic.
HE
Herman
5 months ago
I’m a bit confused about the switch statement. I don’t think it’s the right choice for this scenario since we’re checking a date condition, right?
GE
Gerald
6 months ago
I remember practicing a similar question where we had to check conditions inside a loop. I feel like option C makes the most sense here.
AY
Ayesha
6 months ago
I think we might need to use a for loop to iterate through the List, but I'm not sure if we should use an if statement or a switch statement for checking the date.