InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is “master-detail Relationship”? |
|
Answer» Master-Detail relationship is the Parent-child relationship. In which Master represents Parent and detail represents Child. If Parent is deleted then Child also GETS deleted. Roll-up summary fields can only be created on Master records which will calculate the SUM, AVG, MIN of the Child records.
Master-Detail relationship is the Parent-child relationship. In which Master represents Parent and detail represents Child. If Parent is deleted then Child also gets deleted. Roll-up summary fields can only be created on Master records which will calculate the SUM, AVG, MIN of the Child records. |
|
| 2. |
How Can I Create Many – To – Many Relationships? |
|
Answer» LOOKUP and Master-detail relationships are ONE too many relationships. We can create many – to – Many relationships by using a junction OBJECT. Junction object is a CUSTOM object with two master-detail relationships. Lookup and Master-detail relationships are one too many relationships. We can create many – to – Many relationships by using a junction object. Junction object is a custom object with two master-detail relationships. |
|
| 3. |
Can We Create Master-detail Relationship In This Case? |
Answer»
|
|
| 4. |
What Is Tab In Salesforce? |
|
Answer» Tab is a user interface component to user creates to display CUSTOM object data. There are three type of TABS: Tab is a user interface component to user creates to display custom object data. There are three type of tabs: |
|
| 5. |
What Is The Difference Between Action Support And Action Function? |
|
Answer» Action function: Invoke the controller method from JAVA script using AJAX and we can USE action function from different places on visual force page. Action support: Invoke the controller method using AJAX when even occurs on page like onMouseOver, onClick, ect… and we can use action support for particular SINGLE apex COMPONENT. Action function: Invoke the controller method from java script using AJAX and we can use action function from different places on visual force page. Action support: Invoke the controller method using AJAX when even occurs on page like onMouseOver, onClick, ect… and we can use action support for particular single apex component. |
|
| 6. |
How Many Ways We Can Call The Apex Class? |
| Answer» | |
| 7. |
Explain The Uses Of “transfer Record” In Profile? |
|
Answer» If USER have only Read ACCESS on PARTICULAR record but he wants to change the owner name of that record, then in profile level TRANSFER Record enables he can ABLE to change the owner. If user have only Read access on particular record but he wants to change the owner name of that record, then in profile level Transfer Record enables he can able to change the owner. |
|
| 8. |
Is The Check Box Performs Like Controlling Field? |
|
Answer» Yes possible. Controlling field should be CHECK box or pick LIST. Yes possible. Controlling field should be Check box or pick list. |
|
| 9. |
What Are Record Types? |
|
Answer» RECORD Types are RESTRICT the PICK list VALUES and assign to the different page layouts for different Record Types. Record Types are restrict the pick list values and assign to the different page layouts for different Record Types. |
|
| 10. |
What Are Report Types? |
|
Answer» There are 4 TYPES of REPORTS in Salesforce:
There are 4 types of reports in Salesforce: |
|
| 11. |
How Many Relationships Included In Sfdc & What Are They? |
|
Answer» We are having TWO TYPES of RELATIONSHIPS, they are:
We are having two types of relationships, they are: |
|
| 12. |
What Is The Object In Salesforce.com? |
Answer»
|
|
| 13. |
What Is App In Salesforce? |
Answer»
|
|
| 14. |
Can Call Apex Class Method On The Fly (dynamically)? |
|
Answer» While you can instantiate a class based on its name using the Type SYSTEM class, you can’t dynamically locate a method and EXECUTE it. The best that you can do is to dynamically CREATE an instance of a class that IMPLEMENTS an interface and EXECUTES one of the methods on the interface. While you can instantiate a class based on its name using the Type system class, you can’t dynamically locate a method and execute it. The best that you can do is to dynamically create an instance of a class that implements an interface and executes one of the methods on the interface. |
|
| 15. |
Why Use Batch Apex? |
|
Answer» A Batch class allows you to define a single job that can be broken up into manageable chunks that will be processed separately. One example is if you need to make a field update to every Account in your organization. If you have 10,001 Account records in your org, this is impossible without some way of breaking it up. So in the start() method, you define the query you’re going to use in this batch context: ‘select Id from Account’. Then the execute() method runs, but only receives a relatively SHORT list of records (default 200). Within the execute(), everything runs in its own transactional context, which means almost all of the governor limits only apply to that block. Thus each time execute() is run, you are allowed 150 QUERIES and 50,000 DML rows and so on. When that execute() is COMPLETE, a new one is instantiated with the next group of 200 Accounts, with a brand new set of governor limits. Finally the finish() method wraps up any loose ends as necessary, like sending a status email. So your batch that runs against 10,000 Accounts will actually be run in 50 separate execute() transactions, each of which only has to deal with 200 Accounts. Governor limits still apply, but only to each transaction, along with a separate set of limits for the batch as a whole. Disadvantages of batch processing:
A Batch class allows you to define a single job that can be broken up into manageable chunks that will be processed separately. One example is if you need to make a field update to every Account in your organization. If you have 10,001 Account records in your org, this is impossible without some way of breaking it up. So in the start() method, you define the query you’re going to use in this batch context: ‘select Id from Account’. Then the execute() method runs, but only receives a relatively short list of records (default 200). Within the execute(), everything runs in its own transactional context, which means almost all of the governor limits only apply to that block. Thus each time execute() is run, you are allowed 150 queries and 50,000 DML rows and so on. When that execute() is complete, a new one is instantiated with the next group of 200 Accounts, with a brand new set of governor limits. Finally the finish() method wraps up any loose ends as necessary, like sending a status email. So your batch that runs against 10,000 Accounts will actually be run in 50 separate execute() transactions, each of which only has to deal with 200 Accounts. Governor limits still apply, but only to each transaction, along with a separate set of limits for the batch as a whole. Disadvantages of batch processing: |
|
| 16. |
Is There A Way To Setup Continuous Integration For Apex Tests? |
|
Answer» There are a couple of decent Dreamforce presentations here: Team Development: Possible, Probable, and Painless and Continuous Integration in the Cloud. We ran into some issues with this in practice and there was no way to get TRUE automation (i.e., set it and forget it). We were also set it up with Selenium. Here were the issues that I remember:
There are a couple of decent Dreamforce presentations here: Team Development: Possible, Probable, and Painless and Continuous Integration in the Cloud. We ran into some issues with this in practice and there was no way to get true automation (i.e., set it and forget it). We were also set it up with Selenium. Here were the issues that I remember: |
|
| 17. |
Is There A Defector 3rd Party Utilities Library For Apex Such As Apache Commons Is For Java? |
|
Answer» Apex-lang is about as close to a Java-style library as you can get. Contains several string, database, and collection utilities that mimmick Java functionality. Be aware though, some stuff including Comparing and Sorting collections is out of date with the ADVENT of the Comparable interface in Apex.In addition to apex-lang, and like you suggest, I typically create or reuse static helper methods throughout my projects. Static helper methods are very CONVENIENT for reusing CODE in Chatter functionality, DML handling, EXCEPTION handling, Unit TESTING, etc. Apex-lang is about as close to a Java-style library as you can get. Contains several string, database, and collection utilities that mimmick Java functionality. Be aware though, some stuff including Comparing and Sorting collections is out of date with the advent of the Comparable interface in Apex.In addition to apex-lang, and like you suggest, I typically create or reuse static helper methods throughout my projects. Static helper methods are very convenient for reusing code in Chatter functionality, DML handling, Exception handling, Unit testing, etc. |
|
| 18. |
How To Unit Test Code Which Has Logic Around The Created Date? |
Answer»
|
|
| 19. |
How Many Ways We Can Share A Record? |
|
Answer» Role Hierarchy:
OWD:
Manual Sharing:
Criteria Based Sharing rules:
Apex sharing: Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record to the share object. Role Hierarchy: OWD: Manual Sharing: Criteria Based Sharing rules: Apex sharing: Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record to the share object. |
|
| 20. |
What Is Sharing Rule? |
|
Answer» If we want to give ACCESS to other USERS we USE sharing RULES. If we want to give access to other users we use sharing rules. |
|
| 21. |
What Is A Time Trigger? |
|
Answer» A SETTING that DEFINES when time-dependent WORKFLOW ACTIONS should FIRE. A setting that defines when time-dependent workflow actions should fire. |
|
| 22. |
List Things That Can Be Customized On Page Layouts? |
|
Answer» We can customize DIFFERENT things on PAGE layout like, Fields, BUTTONS, Custom LINKS and Related Lists. We can ALSO create sections. We can customize different things on page layout like, Fields, Buttons, Custom Links and Related Lists. We can also create sections. |
|
| 23. |
Does User Can Create Insert Their Own Custom Logo, While Creating Their Own Custom Applications? |
|
Answer» YES,user can upload their custom LOGO in documents and then they choose that logo for ORGANIZATION. Yes,user can upload their custom logo in documents and then they choose that logo for organization. |
|
| 24. |
What Is The Difference Between Trigger And Workflow? |
|
Answer» Trigger:
Workflow:
Trigger: Workflow: |
|
| 25. |
Will Visualforce Still Supports The Merge Fields Usage Like S-control? |
|
Answer» YES. Just LIKE S-Controls. VISUALFORCE PAGES support embedded merge fields. Yes. Just like S-Controls. Visualforce pages support embedded merge fields. |
|
| 26. |
What Is Future Annotation(@future)? |
Answer»
Syntax: global CLASS class_name { @future Static void methodname(parameters) { //body of the METHOD } Syntax: global class class_name { @future Static void methodname(parameters) { //body of the method } |
|
| 27. |
How To Invoke Batch Apex Job (or) How To Execute The Batch Apex Job Programatically? |
|
Answer» We can use DATABASE.executebatch ( ) method to PROGRAMMATICALLY begin the BATCH job. Syntax: Public static ID execute batch ( sObject class name) Public static ID execute batch (sObject class name, INTEGES SCOPE) The above two methods are static methods of database class. We can use any one of the method to execute the batch job. We can use database.executebatch ( ) method to programmatically begin the batch job. Syntax: Public static ID execute batch ( sObject class name) Public static ID execute batch (sObject class name, integes scope) The above two methods are static methods of database class. We can use any one of the method to execute the batch job. |
|
| 28. |
What Are The Effects Of Using The Transient Keyword? |
|
Answer» The TRANSIENT KEYWORD prevents the data from being saved in to view STATE. This should be used for very temporary variables. The transient keyword prevents the data from being saved in to view state. This should be used for very temporary variables. |
|
| 29. |
What Are Some Apex Classes That Are Commonly Used Within Controller ? |
|
Answer» STANDARD CONTROLLER, select option, pagereference, messages,ETC. Standard controller, select option, pagereference, messages,etc. |
|
| 30. |
What Is App Exchange Directory? |
|
Answer» A WEB directory where hundreds of appexchange APPS are available to salesforce customers to review, demo, comment upon, and /or install. Developers can submit their apps for LISTING on the appexchange directory if they WANT to SHARE them with the community. A web directory where hundreds of appexchange apps are available to salesforce customers to review, demo, comment upon, and /or install. Developers can submit their apps for listing on the appexchange directory if they want to share them with the community. |
|
| 31. |
What Are Force Platform Sites? |
|
Answer» Public websites and applications that are directly integrated with your SALESFORCE organization without REQUIRING users to LOG in with a USERNAME and PASSWORD. Public websites and applications that are directly integrated with your salesforce organization without requiring users to log in with a username and password. |
|
| 32. |
What Is Metadata Driven Development Model? |
|
Answer» An APP DEVELOPMENT MODEL that allows apps to be defined as declarative "blueprints”, with no code required. Data Models, objects, forms, WORKFLOWS, and more are defined by METADATA. An app development model that allows apps to be defined as declarative "blueprints”, with no code required. Data Models, objects, forms, workflows, and more are defined by Metadata. |
|
| 33. |
What Is Multi Tenant Architecture? |
|
Answer» An application MODEL in which all users and apps SHARE a SINGLE, COMMON infrastructure and code base. An application model in which all users and apps share a single, Common infrastructure and code base. |
|
| 34. |
What Is The Main Difference Between Using Data Table Vs Page Block Table Tags? |
|
Answer» Page BLOCK: For DEFAULT salesforce standard format. DATA table: Page Block: For default salesforce standard format. Data table: To design custom formats. |
|
| 35. |
How To Add Javascript Remoting To A Vf Page? |
|
Answer» To use javascript remoting in a vf page , add the REQUEST as a java SCRIPT INVOCATION with the following from. [namespace.] CONTROLLER.method ( [PARAMETERS….,] Call back Function, [configuration] );
To use javascript remoting in a vf page , add the request as a java script invocation with the following from. [namespace.] controller.method ( [parameters….,] Call back Function, [configuration] ); |
|
| 36. |
What Is Javascript Remoting For Apex Controllers? |
Answer»
|
|
| 37. |
What Are Sosl Statements In Salesforce Apex? |
|
Answer» SOSL STATEMENT evaluate to a list of sobjects , where each list contains the search results for a particular sobject type, The result lists are always returned in the same order as they were specified in the query. If a SOSL query does not return any records for a specified sObject type , the search results include an empty list for that sObject. For example, you can return a list of accounts, contacts, opportunities and leds that begin with the phase map. Note : The syntax of the classon Apex differs from the syntax of the FIND clause in the SOAP API. In Apex, the VALUE of the FIND cause is demarcated with single quotes. Example:1 FIND 'map*' IN ALL FIELDS RETURNING account (Id, Name], Contact, Opportunity, Lead. In the Force.com API, the value of the FIND Clause is demarcated with braces. Example:2 FIND {map*} IN ALL FIELDS RETURNING account [Id,name], contact ,opportunity,lead. From search list , you can create arrays for each object returned. Account [ ] accounts = (( list < accounts > ) search list [0] ); Contact [ ] contacts = [( list ) search list [0]) ; Opportunity [ ] opportunities = ((list < opportunity> ) search list [2]) ; Lead [ ] leads = (( list < lead> ) search list [3]); SOSL statement evaluate to a list of sobjects , where each list contains the search results for a particular sobject type, The result lists are always returned in the same order as they were specified in the query. If a SOSL query does not return any records for a specified sObject type , the search results include an empty list for that sObject. For example, you can return a list of accounts, contacts, opportunities and leds that begin with the phase map. Note : The syntax of the classon Apex differs from the syntax of the FIND clause in the SOAP API. In Apex, the value of the FIND cause is demarcated with single quotes. Example:1 FIND 'map*' IN ALL FIELDS RETURNING account (Id, Name], Contact, Opportunity, Lead. In the Force.com API, the value of the FIND Clause is demarcated with braces. Example:2 FIND {map*} IN ALL FIELDS RETURNING account [Id,name], contact ,opportunity,lead. From search list , you can create arrays for each object returned. Account [ ] accounts = (( list < accounts > ) search list [0] ); Contact [ ] contacts = [( list ) search list [0]) ; Opportunity [ ] opportunities = ((list < opportunity> ) search list [2]) ; Lead [ ] leads = (( list < lead> ) search list [3]); |
|
| 38. |
What Is The Usage Of Apex Program With Within Visual Force Page? |
Answer»
|
|
| 39. |
What Are The Types Of Apex Triggers In Salesforce? |
|
Answer» Triggers Are divided into 2 types:
1. Before Triggers: Before Triggers can be used to update or validate values of a record before they are SAVED to the database. 2. After Triggers: After Triggers Before Triggers can be used to ACCESS field values of the records that are the stored in the database and USE this values to make changes in other records. Syntax: Trigger trigger_name on Object_Name(trigger_events) { Code BLOCK } WHERE trigger_events can be comma separated list of events. Triggers Are divided into 2 types: 1. Before Triggers: Before Triggers can be used to update or validate values of a record before they are saved to the database. 2. After Triggers: After Triggers Before Triggers can be used to access field values of the records that are the stored in the database and use this values to make changes in other records. Syntax: Trigger trigger_name on Object_Name(trigger_events) { Code block } WHERE trigger_events can be comma separated list of events. |
|
| 40. |
What Is Apex Scheduler? |
|
Answer» It will invokes the Apex CLASS to run at specific TIME. Anybody who want to schedule their class they have to implement schedulable interface. Schedule Interface: The class that implements this interface can be scheduled to run at DIFFERENT intervals. This interface has several METHODS. They are: Public void EXECUTE(schedulablecontext sc) etc. It will invokes the Apex class to run at specific time. Anybody who want to schedule their class they have to implement schedulable interface. Schedule Interface: The class that implements this interface can be scheduled to run at different intervals. This interface has several methods. They are: Public void execute(schedulablecontext sc) etc. |
|
| 41. |
What Is Batch Apex In Salesforce? |
|
Answer» Batch APEX: Batch Apex allows you to DEFINE a single job that can be BROKEN up into manageable chunks, WHEREAS every CHUNK can be processed separately. Batch Apex: Batch Apex allows you to define a single job that can be broken up into manageable chunks, whereas every chunk can be processed separately. |
|
| 42. |
What Are The Types Of Soql Statements In Sales Force? |
|
Answer» Salesforce Object Query Language is used to query that records from the database.com based on the requirement. There are 2 TYPES of SOQL Statements:
1.Static SOQL:
2.Dynamic SOQL:
Salesforce Object Query Language is used to query that records from the database.com based on the requirement. There are 2 types of SOQL Statements: 1.Static SOQL: 2.Dynamic SOQL: |
|
| 43. |
What Is Map Class In Apex Salesforce? |
Answer»
|
|
| 44. |
What Is Apex Email Service? |
|
Answer» EMAIL SERVICES is an automated process that use Apex classes to process the CONTENTS, Headers, ATTACHMENTS of INBOUND Email. Email services is an automated process that use Apex classes to process the contents, Headers, Attachments of Inbound Email. |
|
| 45. |
How Does Apex Work? |
Answer»
|
|
| 46. |
When Should I Use Apex? |
Answer»
|
|
| 47. |
What Is Apex Programming Language? |
Answer»
|
|
| 48. |
What Is Apex In Salesforce? |
Answer»
|
|