Deprecated: Optional parameter $list declared before required parameter $is_script is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 21

Deprecated: Optional parameter $register declared before required parameter $footer_or_media is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 45

Deprecated: Optional parameter $register declared before required parameter $footer_or_media is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 104

Deprecated: Optional parameter $expire declared before required parameter $path is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_functions.php on line 54

Deprecated: Optional parameter $depth declared before required parameter $output is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/themes/entaro/inc/classes/megamenu.php on line 155

Deprecated: Optional parameter $depth declared before required parameter $output is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/themes/entaro/inc/classes/mobilemenu.php on line 147

Deprecated: Optional parameter $args declared before required parameter $wp_customize is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/extensions/customizer/extension_customizer.php on line 583

Deprecated: Optional parameter $args declared before required parameter $wp_customize is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/extensions/customizer/extension_customizer.php on line 606

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":971,"date":"2017-08-21T03:56:43","date_gmt":"2017-08-21T03:56:43","guid":{"rendered":"http:\/\/www.salesforcenextgen.com\/?p=971"},"modified":"2020-12-28T19:43:07","modified_gmt":"2020-12-28T19:43:07","slug":"salesforce-interview-questions-latest","status":"publish","type":"post","link":"https:\/\/salesforcenextgen.com\/salesforce-interview-questions-latest\/","title":{"rendered":"Salesforce interview Questions Latest"},"content":{"rendered":"

Salesforce interview Questions<\/h1>\n

In this post, I have collected all the Salesforce interview\u00a0Questions which were asked to me in \u00a0Salesforce interview for 2-3 years of experience. I have compiled these questions to the best of my knowledge.<\/p>\n

The answer provided here are\u00a0answered to the best of my knowledge and they can be wrong, so kindly refer Apex developer guide and visualforce guide and other means to verify the answers.<\/p>\n

If you think any answer is incorrect\u00a0then do mention the same in the comments.<\/p>\n

Here goes the list of Salesforce Interview Questions<\/h4>\n

