Topic 2 : Exam Pool B
A developer creates a custom controller and custom Visualforce page by using the following code block:public class myController {public String myString;public String getMyString() {return 'getmyString';}public String getStringMethod1() {return myString;}public String getStringMethod2() {if (myString == null)myString =
'Method2';return myString;}}{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString}What does the
user see when accessing the custom page?
A.
GetMyString , , Method2 , getMystring
B.
, , Method2 , getMyString
C.
, , Method2,
D.
GetMyString , , ,
GetMyString , , Method2 , getMystring
Why would a developer use Test. startTest( ) and Test.stopTest( )?
A.
To avoid Apex code coverage requirements for the code between these lines
B.
To start and stop anonymous block execution when executing anonymous Apex code
C.
To indicate test code so that it does not Impact Apex line count governor limits.
D.
To create an additional set of governor limits during the execution of a single test class.
To create an additional set of governor limits during the execution of a single test class.
In which order does SalesForce execute events upon saving a record?
A.
Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
B.
Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit
C.
Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit
D.
Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit
Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers:
A.
More frequent refreshes.
B.
Only Includes necessary metadata.
C.
Use of change sets.
D.
Limited to 5 GB of data.
More frequent refreshes.
Limited to 5 GB of data.
What is the result of the following code block ?
Integer x = 1;Integer Y = 0;While(x < 10){Y++;}
A.
An error occurs
B.
Y = 9
C.
Y = 10
D.
X = 0
An error occurs
Page 16 out of 78 Pages |
Previous |