NetSuite Application Developer

NetSuite Application Developer practice questions, page 2 of 3, with answer review and explanations.

Question 6

A user error is thrown within the map stage of a map/reduce script. There are no try/catch block statements in the map stage. The summarize stage does not contain any logic. Which statements are true? (Choose two.)

  1. The map/reduce script continues to execute. Both the reduce and the summarize stages occur.
  2. The error is displayed on the Execution Log subtab when the summarize stage is completed.
  3. The error is not displayed on the Execution Log subtab even when the summarize stage is completed.
  4. The error is displayed on the Execution Log subtab when the map stage is completed.
  5. The map/reduce script stops executing within the map stage.

Question 7

A script uses the following code snippet to send an email to employees in the account. Assuming valid internal IDs for employees, which are the correct value assignments for emailRecipients? (Choose two.)

  1. [record.load({type: record.Type.EMPLOYEE, id: 1}),2,3]
  2. [1,2,3]
  3. [1,'emp2@mail.com',3]
  4. ['emp1@mail.com','emp2@mail.com’,['emp3@mail.com']]
  5. [{id: 1},{id: 2},{email:'emp2@mail.com'}]

Question 8

A button was added to an existing Suitelet script below: When the button is clicked, the Suitelet returns an "Uncaught ReferenceError: buttonFunc is not defined" error on the console. What is the next step to correct the error?

  1. Create a separate user event script file and add the button function to the file. Reference the user event script file using form.userEventScriptModulePath.
  2. Create a separate custom module file and add the button function to the file. Reference the button in the Suitelet script as part of the define() parameters.
  3. No need to create an extra file. Add the button function to the Suitelet script file so that it can be referenced internally.
  4. Create a separate client script file and add the button function to the file. Reference the client script file using form.clientScriptModulePath.

Question 9

A developer wants to create a field using script to display the date of the user currently logged in that also follows the user’s Date Format preference. Which modules can be used for this solution? (Choose two.)

  1. N/record
  2. N/preference
  3. N/config
  4. N/search
  5. N/runtime

Question 10

A user creates a Sales Order record in the user interface. One client script uses a saveRecord() entry point function and one user event script with beforeLoad(), beforeSubmit(), and afterSubmit() entry point functions deploy on the Sales Order record. Which is the correct entry point execution sequence?

  1. beforeLoad() > saveRecord() > beforeSubmit() > afterSubmit()
  2. saveRecord() > beforeLoad() > beforeSubmit() > afterSubmit()
  3. beforeSubmit() > afterSubmit() > beforeLoad() > saveRecord()
  4. beforeLoad() > beforeSubmit() > saveRecord() > afterSubmit()