This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You need to create and assign a data type to a variable. The variable should only have access to a defined list of values Invent, Sale, and Purchase. Which data type should you use?
The string data type should be used.
The enum data type should be used.
The integer data type should be used.
The container composite data type should be used.
You need a conditional statement that checks if a variable equals In progress, Completed, or Canceled. Different code needs to run, depending on what the variable equals. A default block of code needs to run if the variable doesn't equal any of the values. What conditional statement is most appropriate?
Error handling
A ternary operation
If statement
Switch statement
An error is sometimes thrown in a certain try…catch block. You know that the issue can be fixed within the code during the error handling code block. What statement could you use when the error is found to run the code again?
The throw statement should be used in the catch statement to rerun the try block.
The finally statement should be used in the catch statement to rerun the try block.
The retry statement could be used in the catch statement to rerun the try block.
A business system function should be used in the catch statement to rerun the try block.
You want to call a new global function to use in an application that someone else created by using extensions. What recommended method should you use?
Call it the same way that you would call other static methods on a class by using the following syntax <ClassName>::<MethodName>.
<ClassName>::<MethodName>
Call it by using only the method name.
Create a new global function with extensions blocked.
You created a new form with a grid that lists records. The grid has a virtual field that should save the value for each record temporarily, and you want to ensure that you’re using the correct collection class. What is the recommended collection class?
List collection class
Map collection class
Set collection class
You must answer all questions before checking your work.
Was this page helpful?