Salesforce Fundamentals Flashcards

1
Q

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

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}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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');
A

B. Account acc = new Account();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a double?

A

64-bit number that includes a decimal point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a decimal?

A

32-bit number that includes a decimal point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a blob?

A

collection of binary data stored as a single object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an Id

A

Any valid 18-character Force.com record identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a do-while loop?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can a developer create an infinite loop with a do-while loop?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why are primitive data types called primitive?

A

Because they can only hold a single value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What three types of collections are there?

A

List
Set
Map

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When does a do-while loop evaluate the exit condition?

A

After the code block at the end. This allows the code to execute at least once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When does a while loop evaluate the exit condition?

A

At the beginning/top of the loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A. Social Accounts, Contacts, and Leads

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What feature adds social network information from Twitter and YouTube to records?

A

Social Accounts, Contacts, and Leads feature

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A. Use Salesforce Quote-to-Cash functionality

C. Look for an AppExchange product that meets the requirements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly