Original Practice Exam Questions Flashcards
Which of the following is NOT a SuiteScript best practice?
A).Use nSearch.lookupFields instead of nRecord.load when searching a record for a few fields
B). Design Map/Reduce scripts to run in under 5 minutes
C). Load and submit a record in a Before Record Submit event
D). Minimise API calls that perform load, search, or save record operations
Answer: C
For client scripts with the Advanced Employee Permissions feature enabled, how can we check if a role has access to a specific field?
A). Use “nRecord.getField([FIELD ID])”
B). Use “nSearch.getColumns().includes([FIELD ID])”
C). Use “.getFields().includes([FIELD ID])”
D). Use “nRecord.getValue([FIELD ID])”
Answer: C
What is the recommended time frame for Scheduled Scripts to run?
A). 2AM to 6AM PST
B).6AM to 6PM PST
C). 8AM to 5AM PST
D). 12PM to 12AM PST
Answer: A
What is the recommended maximum runtime for User Event scripts?
A). 10 seconds
B). 5 seconds
C). 30 seconds
D). 15 seconds
Answer: B
Which of the following is a recommended way to minimise API calls in SuiteScript?
A). Load and submit a record in a Before Record Submit event
B). Use nSearch module when searching for large data sets
C).Create global variables instead of hidden fields on records
D). Use N/task module instead of N/search module when searching for large data sets
Answer: D
When searching for a few fields, what method should you use instead of nRecord.load?
A). nSearch.load
B). nRecord.loadFields
C). nSearch.lookupFields
D). nRecord.lookupFields
Answer: C
What should you consider when using time values in your script?
A). You don’t need to worry about time zones since the server scripts use the account’s default time zone
B). You should always use the same time zone, regardless of where your users are located
C). You should convert your time values to the correct time zone before using them, if necessary
D). Time zones are not important in SuiteScript
Answer: C
Which of the following is the best practice when using client scripts and the Advanced Employee Permissions feature?
A). Use the “getFields().includes([FIELD ID])” method to check if the role has access to that field before getting/setting that field
B). Ignore the permissions assigned to the role and access all fields directly
C). Assume that all users have access to all fields, regardless of their role
D). Only use client scripts if the Advanced Employee Permissions feature is not active
Answer: A
What is the governance limit for the Map function in Map/Reduce scripts?
A). 5,000
B). 10,000
C). 1,000
D). 15,000
Answer: C
Which of the following modules can NOT be used in client scripts?
- a) N/ui/serverWidget
- b) N/ui/dialog
- c) N/ui/message
- d) All of the above can be used in client scripts
Answer: A
Which of the following dialog methods creates an Alert dialog with an OK button?
- a) nDialog.alert
- b) nDialog.confirm
- c) nDialog.create
- d) nMessage.create
Answer: A
Which of the following field types is NOT supported with Sublist.addField(options) (Can select more than one)?
- a) CHECKBOX
- b) RADIO
- c) SELECT
- d) FILE
Answer: B & D
What happens when the following field types are set to hidden?
CHECKBOX, RADIO, SELECT, TEXTAREA
- a) The object returned is still the original field type
- b) The object returned is text
- c) The object is removed from the form
- d) The object is grayed out but still visible on the for
Answer: B
Which level of client scripts require the script to be attached to the form it is running on?
- a) Record level client scripts
- b) Form level client scripts
- c) Both record level and form level client scripts
- d) None of the above
Answer: B
Which level of client scripts execute before the other?
- a) Record level scripts execute before form level scripts
- b) Form level scripts execute before record level scripts
- c) Both execute at the same time
- d) It depends on the specific script being executed
Answer: B
Which of the following field types is available only for Suitelets and will appear on the main tab of the Suitelet page?
- a) CHECKBOX
- b) RADIO
- c) SELECT
- d) FILE
Answer: D
Which module allows you to create a message object with a specified title, message, and type?
- a) N/ui/serverWidget
- b) N/ui/dialog
- c) N/ui/message
- d) All of the above allow you to create message objects
Answer: C
Which field type should be considered as a ‘write-only’ type of field used to add a field on a form?
- a) INLINEHTML
- b) IMAGE
- c) TEXTAREA
- d) LABEL
Answer: A
Which of the following field types is not supported with addField method?
- a) DATETIME
- b) DATE
- c) TIMEOFDAY
- d) DATETIMETZ
Answer: A
What is N/currency used for?
a. Formatting strings into a specified format
b. Parsing formatted date into strings
c. Finding the exchange rate between 2 currencies based on a certain date
d. Formatting of strings in international context
Answer: C
What is nFormat.spellOut() used for?
a. Formatting of strings into a specified format
b. Parsing formatted date into strings
c. Formatting of numbers to currency or number strings
d. Spells out positive and negative number as a string in a specific language
Answer: D
What is N/recordContext used for?
a. Getting all the available context types of the record, such as localization
b. Formatting strings into a specified format
c. Parsing formatted date into strings
d. Interacting with NetSuite Translation Collections programmatically
Answer: A
How can you make an object only run for records with a specific localization context when SDFing?
a. Specify the name of the country in the localizationcontext field in the XML definition
b. Set the alllocalizationcontexts field in the XML definition to “F”
c. Both a) and b)
d. Neither a) nor b)
Answer: C
Which method of the nFormat module is used to create a NumberFormatter object to format numbers into strings?
a. nFormat.getCurrencyFormatter()
b. nFormat.spellOut()
c. nFormat.getPhoneNumberParse()
d. nFormat.getNumberFormatter()
Answer: D
b.