Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Salesforce Certified Platform Developer II ( Plat-Dev-301 ) PDII Question # 7 Topic 1 Discussion

Salesforce Certified Platform Developer II ( Plat-Dev-301 ) PDII Question # 7 Topic 1 Discussion

PDII Exam Topic 1 Question 7 Discussion:
Question #: 7
Topic #: 1

A developer created the following test method:

Java

@isTest(SeeAllData= true)

public static void testDeleteTrigger(){

Account testAccount = new Account(name = 'Test1');

insert testAccount;

List testAccounts = [SELECT Id, Name from Account WHERE Name like 'Test%'];

System.assert(testAccounts.size() > 0);

delete testAccounts;

testAccounts = [SELECT Id, Name from Account WHERE Name like 'Test%'];

System.assert(testAccounts.size() == 0);

}

The developer org has five accounts where the name starts with "Test". The developer executes this test in the Developer Console.

After the test code runs, which statement is true?


A.

There will be five accounts where the name starts with "Test".


B.

There will be no accounts where the name starts with "Test".


C.

There will be six accounts where the name starts with "Test".


D.

The test will fail.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.