MCQ's 07
MCQ's 07
Q 04: What is the maximum CPU time allowed for Synchronous Apex?
a) 10,000 milliseconds.
b) 1,000 milliseconds.
c) 15,000 milliseconds.
d) 5,000 milliseconds.
Answer: a) 10,000 milliseconds.
Q 05: How can you prevent hitting governor limits in Synchronous Apex?
a) By using DML operations inside loops.
b) By bulkifying the code to handle multiple records.
c) By executing multiple transactions simultaneously.
d) By ignoring SOQL query limits.
Answer: b) By bulkifying the code to handle multiple records.
Q 08: Which of the following DML operations can be performed in Synchronous Apex?
a) Insert.
b) Update.
c) Delete.
d) All of the above.
Answer: d) All of the above.
Q 11: How can you optimize SOQL queries in Synchronous Apex to avoid limits?
a) Use SELECT * to retrieve all fields.
b) Use specific field names in SELECT statements to retrieve only necessary data.
c) Execute multiple SOQL queries in a loop.
d) Perform SOQL queries after all DML operations.
Answer: b) Use specific field names in SELECT statements to retrieve only necessary
data.
____Thank You____