CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 98: Certified Platform Developer II

The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3. What is the outcome after executing the following code snippet in the org?List contactsToBeInserted=new List (); Contact contactInstance= new Contact(LastName='Smith',Department='Tech', Zone_c='IAD'); contactsToBeInsert…

Nội dung câu hỏi

The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3. What is the outcome after executing the following code snippet in the org?List contactsToBeInserted=new List (); Contact contactInstance= new Contact(LastName='Smith',Department='Tech', Zone_c='IAD'); contactsToBeInserted.add(contactInstance); contactInstance= new Contact(LastName='Sm1th', Department='Tech', Zone_c='PITT'); contactsToBeInserted.add(contactInstance); Database.insert(contactsToBeInserted,true);

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Both inserts succeed and the contact record that has the Zone value of 'PI'I'I' is set to NULL
  2. B. A partial insert succeeds and the contact record that has the Zone value 'IAD' is inserted
  3. C. Both inserts succeed and the contact record that has the Zone value of 'PITT' is truncated
  4. D. An unhandled DML exception is thrown and no contact records are inserted — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề