Question: 1
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the component, with a variable called 'selection', to show the valid values for Account.Type. The page uses an component to display the list of accounts, where the iteration variable is 'acct'. The developer wants to ensure that when a user selects a type on the component, only accounts with that type are shown on the page. What should the developer do to accomplish this?
Question: 2
Which query should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name 'Universal Containers'?
A IND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id,name), contact(id,name)
B SELECT lead(id, name), account(id, name), contact(id,name) FROM Lead, Account, Contact WHERE Name = 'Universal Containers'
C FIND 'Universal Containers' IN CompanyName Fields RETURNING lead(id,name), account (id,name), contact(id,name)
D SELECT Lead.id, Lead. Name, Account.id, Account.Name, Contact.Id, Contact. Name FROM Lead, Account, Contact WHERE CompanyName = 'Universal Containers'
Answer : A
Show Answer
Hide Answer
Question: 3
A developer creates a custom controller and a custom Visualforce page by using the code block below:
public class MyController {
public String myString {
get {
if (myString == null) { myString = 'a';
}
return myString;
} private set; } public string getMyString (){
return 'getMyString';
} public string getStringMethod () {
if (myString == null) {
myString = 'b';
} return myString;
}
} {!StringMethod}, {!myString}, {!myString}
What can the user expect to see when accessing the custom page?
Question: 4
Which is a valid Apex assignment?
Question: 5
Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers