1/200
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Gosu
Guidewire’s programming language
Java
Gosu is based off of this other popular programming language
True
(True/False) Java code is entirely compatible with Gosu
Gosu Rules
Apply specific programming logic for testing a condition and performing an actionE
Enhancement
Extend entity functionality with programming logic as entity methods
Entity Name
Programming logic that defines how to display a name for an entity instance
Class
Encapsulate data and code for a specific purpose or function
Workflow
Runs custom business processes asynchronously, optionally with multiple states that transition over time
var
Gosu keyword for defining a variable
=
Gosu simple assignment operator
+=
Gosu operator that adds the left variable to the right side value and assigns the result to the left side variable
-=
Gosu operator that subtracts the right side value from the left variable, then assigns the result to the left side variable
*=
Gosu operator that multiplies the left variable with the right side value and assigns the result to the left side variable
and
Gosu operator for AND
or
Gosu operator for OR
not
Gosu operator for NOT
Text
(Text/Symbol) Is it preferred to use text or symbols for logical operators AND, OR, and NOT in Gosu?
2
How many spaces should you use to indent for best practices?
False
(True/False) The best practice is to put spaces around operators and parentheses in Gosu.
True
(True/False) The best practice is to put blank lines before and after code blocks in Gosu.
True
(True/False) The best practice is to add spaces around operators in Gosu.
True
(True/False) The best practice is to surround all logical blocks with curly braces in Gosu, even when they aren’t necessarily needed, such as for a single line if statement.
True
(True/False) The opening brace of a function should go on the same line that starts in, like in Java
gwb gosudoc
The console command used to generate Gosu documentation in CC/build/gosudoc/index.html
in
Which operator fills in the blank for the following Gosu for loop construction?for ([variable] ______ [expression])
hasMatch()
Method used to return true/false for whether an array possesses an element that meets a given condition
firstWhere()
Method used to return a single element of an Array that matches a given condition
where()
Method used to return a new Array consisting of elements of an original Array which all match a given condition
countWhere()
Method used to return the number of elements in an Array that match a given condition
EN
File extension for an entity name file which contains at least one default entity name type definition
DisplayName
The property of an entity for the default entity name definition
True
(True/False) Using the DisplayName property for an entity without an entity name type definition will result in a list of fields
False
(True/False) Using the DisplayName property for an entity without an entity name type definition will print its denormalized class name only
GR
The file extension for a Gosu Rule class
True
(True/False) Gosu rules are all formatted in an if-then format
Root Entity
The input parameter for a Gosu rule
Condition
The portion of a Gosu rule that evaluates to either true or false and determines whether the rule is run
Action
The portion of a Gosu rule consisting of code to be run, provided the condition is true
False
(True/False) Gosu Rules code is still executed even if the condition is false
EventMessage
The type of Gosu rule that performs event processing and generates messages about events that have already occurred
Preupdate
The type of Gosu rule that provides domain logic that must happen before the entity is committed
Validation
The type of Gosu rule that verifies the saved data of the entity that must come before the entity is committed to ensure it is valid
True
(True/False) Gosu Rules can have child rules
False
(True/False) If a parent rule condition fails, the child rule is still evaluated
True
(True/False) If a parent Gosu rule is true, the program executes the parent’s action before executing its children
Execute All
The Gosu rule execution strategy where Guidewire executes all rules in the ruleset in hierarchy order
Exit after first action
The Gosu rule execution strategy where Guidewire executes rules in the ruleset until an exit() function is hit
actions.exit()
The function used to stop the processing of further Gosu rules
Validatable
Entities must have this property in the entity metadata in order to be able to trigger a preupdate rule
Logging
The process of recording app actions and state to a secondary interface
Logger
The element which encapsulates a logging category with a logical file nameA
Appender
The output point or destination for a logger, such as an app console or specific log file
Layout
The logging element which defines the log entry format instructions
Trace
The log level for fine-grained informational events at method entry/exit
Debug
The log level for detailed informational events used to diagnose problems
Info
The log level for coarse-grained informational messages of progress during important events or occurrences
Warn
The log level set to indicate potential problems where the user experience has not been affected
Error
The log level set to indicate definite problems where the user experience has been affected
True
(True/False) Loggers inherit the properties of their parent loggers, but can still overwrite them if needed
Structured
Guidewire’s common standard uses a (Regular/Intentional/Structured) logger as the basis
False
(True/False) All exceptions logged are considered errors
Info
In the production environment, the log level is set to ______
False
(True/False) It is acceptable to include sensitive information in logs, such as passwords or tokens, to help diagnose the issue
Common Logging Format
CLF abbreviation stands for
JSON
The de facto standard for message passing, often used alongside loggers
Unicode
The file encoding of JSON format, which makes it universally accesible
Common Logging Format (CLF)
Defines the correct usage of logging in Guidewire Cloud
True
(True/False) Common Logging Format (CLF) is platform-agnostic, meaning it works with both Log4j2 and Structured Logger
True
(True/False) Use of the Common Logging Format (CLF) is mandatory for Guidewire Cloud implementations and upgrades
True
(True/False) The timestamp is required for log messages
True
(True/False) The log level is required for log messages
True
(True/False) The contextMap is required for log messages
Error
The exceptionMessage is required for log messages at the ______ level or higher
False
(True/False) The operation is required for log messages
True
(True/False) The structured logger automatically converts objects into log entries using toString
1
What is the ideal number of lines each log entry should take up?
UTF-8
The ideal encoding of log messages under Guidewire’s best practices
True
(True/False) It is better to log too much than to log too little, according to Guidewire’s best practices
gsrc
All Gosu code packages are locted under the ../configuration/_________ folder
public
The Gosu access modifier keyword that makes the field fully accessible
protected
The Gosu access modifier keyword that makes the field accessible only by types with the same package and subtypes
internal
The Gosu access modifier keyword that makes the field accessible only within the same package
private
The Gosu access modifier keyword that makes the field accessible only by the declaring type or class that defines it
override
The Gosu modifier keyword that declares that this subtype overwrites and replaces the implementation of an identically-named method or property inherited from its parent
abstract
The Gosu modifier keyword that indicates a type is intended only to be a base type to be extended or inherited by other types
final
The Gosu modifier keyword that specifies that the value of this property cannot be modified after the initial value is assigned
static
The Gosu modifier keyword that specifies that this method or variable is defined once per Gosu class rather than once per instance of the class
False
(True/False) The final modifier can be combined with the abstract modifier
True
(True/False) The final modifier can be combined with the static modifier
GS
The file extension for a Gosu class
False
(True/False) You should add the _Ext suffix to new class names in customer packages
True
(True/False) You should add the _Ext suffix if you add a new class to a Guidewire package space
False
(True/False) Internal classes under the com.guidewire.* namespace are safe to use as they won’t be changed in future versions
function
The Gosu keyword to declare a code method
True
(True/False) You should add the _Ext suffix to enhancement methods created on Guidewire entities
True
(True/False) You should add the _Ext suffix to methods added directly into Guidewire base application classes
False
(True/False) You should add the _Ext suffix to private methods you create
False
(True/False) Properties and fields created as enhancement properties are persisted to the database
True
(True/False) Subtypes and subclasses will automatically inherit all elements from the entity enhancement made to their parent class / supertype
Getter
A property or method used to calculate a derived value and return it