Wisdom jobs Salesforce Interview Questions and answers have been framed specially to get you prepared for the most frequently asked questions in many job interviews. Here we have provided Tips and Tricks for cracking Salesforce Programming Language interview. These Salesforce Interview questions and answers are useful for Beginner, Advanced Experienced programmers and job seekers of different experience levels. It's a good idea to go through Salesforce Interview Questions. All the best in your job search.
Question 1. What Is Apex In Salesforce?
Answer :
Question 2. What Is Apex Programming Language?
Answer :
Question 3. When Should I Use Apex?
Answer :
Question 4. How Does Apex Work?
Answer :
Question 5. 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.
Question 6. What Is Map Class In Apex Salesforce?
Answer :
Question 7. 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:
Question 8. 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.
Question 9. 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.
Question 10. 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.
Question 11. What Is Group By?
Answer :
With ApI version 18.0 and later /you can use group by with aggregate functions, such as sum() or max() to summarize the data and enable you to rollup query results rather than having to process the individual records in your code.
Syntax :
[ GROUP BY field GROUP BY LIST]
Question 12. What Is The Usage Of Apex Program With Within Visual Force Page?
Answer :
Question 13. 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]);
Question 14. What Is Javascript Remoting For Apex Controllers?
Answer :
Question 15. 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]
);
Question 16. What Is The Main Difference Between Using Data Table Vs Page Block Table Tags?
Answer :
Page Block:
For default salesforce standard format.
Data table:
To design custom formats.
Question 17. What Is Multi Tenant Architecture?
Answer :
An application model in which all users and apps share a single, Common infrastructure and code base.
Question 18. 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.
Question 19. 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.
Question 20. 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.
Question 21. What Are Some Apex Classes That Are Commonly Used Within Controller ?
Answer :
Standard controller, select option, pagereference, messages,etc.
Question 22. 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.
Question 23. 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.
Question 24. What Is Future Annotation(@future)?
Answer :
Syntax:
global class class_name
{
@future
Static void methodname(parameters)
{
//body of the method
}
Question 25. What Is S-control?
Answer :
S-Controls are the predominant salesforce.com widgets which are completely based on JavaScript. These are hosted by salesforce but executed at client side. S-Controls are superseded by VisualForce now.
Question 26. Will Visualforce Still Supports The Merge Fields Usage Like S-control?
Answer :
Yes. Just like S-Controls. Visualforce pages support embedded merge fields.
Answer :
A protocol that defines a uniform way of passing XML-encoded data. SOAP Stands for Simple Object Access Protocol.
Question 28. Difference Between Soql Vs Sosl In Salesforce?
Answer :
SOQL:(Salesforce Object Query Language)
SOSL:(Salesforce object Search Language)
Question 29. What Is Wrapper Class?
Answer :
Question 30. What Is The Difference Between Trigger And Workflow?
Answer :
Trigger:
Workflow:
Answer :
Yes,user can upload their custom logo in documents and then they choose that logo for organization.
Question 32. 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.
Question 33. What Is A Time Trigger?
Answer :
A setting that defines when time-dependent workflow actions should fire.
Question 34. What Is Sharing Rule?
Answer :
If we want to give access to other users we use sharing rules.
Question 35. 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.
Question 36. How To Unit Test Code Which Has Logic Around The Created Date?
Answer :
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.
Question 38. 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:
Question 39. 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:
Question 40. 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.
Question 41. What Is App In Salesforce?
Answer :
Question 42. What Is The Object In Salesforce.com?
Answer :
Question 43. How Many Relationships Included In Sfdc & What Are They?
Answer :
We are having two types of relationships, they are:
Question 44. What Are Report Types?
Answer :
There are 4 types of reports in Salesforce:
Question 45. What Are Record Types?
Answer :
Record Types are restrict the pick list values and assign to the different page layouts for different Record Types.
Question 46. What Is Roll-up Summary?
Answer :
Roll-up displays the count of child records and calculate the sum, min and max of fields of the child records.
Question 47. Is The Check Box Performs Like Controlling Field?
Answer :
Yes possible. Controlling field should be Check box or pick list.
Question 48. What Is Field Dependency?
Answer :
According to the field selection on one field filter the pick list values on other field.
Question 49. 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.
Question 50. How Many Ways We Can Call The Apex Class?
Answer :
Question 51. 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.
Question 52. 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:
Question 53. Can We Create Master-detail Relationship In This Case?
Answer :
Question 54. 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.
Question 55. 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.
Salesforce Related Tutorials |
|
---|---|
AJAX Tutorial | Software Engineering Tutorial |
Apex Tutorial |
Salesforce Related Practice Tests |
|
---|---|
AJAX Practice Tests | Software Engineering Practice Tests |
Salesforce Admin Practice Tests | Salesforce Developer Practice Tests |
Apex Practice Tests |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.