{"id":2825,"date":"2012-04-23T17:38:04","date_gmt":"2012-04-23T12:08:04","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=2825"},"modified":"2015-02-09T01:29:52","modified_gmt":"2015-02-09T01:29:52","slug":"salesforce-interview-questions-part-7","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-7\/","title":{"rendered":"Salesforce Interview Questions &#8211; Part 7"},"content":{"rendered":"<div class=\"intrinsic-container\"><iframe loading=\"lazy\" src=\"https:\/\/jitendrazaa.com\/blog\/SFDCInterviewList.php?num=7\" width=\"300\" height=\"150\" allowfullscreen=\"allowfullscreen\"> <\/iframe><\/div>\n<p><strong>61. How to round the double to two decimal places in Apex?<br \/>\nAns:<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nDecimal d = 100\/3;\r\nDouble ans = d.setScale(2) ;\r\n<\/pre>\n<hr \/>\n<p><strong>62.In Profile settings, what is difference between &#8220;Modify All Data&#8221; and &#8220;Modify All&#8221; ?<br \/>\nAns:<\/strong><br \/>\n<strong>Modify All Data :<\/strong> Create, edit, and delete all organization data, regardless of sharing settings.<br \/>\n<strong>Modify All :<\/strong> Give Read, Add, Delete permission to selected Object,<em><span style=\"text-decoration: underline;\"> Create permission is not included in Modify All \u00a0permission<\/span><\/em>.<!--more--><\/p>\n<hr \/>\n<p><strong>63. If i want record level access then what should i use from Salesforce security model?<br \/>\nAns:<\/strong> Manual Sharing<\/p>\n<hr \/>\n<p><strong>63. If i want Object level access then what should i use from Salesforce security model?<br \/>\nAns:<\/strong> Profile<\/p>\n<hr \/>\n<p><strong>64. In OWD (Organization wide sharing), can i change the setting &#8220;Grant Access Using Hierarchies&#8221; for Standard Objects ?<br \/>\nAns:<\/strong> You cannot change it for Standard Objects However for Custom Objects its possible.<\/p>\n<hr \/>\n<p><strong>65. What is Mandatory while creating User, Role or Profile?<br \/>\nAns :<\/strong> Its Profile.<\/p>\n<hr \/>\n<p><strong>66. In case of Master-Detail relationship, on Update of master record can we update the field of child record using workflow rule?<br \/>\nAns:<\/strong> No<\/p>\n<hr \/>\n<p><strong>67. In case of Master-Detail relationship, on Update of child record can we update the field of Parent record using workflow rule?<br \/>\nAns:<\/strong> Yes, the Master fields are also available for &#8220;Criteria evaluation&#8221;.<\/p>\n<p><strong>68. While setting OWD (Organization wide sharing), can we change\/modify the setting of child record in case of Master-Detail relationship?<br \/>\nAns:<\/strong> No, Child record is controlled by the Parents setting.<\/p>\n<hr \/>\n<p><strong>69. What is the need of &#8220;Custom Controller&#8221; in Visualforce as everything can be done by the combination of Standard Controller + Extension class.<br \/>\nAns : <\/strong><\/p>\n<ul>\n<li>Sharing setting is applied on standard object\/extension by default; In case we don&#8217;t want to apply sharing setting in our code then Custom controller is only option.<\/li>\n<li>It is possible that the functionality of page does not required any Standard object or may require more than one standard object, then in that case Custom controller is required.<\/li>\n<\/ul>\n<hr \/>\n<p><strong>70. In class declaration if we don&#8217;t write keyword &#8220;with sharing&#8221; then it runs in system mode then why keyword &#8220;without sharing&#8221; is introduced in apex?<br \/>\nAns:<\/strong><br \/>\nLets take example, there is <strong>classA<\/strong> declared using &#8220;<strong>with sharing<\/strong>&#8221; and it calls <strong>classB<\/strong> method. classB is not declared with any keyword then by default &#8220;with sharing&#8221; will be applied to that class because originating call is done through classA. To avoid this we have to explicitly define classB with keyword &#8220;without sharing&#8221;.<\/p>\n<div class=\"intrinsic-container\"><iframe loading=\"lazy\" src=\"https:\/\/jitendrazaa.com\/blog\/SFDCInterviewList.php?num=7\" width=\"300\" height=\"150\" allowfullscreen=\"allowfullscreen\"> <\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Basic concepts and Interview Questions of salesforce, Visualforce, Apex and SOQL<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[20,23,9],"tags":[331],"class_list":["post-2825","post","type-post","status-publish","format-standard","hentry","category-apex","category-configuration","category-salesforce","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2762,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-6\/","url_meta":{"origin":2825,"position":0},"title":"Salesforce Interview Questions &#8211; Part 6","author":"Jitendra","date":"March 10, 2012","format":false,"excerpt":"Basic concepts and Interview Questions of salesforce, Visualforce, Apex and SOQL","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"Salesforce - External Id option while creating field","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Salesforce-External-Id-option-while-creating-field.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Salesforce-External-Id-option-while-creating-field.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Salesforce-External-Id-option-while-creating-field.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2971,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-8\/","url_meta":{"origin":2825,"position":1},"title":"Salesforce Interview Questions \u2013 Part 8","author":"Jitendra","date":"July 23, 2012","format":false,"excerpt":"Part 8 interview question is going to be around reports and profiles related question as i have seen this type of questions in lot of interviews. 71. If user doesn't have any right on particular record and have only read level access at object level. Can he change the record\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce Report - Printable view and Export Details","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Report-Printable-view-and-Export-Details.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Report-Printable-view-and-Export-Details.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Report-Printable-view-and-Export-Details.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4174,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-22\/","url_meta":{"origin":2825,"position":2},"title":"Salesforce Interview Questions &#8211; Part 22","author":"Jitendra","date":"December 1, 2015","format":false,"excerpt":"Consider it Facts or FAQ or interview questions but its small and important notes about Salesforce. More than 200 interview questions for Salesforce developer, Admin and consultants","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"220+ Salesforce Interview Questions","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/11\/220plus-Interview-Questions-1024x303.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/11\/220plus-Interview-Questions-1024x303.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/11\/220plus-Interview-Questions-1024x303.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3773,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-faq-part-19\/","url_meta":{"origin":2825,"position":3},"title":"Salesforce interview questions &#8211; Part 19","author":"Jitendra","date":"December 16, 2014","format":false,"excerpt":"Salesforce interview questions for developers and admins around Apex, Visualforce, getting Salesforce object name on basis of Id, Apex API limits","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2979,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-9\/","url_meta":{"origin":2825,"position":4},"title":"Salesforce Interview Questions \u2013 Part 9","author":"Jitendra","date":"July 25, 2012","format":false,"excerpt":"81. Which type of report can be used for dashboard components? Ans : Summary and matric report. 82. How many types of dashboard components are available? Ans : Chart, Table, Metric and Gauge. 83. Explain dynamic Dashboard. Ans : Dashboard which is running under current logged in user permission are\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce Analytic Snapshot - Source Report and Target Object","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Analytic-Snapshot-Source-Report-and-Target-Object.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1305,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-3\/","url_meta":{"origin":2825,"position":5},"title":"Salesforce Interview Questions \u2013 Part 3","author":"Jitendra","date":"October 12, 2010","format":false,"excerpt":"Most Frequently Asked interview questions of Apex, Visual force, SOQL in Salesforce.com SFDC","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=2825"}],"version-history":[{"count":3,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2825\/revisions"}],"predecessor-version":[{"id":4221,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2825\/revisions\/4221"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=2825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=2825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=2825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}