Salesforce Developer Practice Exam 1 (DEV 401 Certification)

Practice exam for Force.com developer exam

Kindly note that these questions are not taken from the real exam. These questions are provided to help you prepare for the Force.com developer certification exam. The real exam has 60 questions that need to be completed in 90 minutes. The questions are fairly situational. A real-life situation will be briefly described and developer will need to choose which feature of Force.com can be used in this situation. The exam will have less questions related to memorizing Salesforce quota limits (example maximum size of VisualForce page, maximum number of fields in an object etc.). Unless specified, all questions have exactly one correct answer. There is no negative marking. This exam is simpler than the real exam.
  1. In the statement below, controller refers to what type of controller? Select the one correct answer. <apex:page controller="AccountController">
    1. Standard Controller
    2. Custom Controller
    3. Controller Extension
    4. Specific Controller
  2. Which of the following represent correct syntax to display first name from global variable user? Select the one correct answer.
    1. {User.FirstName}
    2. {!User.FirstName}
    3. $User.FirstName
    4. {!$User.FirstName}
  3. Which of these is not a standard profile? Select the one correct answer.
    1. Developer
    2. Contract Manager
    3. Read only
    4. Solution Manager
  4. Name the language Force.com uses to support full-text search in objects. Select the one correct answer.
    1. SQL
    2. VisualForce
    3. SOQL
    4. SOSL
  5. Before a code can be deployed on production what percentage of test coverage must be achieved. Select the one correct answer.
    1. 25%
    2. 50%
    3. 75%
    4. 100%
  6. In Salesforce what is the maximum number of fields that can be added to an object? Select the one correct answer.
    1. There is no such limit on the number of fields
    2. 100
    3. 200
    4. 500
  7. How many characters are there in the Salesforce case-insensitive id field of an object? Select the one correct answer.
    1. id field is not mandatory
    2. The field length is customizable
    3. This depends on the version of Salesforce
    4. 18
  8. Name the prefix used by standard VisualForce markup tags. Select the one correct answer.
    1. vf
    2. apex
    3. c
    4. s
  9. Which of the following cannot be included in a VisualForce page? Select the one correct answer.
    1. Java
    2. JavaScript
    3. HTML
    4. Flash
  10. To create a new VisualForce page HelloWorld in developer mode, which URL should be appended to server address? Select the one correct answer.
    1. /HelloWorld
    2. /vf/HelloWorld
    3. /apex/HelloWorld
    4. /home/HelloWorld
  11. What is the maximum size of a VisualForce page? Select the one correct answer.
    1. 1 MB
    2. 5 MB
    3. 15 MB
    4. There is no limit on the size of a VisualForce page
  12. What is the number of components that can be added to a dashboard? Select the one correct answer.
    1. 20
    2. 25
    3. 50
    4. 100
  13. Which of these represent the correct syntax for custom controllers? Select the one correct answer.
    1. <apex:page controller="MyController">
    2. <apex:page standardController="MyController">
    3. <apex:page customController="MyController">
    4. <apex:page privateController="MyController">
  14. Which is the first step when creating reports? Select the one correct answer.
    1. Select report name
    2. Select object on which report needs to be generated
    3. Select type of report
    4. Select columns to be displayed
  15. Which of these is not a valid report type. Select the one correct answer.
    1. Summary
    2. Matrix
    3. Tabular
    4. Detailed
  16. Which report type is used to group rows of data and show their subtotals. Select the one correct answer.
    1. Summary
    2. Matrix
    3. Tabular
    4. Detailed
  17. Which report type is used to group rows and columns of data and show their subtotals. Select the one correct answer.
    1. Summary
    2. Matrix
    3. Tabular
    4. Detailed
  18. Which report type does not allow generation of charts? Select the one correct answer.
    1. Summary
    2. Matrix
    3. Tabular
    4. Detailed
  19. Which of these are valid data type in Force.com development platform. Select the two correct answers.
    1. Percent
    2. URL
    3. Choicebox
    4. Long
    5. Decimal
  20. When designing an application, a developer needs to make a field editable to all profiles. In field level security what settiings should be used in this situation. Select the one correct answer.
    1. Disable Visible and Read-Only
    2. Disable Visible but Enable Read-Only
    3. Enable Visible but Disable Read-Only
    4. Enable Visible and Read-Only
  21. Which report type does not support analytical snapshot? Select the one correct answer.
    1. Summary
    2. Matrix
    3. Tabular
    4. Detailed
  22. A customer has requested a user interface where list view of four objects can be accessed together with frequent navigation across them. Which feature of Force.com platform can be used to support this requirement? Select the one correct answer.
    1. Console
    2. Dashboards
    3. Analytical Snapshot
    4. Packages
    5. Layout template
  23. In a recruitment application, a dashboard component needs to be built that will display total number of positions. Which dashboard component can be used to implement this feature? Select the one correct answer.
    1. Gauge
    2. Metric
    3. Table
    4. Chart
    5. VisualForce page
  24. Universal Recruiters will like to hire ten employees in two months. In a recruitment application, a dashboard component needs to be built that will display progress towards achieving this goal of hiring of ten employees. Which dashboard component can be used to implement this feature? Select the one correct answer.
    1. Gauge
    2. Metric
    3. Table
    4. Chart
    5. VisualForce page
  25. Universal Recruiters uses an external system for keeping track of exits from the organization. The CEO of the organization will like to view information about exits in the Salesforce application that Universal Recruiters uses. Which dashboard component can be used to implement this feature? Select the one correct answer.
    1. Gauge
    2. Metric
    3. Table
    4. Chart
    5. VisualForce page
  26. Universal Recruiters uses Force.com as its recruitment platform. The Sales VP of Universal Recruiters will like a report that will display progress in recruitment across six months. Which reporting component can be used to implement this feature? Select the one correct answer.
    1. Summary
    2. Matrix
    3. Tabular
    4. Analytic Snapshot
  27. Which two features are supported by Salesforce in developer mode? Select the one correct answer.
    1. Developer mode allows a default user interface to be created for objects.
    2. Developer mode provides a debugger that is used to perform step by step execution.
    3. Developer mode allows developers to create dashboards from reports.
    4. Developer mode allows split screen where user can view Visual Force editor and user interface together
    5. Developer mode allows developers to create new pages by just entering the page name.
  28. Universal Recruiters wants to make access to records in such a way that all managers should be able to access records that are accessible to their team members. Which feature of Force.com's security should be used to implement this requirement. Select the one correct answer.
    1. Object level access to profiles
    2. Field level access to profiles
    3. Organization wide defaults
    4. Role hierarchy
    5. Sharing rules
    6. Manual sharing
  29. Universal Recruiters need to ensure that the Social Security Number and Phone Numbers follow a specific pattern. Which function can be used to implement this functionality. Select the one correct answer.
    1. REGEX
    2. EXPRMATCH
    3. ISNUMBER
    4. PRIORVALUE
    5. VLOOKUP
  30. Universal Recruiters have an object that they use to store all US zip codes and corresponding states. They want to ensure that the zip code and state specified by users are correct. Which function could be used to implement this feature? Select the one correct answer.
    1. REGEX
    2. EXPRMATCH
    3. ISNUMBER
    4. PRIORVALUE
    5. VLOOKUP
  31. Which of these functions is available in formulae field. Select the one correct answer.
    1. ISCHANGED
    2. ISNEW
    3. REGEXC
    4. IF
    5. VLOOKUP
    6. All of these functions are available in a formula field
  32. A Force.com developer needs to execute Apex code snippet and check the resource usage. Which feature of the platform can be used to support this requirement. Select the one correct answer.
    1. Debug Log
    2. System Log
    3. Setup Audit Trail
    4. Field level security
  33. A user at Universal Container has reported an issue with respect to approval process. You need to analyze this issue by reviewing the debug messages that get generated for this particular users. Which feature of the platform can be used to support this requirement. Select the one correct answer.
    1. Debug Log
    2. System Log
    3. Setup Audit Trail
    4. Field level security
  34. While debugging an issue you realize that the field type of an object has changed. You need to find out more details about this change. Which feature of the platform can be used to support this requirement. Select the one correct answer.
    1. Debug Log
    2. System Log
    3. Setup Audit Trail
    4. Field level security
  35. In Universal Recruiter application a developer realizes that the Salary field of an employee is set up to an incorrect value. The developer needs to find out who has set this new value to Salary field. Which feature of the platform can be used to support this requirement. Select the one correct answer.
    1. Debug Log
    2. System Log
    3. Setup Audit Trail
    4. Field History Tracking
  36. Which of the following is correct about custom fields in Salesforce. Select one correct answer.
    1. If a field is set as required it must be entered in the Salesforce generated pages, however it may not be specified when entering information via Force.com API
    2. A required field is always present in an edit page
    3. A unique field is always present in an edit page
    4. A unique field increases report and SOQL performance
  37. Fields of the which of the following type is not allowed to be set as external ids. Select one correct answer.
    1. Date
    2. Number
    3. eMail
    4. Text
  38. The number of master detail relationship that an object can have are
    1. 1
    2. 2
    3. 25
    4. 300
  39. The number of Lookup relationship that an object can have are
    1. 1
    2. 2
    3. 25
    4. 300
  40. Which of these is true about the Lookup Relationship. Select one correct answer.
    1. Parent is not a required field and may be omitted.
    2. Deleting an object deletes its children.
    3. Roll-up summary field can be used to perform basic operations over all children of a parent record.
    4. Security access of the child record is dependent upon the parent record.
  41. Which of the following cannot be used to build a complete Custom Tab. Select one correct answer.
    1. Display an external web page
    2. Display data using a VisualForce page
    3. Show data from a custom object using the native user interface
    4. Display the approval process using an Apex page
  42. Which of the following is not supported by Enhanced Page Layout editor. Select the one correct answer.
    1. Change the field name
    2. Add blank spaces
    3. Make a field required or read-only
    4. Add a new section
    5. Add a new custom field
  43. Which of the following is true about Roll-up summary fields? Select one correct answer.
    1. Roll-up summary can only be set on the parent of a Master-Detail or Lookup relationship.
    2. Roll-up summary can be used to compute SUM,MIN,MAX,AVG over a set of records
    3. The results of the roll-up summary is displayed on the child in a master-detail relationship.
    4. Roll-up summary fields are read only.
  44. Which of the following is true about Validation Rules? Select two correct answers.
    1. Validation rules are executed when the user clicks on the Save button.
    2. Validation rules are not applicable when the data is stored using the API.
    3. If the error condition evaluates to true, then an error message is generated and the record is not saved.
    4. Validation rules are applied only when a new record is created, and not when an existing record is edited.
  45. Which of the following is not a valid return type of a custom formula. Select one correct answer.
    1. Date
    2. Decimal
    3. Text
    4. Array
  46. Which of the following is not a part of a Force.com app. Select one correct answer.
    1. Notes
    2. Tab
    3. Links
    4. Forms
  47. An organization needs to create a public website that displays data from Salesforce.com organization without user registration. Select one correct answer.
    1. Apex
    2. Triggers
    3. Salesforce Knowledgebase
    4. Force.com sites
    5. Formula
