ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 169 - Certified Platform Developer II discussion

Report
Export

Which of the following about Dynamic Apex is incorrect?

A.
You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
Answers
A.
You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
B.
getDescribe() can get you a variety of info on a particular object/field
Answers
B.
getDescribe() can get you a variety of info on a particular object/field
C.
Schema.getGlobalDescribeQ gives you a map of all sObject
Answers
C.
Schema.getGlobalDescribeQ gives you a map of all sObject
D.
In dynamic SOQL, you can use bind variables and bind variable fields
Answers
D.
In dynamic SOQL, you can use bind variables and bind variable fields
Suggested answer: D

Explanation:

While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields (e.g. :myVariable.field1_c) Use escapeSingleQuotes to prevent SOQL injection

asked 23/09/2024
Euwing Mendoza
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first