Friday, January 06, 2017

Salesforce Developer Platform 1 Exam Question

Some of questions that may help you to study.It may not exactly same,but at least it gives an idea how the question look like.

Question 1: Which two valid ways of loading external java script ?
A- <apex:includescript>
B-<apex:define>
C-<script>
D-<link>

Question 2: A developer with 100 accounts execute following code in developer console.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Account myAccount1 = new Account(Name='My Account 1');
insert myAccount1;

for(Integer i=0;i<150;i++){
  Account newAccount=Account(Name='newAccount'+x);
try{
insert newAccount;
}
Catch(Exception e){
 System.debug('Exception happened');
}
}
Insert new Account(Name='My Last Account');

How many account in the organization after the code run?
A- 100
B-101
C-102
D-252

Question 3:A developer using Helper class to generate Account list as below.

1
List<Account> listAccount = Helper.generateAccount();
What code that developer should run in order to make some of the data are inserted although some data maynot be successfully inserted. 
A-insert listAccount
B-Database.insert(listAccount,false)
C-Database.insert(listAccount,System.ALLOW_PARTIAL)
D-Database.updateImmediate(listAccount)

Question 4:Which locations can custom Rollup Summary field can be created using standard object relationship.Choose 3.
A-Campain using Campain Member
B-Account using Opportunities
C-Opportunity using Opportunity Products
D-Account using Case
E-Quote using Order

Question 5:Good practices writing trigger
A- Use Map to hold query result
B-use Set to hold unique data
C-use @future for DML
D-use synchronize call out

Question 6: Given the code below .

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
public class myController {
public String myString;

public getMyString(){
   return getMyString;

}

public String getStringMethod1(){
   return myString;

}

public String getStringMethod2(){
if(myString==null)
   myString=Method2;
return myString;
}
What is the output in Visualforce below?
1
{!myString},{!StringMethod1},{!StringMethod2},{!myString}

Question 7:When the value of a field in account record is updated,which two(2) methods will update the value of custom field in all related Opportunities?
A- Cross field formula on Account
B- Workflow Rule on Account
C-Process Builder on Account
D-Apex Trigger on Account

Let me know the answer in comment below.Thanks and have a nice day.

1 comment:

  1. Nowadays, most of the businesses rely on cloud based CRM tool to power their business process. They want to access the business from anywhere and anytime. In such scenarios, salesforce CRM will ensure massive advantage to the business owners. Salesforce Training | Salesforce Training in Chennai

    ReplyDelete