Online Training (Apex, Visualforce, Lightning Components) Flashcards
Force.com is multi-tenant. What does this statement mean?
A. Applications share hardware, storage, and other infrastructure.
B. Requires expensive infrastructure but allows resource sharing.
C. Applications can be deployed at multiple locations.
D. Applications from different organizations gets their own technology architecture.
A. Applications share hardware, storage, and other infrastructure.
True/false: All configurations and customization in Force.com are represented as metadata.
True.
Identify the advantages of declarative customization (Select all that apply): A. Enhanced security. B. Ease of upgrades. C. Ease of maintenance. D. Offers the most flexibility.
B. Ease of upgrades.
C. Ease of maintenance.
Match each requirement with the Service Cloud features that provide a solution.
Solution:
A. Apex.
B. Visualforce.
C. Metadata API.
D. Bulk API.
Requirement:
1. Write custom business logic.
2. Move configuration changes between sandbox and production environments.
3. Create pages with custom look and feel.
4. Load large amounts of data into the system.
A. Apex. - 1. Write custom business logic.
B. Visualforce. - 3. Create pages with custom look and feel.
C. Metadata API - 2. Move configuration changes between sandbox and production environments.
D. Bulk API. - 4. Load large amounts of data into the system.
Identify the differences between Apex and the other programming languages? (Select all that apply.)
A. Apex runs in a multi-tenant environment.
B. Apex performs uncontrolled program invocations.
C. Apex is case-insensitive.
D. Apex can be processed on any platform.
A. Apex runs in a multi-tenant environment.
C. Apex is case-insensitive.
True/False: Classes are the blueprint for the creation of a single object.
False.
A developer needs to create a collection of last names in Apex. A sample of the values he needs to include are: “Barry”, “Lu”, “Bansal” and “Barry”. No other data is available for populating this list. Which type of collection should he use?
A. List
B. Map
C. Set
A. List
At the end of the code, what is the price of bananas in newPrices map? LINK TO CODE. A. 20 B. 40 C. 60 D. 80
C. 60
Which syntax should you use to create a new public class name MyNewClass? A. public class MyNewClass { } B. class public MyNewClass { } C. class MyNewClass {} public D. MyNewClass { } public class
A. public class MyNewClass { }
True/False: The method to create an object out of a class definition is called a constructor.
True.
True/False: It is necessary to instantiate an instance of a class to access a static method of the class.
False.
Which statement is true about Apex. A. A class cannot be disabled for profiles. B. An inner class can be nested at multiple levels. C. Static methods can only be declared in a top-level class definition. D. The default access modifier for methods in a class is public.
C. Static methods can only be declared in a top-level class definition.
Which keywords should you specify to define a constant? A. Static and exception B. Static and final C. Static and private D. Exception and final
B. Static and final
Which of the following statements are true about a SOQL SELECT statment? (Select all that apply)
A. It is similar to the SELECT statement in SQL
B. It is used to perform searches across multiple sObjects
C. It helps retrieve records from an object in the Force.com database
D. It returns a list of lists of sObjects
A. It is similar to the SELECT statement in SQL
C. It helps retrieve records from an object in the Force.com database
What are the two ways to insert SOQL into Apex? (Select all that apply) A. Database.search() method B. Square-bracket expressions C. Search() method D. Database.query() method
B. Square-bracket expressions
D. Database.query() method
Match the SQL keywords with the correct description.
Keyword:
A. Group By
B. Like
C. Not
D. Order By
Description:
1. Is used to select records using wildcards.
2. Is used to groups similar data and then provide summary information about the groups.
3. Is used to control the order of the query results.
4. Is used for negative conditions in a SOQL.
A. Group By - 2. Is used to groups similar data and then provide summary information about the groups.
B. Like - 1. Is used to select records using wildcards.
C. Not - 4. Is used for negative conditions in a SOQL.
D. Order By - 3. Is used to control the order of the query results.
Identify the clause that is used in a SOSL statement to limit results to specified object types. A. IN B. RETURNING C. WHERE D. ORDER BY
B. RETURNING
Identify the best solution to accomplish the following; Prevent the saving of duplicate candidate records in the database. The combination of Last Name and Email is enough to ensure that the records are unique.
A. Declarative
B. Programmatic
A. Declarative
- Done by creating a unique text field on the object - updated by a workflow.
Identify the best solution to accomplish the following; Restrict the Position-Salary relationship to one-to-one, so that each Position only has one set of Salary data and vice versa.
A. Declarative
B. Programmatic
A. Declarative
- Done by creating a unique text field on Salary object - updated by a workflow.
Identify the best solution to accomplish the following; Update the Job Application status when creating a job offer (task details).
A. Declarative
B. Programmatic
B. Programmatic
- Done by creating a trigger on Offer, which updates the fields needed on the Job Application.