Which statement results in an Apex compiler error?
A. Map<Id,Leas> lmap = new Map<Id,Lead>([Select ID from Lead Limit 8]);
B. Date d1 = Date.Today(), d2 = Date.ValueOf('2018-01-01');
C. Integer a=5, b=6, c, d = 7;
D. List<string> s = List<string>{'a','b','c'); - ANSWERSD. List<string> s = List<string>{'a','b','c');
What are two benefits of the Lightning Component framework? (Choose two.)
A. It simplifies complexity when building pages, but not applications.
B. It provides an event-driven architecture for better decoupling between components.
C. It promotes faster development using out-of-box components that are suitable for desktop and mobile
devices.
D. It allows faster PDF generation with Lightning components. - ANSWERSB. It provides an event-driven
architecture for better decoupling between components.
C. It promotes faster development using out-of-box components that are suitable for desktop and mobile
devices.
A method is passed a list of generic sObjects as a parameter.
What should the developer do to determine which object type (Account, Lead, or Contact, for example)
to cast each sObject?
A. Use the first three characters of the sObject ID to determine the sObject type.
B. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
C. Use the getSObjectName method on the sObject class to get the sObject name.
D. Use a try-catch construct to cast the sObject into one of the three sObject types. - ANSWERSB. Use the
getSObjectType method on each generic sObject to retrieve the sObject token.
What should a developer use to implement an automatic Approval Process submission for Cases?
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Bensuda. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.