Q 1. Which of the below can’t be used in Apex DML Operation?<\/strong><\/p>\n

    \n
  1. a) trigger.old<\/li>\n
  2. b) trigger.new<\/li>\n
  3. c) trigger.new and trigger.old<\/li>\n
  4. d) None of the above <\/strong><\/li>\n<\/ol>\n

    Q2.When considering trigger context variables, which of the statement is true?<\/strong><\/p>\n

      \n
    1. a) We can delete trigger.new<\/li>\n
    2. b) We cannot delete trigger. new <\/strong><\/li>\n
    3. c) trigger.new is always ready only<\/li>\n
    4. d) trigger.new is ready only, so we can delete<\/li>\n
    5. e) None of the statement is true<\/li>\n<\/ol>\n

      3. In Apex, if you want to make something public, you need to use the <\/strong>PUBLIC<\/u> access modifier.<\/strong><\/p>\n

      4. On deletion of parent record, the child record should not getddeleted, which relationship will satisfy this requirement?<\/strong><\/p>\n

        \n
      1. a) Lookup <\/strong><\/li>\n
      2. b) Master-Detail<\/li>\n
      3. c) Many to Many<\/li>\n
      4. d) Master to Master<\/li>\n
      5. e) Both b & c<\/li>\n<\/ol>\n

        Q.5. Product manager at XYZ company is required to help their sales team in selling certain products, but product manager does not have access to the opportunities and his involvement is required in assisting the deal. How will a salesforce admin resolve this scenario? <\/strong><\/p>\n

          \n
        1. a) Notify the product manager using opportunity update reminders<\/li>\n
        2. b) Enable opportunity teams and allow users to add the product manager. <\/strong><\/li>\n
        3. c) Use similar opportunities to show opportunities related to the product manager.<\/li>\n
        4. d) Enable account teams and allow users to add the product manager.<\/li>\n<\/ol>\n

          Q.6. When would a developer use upsert and external IDs? (There are two correct answers.)<\/strong><\/p>\n

            \n
          1. a)To integrate with an external system. <\/strong><\/li>\n
          2. b) To migrate customizations from sandbox to production.<\/li>\n
          3. c) To load related records without knowing Salesforce record IDs. <\/strong><\/li>\n
          4. d) To use the Web Services API to query for data.<\/li>\n<\/ol>\n

            Q7. Considering child to parent relationship, you can traverse \u2014<\/strong><\/p>\n

              \n
            1. a) up to five levels <\/strong><\/li>\n
            2. b) up to one level only<\/li>\n
            3. c) up to three levels<\/li>\n
            4. d) up to four levels<\/li>\n
            5. e) All of the above statements are true<\/li>\n<\/ol>\n

              Q.8. Which of the Data format and communication is supported by REST API? <\/strong><\/p>\n

                \n
              1. a) XML and Synchronous<\/li>\n
              2. b) JSON, XML and Asynchronous <\/strong><\/li>\n
              3. c) JSON, XML and Synchronous<\/li>\n
              4. d) JSON and Synchronous<\/li>\n
              5. e) None of the above<\/li>\n<\/ol>\n

                9. Which of the authorizations are supported by SOAP API ?<\/strong><\/p>\n

                  \n
                1. a) Session ID<\/li>\n
                2. b) Oath 2.0<\/li>\n
                3. c) Both Oath 2.0 and Session ID <\/strong><\/li>\n
                4. d) None of the above<\/li>\n<\/ol>\n

                  Q.10. Write a SOQL query to find the Ids and Cust__c of the Object CustObj__c. CustF__c field should contain either of the below values \u2014 <\/strong><\/p>\n

                  *AAA and BBB selected or\u00a0*CCC selected<\/p>\n

                  Select id, Cust__c \u00a0<\/strong>from CustObj__c<\/strong> where CustF__c \u00a0<\/strong>includes(‘AAA;BBB’,’CCC’<\/strong>)<\/p>\n

                  *CCC selected<\/p>\n

                  Select id, Cust__c \u00a0<\/strong>from CustObj__c<\/strong> where CustF__c \u00a0<\/strong>includes(‘CCC’<\/strong>)<\/p>\n

                  Q.11. Write an SOQL query which returns account IDs for all Accounts that do not have any open Opportunities? <\/strong><\/p>\n

                  select id from account where id in (select accountid from opportunity where stagename in (‘Closed Won’, ‘Closed lost’))<\/p>\n

                  Q.12. Which of the below SOQL query is true?<\/strong><\/p>\n

                    \n
                  1. a) Select Account.Narne , (Select Note.Body From Account.Notes ) From Account <\/strong><\/li>\n
                  2. h) Select Account.Name , (Select Note.Body From Account.Notes where Note.Body LIKE `D%’) From Account<\/li>\n<\/ol>\n

                    Q.13. Which one is a valid exception handling block in Apex? <\/strong><\/p>\n

                    a) try { code block }<\/p>\n

                    catch (exceptionType)<\/p>\n

                    { code_block }<\/p>\n

                    finally code block<\/p>\n

                    b) try { code block }<\/p>\n

                    catch (exceptionType)<\/p>\n

                    code block<\/p>\n

                    }<\/p>\n

                    c)try { code block }<\/p>\n

                    catch (exceptionType) {<\/p>\n

                    code block }<\/p>\n

                    catch (Exception e){ }<\/p>\n

                    d) All of the above.<\/p>\n

                    e) None of the above. <\/strong><\/p>\n

                    Q.14. Class annotated with isTest must be declared as?<\/strong><\/p>\n

                    a)Private<\/p>\n

                    b)Public<\/p>\n

                    c)Global<\/p>\n

                    d)Private and Public both<\/strong><\/p>\n

                    e) None of the above<\/p>\n

                    Q.15. Which statement is False regarding the isTest annotation <\/strong><\/p>\n

                      \n
                    1. a)<\/strong> Classes defined as isTest must be declared as Private.<\/strong><\/li>\n
                    2. b) Classes defined as isTest do not count against organizations limits for Apex scripts.<\/li>\n
                    3. c) Classes defined as isTest cannot be called from another class or trigger.<\/li>\n
                    4. d) Classes defined as isTest can only contain methods declared as test methods.<\/li>\n
                    5. e) None of the above<\/li>\n<\/ol>\n

                      Q.16. Which triggers are invoked when two contacts are Merged? <\/strong><\/p>\n

                        \n
                      1. a) Only delete and update contact triggers<\/li>\n
                      2. b) Only delete and update triggers on the parent account<\/li>\n
                      3. c) No triggers<\/li>\n
                      4. d) Delete and update contact triggers and triggers on the parent account<\/li>\n
                      5. e) None of the above<\/li>\n<\/ol>\n

                        Q.17. In Salesforce which fields are indexed automatically? <\/strong><\/p>\n

                          \n
                        1. a) Primary keys<\/li>\n
                        2. b) External lds<\/li>\n
                        3. c) Audit dates (such as last modified date)<\/li>\n
                        4. d) Only External ids and audit dates<\/li>\n
                        5. e) All of the above<\/li>\n<\/ol>\n

                          Q.18. Given the controller code what is the expected output?<\/strong><\/p>\n

                          <apex:page controller=”the controller”><\/p>\n

                          {lout}<\/p>\n

                          <apex: page><\/p>\n

                          public class theController<\/p>\n

                          {<\/p>\n

                          public string out{<\/p>\n

                          get {<\/p>\n

                          if(out== null) out = ‘getter’;<\/p>\n

                          return out ;<\/p>\n

                          }<\/p>\n

                          set;<\/p>\n

                          public theController()<\/p>\n

                          {<\/p>\n

                          Out= ‘constructor’;<\/p>\n

                          }<\/p>\n

                          public void setout<\/p>\n

                          { out = ‘action’; }<\/p>\n

                          }<\/p>\n

                            \n
                          1. a) null<\/li>\n
                          2. b) action<\/li>\n
                          3. c) constructor<\/strong><\/li>\n
                          4. d) getter.<\/li>\n<\/ol>\n

                            Q.19. Which among these is a valid SOQL to query all records in an organization, including delete and archived activities? <\/strong><\/p>\n

                              \n
                            1. a) SELECT count() FROM contact WHERE accountid = a.id QUERY ALL.<\/li>\n
                            2. b) SELECT count() FROM contact WHERE accountid = a.id INCLUDE ALL.<\/li>\n
                            3. c) SELECT count() FROM contact WHERE accountid = a.id ALL ROWS. <\/strong><\/li>\n
                            4. d) None of the above.<\/li>\n<\/ol>\n

                              Q.20. How can permission sets be used? <\/strong><\/p>\n

                                \n
                              1. a) To assign unique login hours for specific users<\/li>\n
                              2. b) To assign access to a custom object for specific users<\/li>\n
                              3. c) To assign access to a custom field for specific users<\/li>\n
                              4. d) Only b & c<\/li>\n
                              5. e) All of the above<\/li>\n<\/ol>\n

                                Q.21. Customer wants to add a custom validation process to the contact save process. Before the record is created and saved to the database, the customer wants run a validation, which will checks if the associated account is active or not, this validation should be active for all UI as well as integration requests. Which design accomplish this <\/strong><\/p>\n

                                  \n
                                1. a) A custom Web service<\/li>\n
                                2. b) A before insert trigger<\/strong><\/li>\n
                                3. c) A custom Visualforce controller<\/li>\n
                                4. d) A client-side 5-control<\/li>\n<\/ol>\n

                                  Q.22. What types of element do list contains.<\/strong><\/p>\n

                                    \n
                                  1. a) Integer<\/li>\n
                                  2. b) String<\/li>\n
                                  3. c) Object<\/li>\n
                                  4. d) Integer and string<\/li>\n
                                  5. e) All of the above <\/strong><\/li>\n<\/ol>\n

                                    Q.23. Which of the following code segments show a correct way of accessing data with Standard List Controllers? <\/strong><\/p>\n

                                      \n
                                    1. <apex:page standardController=”Account” recordSetVar—“accounts” > <\/strong><\/li>\n<\/ol>\n

                                      <apex:pageBlock ><\/strong><\/p>\n

                                      \u00a0<apex:pageBlockTable value=”{!accounts}” var=”a”><\/strong><\/p>\n

                                      \u00a0<apex:column value=”{!a.name}”\/><\/strong><\/p>\n

                                      \u00a0<\/apex:pageBlockTable> <\/strong><\/p>\n

                                      <\/apex:pageBlock><\/strong><\/p>\n

                                      \u00a0<\/apex:page>.<\/strong><\/p>\n

                                        \n
                                      1. <apex:page standardController=”Account” var=”accounts” ><\/li>\n<\/ol>\n

                                        <apex:pageBlock ><\/p>\n

                                        <apex:pageBlockTable value=”{!accounts}” var=”a”><\/p>\n

                                        <apex:column value=”{!a.name}”\/><\/p>\n

                                        <\/apex:pageB1ockTabie><\/p>\n

                                        <\/apex:pageBlock><\/p>\n

                                        <\/apex:page><\/p>\n

                                          \n
                                        1. <apex:page standardListController=”Account” recordSetVar=”accounts” ><\/li>\n<\/ol>\n

                                          <apex:pageBlock ><\/p>\n

                                          <apex:pageBlockTable value=”{!accounts}” var=”a”><\/p>\n

                                          <apex:column value=”f!a.namer><\/p>\n

                                          <\/apex:pageBlockTable><\/p>\n

                                          <apex:pageBlock><\/p>\n

                                          <apex:page><\/p>\n

                                            \n
                                          1. <apex:page standardListController=” Account” var=”accounts” ><\/li>\n<\/ol>\n

                                            <apex:pageBlock ><\/p>\n

                                            <apex:pageBlockTable value=”{laccounts}” var=”a”><\/p>\n

                                            <apex:column value=”a.name}”\/><\/p>\n

                                            <\/apex: pageBlockTable><\/p>\n

                                            <\/apex:pageBlock><\/p>\n

                                            <\/apex:page>.<\/p>\n

                                            Q.24. Which among these is a valid constructor for standard controller extension on Account? <\/strong><\/p>\n

                                              \n
                                            1. a) public myControllerExtension(ApexPages.Controller stdController){<\/li>\n<\/ol>\n

                                              this.acct= ( Account)stdController.getRecord();<\/p>\n

                                              }<\/p>\n

                                                \n
                                              1. b) public myControllerExtension(ApexPages.StandardSetController stdController){<\/li>\n<\/ol>\n

                                                this.acct = (Account)stdController.getRecord();<\/p>\n

                                                  \n
                                                1. c) public myControllerExtension(ApexPages.StandardController stdController) {<\/strong><\/li>\n<\/ol>\n

                                                  this.acct = (Account)stdController.getRecord(); <\/strong><\/p>\n

                                                    \n
                                                  1. d) None of the above.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

                                                    Salesforce interview Questions In this post, I have collected all the Salesforce interview\u00a0Questions which were asked to me in \u00a0Salesforce interview for 2-3 years of experience. I have compiled these questions to the best of my knowledge. The answer provided here are\u00a0answered to the best of my knowledge and they can be wrong, so kindly …
                                                    Continue reading Salesforce interview Questions Latest<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[40,74,45,75,38,83,42,82,55,51,52],"_links":{"self":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts\/971"}],"collection":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/comments?post=971"}],"version-history":[{"count":4,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"predecessor-version":[{"id":2204,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts\/971\/revisions\/2204"}],"wp:attachment":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}