Answers
  1. B. controller attribute is used for Custom Controller
  2. D. {!$User.FirstName} is the correct syntax to access first name (Used  $ sign since it is global variable)
  3. A. There is no developer standard profile.
  4. D. Salesforce Object Search Language
  5. C. The code must get a test coverage of 75% before it can be deployed.
  6. D. There can be a maximum of 500 fields in custom objects.
  7. D. object id field can be 15 character case-sensitive or 18 character case-insensitive.
  8. B. The prefix apex is used for standard VisualForce markup tags.
  9. A. It is not possible to include Java code in VisualForce page.
  10. VisualForce page address appears like /apex/HelloWorld.
  11. C. VisualForce pages must be upto 15 MB.
  12. A. A dashboard can have upto 20 components.
  13. A.
  14. B. The first step when creating reports is select the object type.
  15. D. Salesforce does not have a report type named Detailed.
  16. A.
  17. B.
  18. C.
  19. A, B. Percent and URL are valid data types in Salesforce.
  20. C. To make a field editable, enable Visible but disable Read-Only.
  21. B. Matric report cannot be used to generate Analytical snapshot.
  22. A. Console tab allows easy navigation across multiple object types.
  23. B. Metric dashboard type is used to display
  24. A. A gauge is used to display progress towards a goal.
  25. E. VisualForce pages can be used to draw dashboard components that extract data from another source.
  26. D. Analytic Snapshot feature of Salesforce is used to perform trend analysis over a period of time.
  27. D, E. Last two statements about developer mode are correct.
  28. D. Role Hierarchy feature of Force.com platform can be used to implement this functionality.
  29. A. REGEX function is used to check a text field matches the regular expression.
  30. E. VLOOKUP is used to return the value for a unique key in an object.
  31. D. IF function is available in the formula field. Other functions are not available in the formula field.
  32. B. System Log can be used to run code snippets.
  33. A. Debug Log can be used to view the debug/error messages generated for a particular user.
  34. C. Setup Audit Trail can be used to track changes made in the configuration.
  35. D. Field History Tracking can be used to find out changes in field values.
  36. B. A field set as required must always be present in the edit page.
  37. A. Fields of type external id can be defined as Text, Number or Email.
  38. B. An object can have maximum of 2 Master detail relationship
  39. C. An object can have maximum of 25 Lookup relationship
  40. A. Parent is not a required field in Lookup relationship
  41. D. Custom tabs can be used to display a VisualForce page, data from an external page, data from a custom object.
  42. E. Enhanced Page Layout editor cannot be used to create new fields.
  43. D. Only option D is correct. Rollup summary field can only be applied in Master-detail. Hence A is incorrect. AVG is not supported in Rollup summary fields.Rollup Summary is defined at the parent level of a Master-Detail relationship.
  44. A and C. Validation rules are applicable when the record is saved using the API, hence the option B is incorrect. Validation rules are applied every time the record is saved, hence D is incorrect.
  45. D. Array is not a valid return type of custom formula.
  46. A. Key element of a Salesforce app are Tab, Links and Forms.
  47. D. Force.com sites is used to build public facing sites.
Credit:  Naveen Gabrani