![見出し画像](https://assets.st-note.com/production/uploads/images/126809076/rectangle_large_type_2_a5ce9ff7c4a22f1f602613fee53d6c46.png?width=800)
第142問:Salesforce認定Platformデベロッパー
本講座はSalesforce認定Platformデベロッパー試験の過去問、模擬問題の解説を行っております。
1問目からチャレンジされたい方は下記をご覧ください。
問題
下記コードの使用を考慮した際、コントローラー変数を作成するために使用できる宣言はどれですか?答えを3つ選択してください
public class accountlistcontroller {
public list<account> getaccounts() { return controller.getrecords(); }
}
□ Apexpages.standardcontroller controller = new apexpages.standardcontroller([selece Id from Accout]);
□ Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller(database.query( 'select Id from Account'));
□ Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller(database.getquerylocator( 'select Id from Account'));
□ Apexpages.standardcontroller controller = new apexpages.standardcontroller(database.getquerylocator( 'select id from account'));
正解
ここから先は
![](https://assets.st-note.com/production/uploads/images/64489617/profile_d43ebf9cb882c42c754707b2947cb99c.png?fit=bounds&format=jpeg&quality=85&width=330)
Salesforce認定PLATFORMデベロッパー試験の資格取得を目指す方向けの講座です。 過去問、サンプル問題に対する解答+解説をしま…
![](https://assets.st-note.com/production/uploads/images/64489617/profile_d43ebf9cb882c42c754707b2947cb99c.png?fit=bounds&format=jpeg&quality=85&width=330)
解説:認定Platformデベロッパー PACK
Salesforce認定Platformデベロッパー試験の資格取得を目指す方向けの講座です。 過去問、サンプル問題に対する解答+解説をしま…
いつもサポートいただきありがとうございます! クリエイター活動の励みになります!