Salesforce Fundamentals Flashcards
Which of the following is true regarding list or set iteration for loops?
Choose 3
A. It is not usable for loops that must iterate over multiple collections in parallel
B. It is usable for loops where you need to replace elements in a list or array as you traverse it
C. During execution, the variable is assigned to each element in list_or_set, and runs the code_block for each value
D. The variable may or may not be of the same primitive or sObject type as list_or_set
E. The standard syntax for list or set iteration for loops is: for(Type variable: list_or_set){code_block}
A. It is not usable for loops that must iterate over multiple collections in parallel
C. During execution, the variable is assigned to each element in list_or_set, and runs the code_block for each value
E. The standard syntax for list or set iteration for loops is: for(Type variable: list_or_set){code_block}
An assignment statement is any statement that places a value into a variable. Which one of the following expressions is a valid Apex assignment statement?
Choose 1
A. List conList = new[SELECT Id FROM Contact]; B. Account acc = new Account(); C. Map = [SELECT Id, Name FROM Account]; D. String a = new String('sampleString');
B. Account acc = new Account();
What is a double?
64-bit number that includes a decimal point
What is a decimal?
32-bit number that includes a decimal point
What is a blob?
collection of binary data stored as a single object
What is an Id
Any valid 18-character Force.com record identifier
What is a do-while loop?
The Apex do-while loop repeatedly executes a block of code as long as a particular Boolean condition remains true.
Code executes at least once
Can a developer create an infinite loop with a do-while loop?
Yes
Why are primitive data types called primitive?
Because they can only hold a single value
What three types of collections are there?
List
Set
Map
When does a do-while loop evaluate the exit condition?
After the code block at the end. This allows the code to execute at least once
When does a while loop evaluate the exit condition?
At the beginning/top of the loop
What feature can be used to find the latest news and information about the account and contacts you are interested in?
A. Social Accounts, Contacts, and Leads
B. Global Search
C. Twitter Search
D. News Search
A. Social Accounts, Contacts, and Leads
What feature adds social network information from Twitter and YouTube to records?
Social Accounts, Contacts, and Leads feature
New Horizon Satellites uses Salesforce for opportunity management for its data service products. There are many variables and complex combinations that can be configured when offering a data service. The company currently uses Excel to produce quotes but would like to use Salesforce instead.
What would be the recommended solution?
Choose 2
A. Use Salesforce Quote-to-Cash functionality
B. Create a custom button that allows exporting the opportunity details to Excel
C. Look for an AppExchange product that meets the requirements
D. Use the standard Quote template functionality
E. Create a Visualforce page that displays the quote and allows saving it as a PDF
A. Use Salesforce Quote-to-Cash functionality
C. Look for an AppExchange product that meets the requirements