3. Gosu

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/80

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:25 AM on 5/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

81 Terms

1
New cards

To encapsulate data and code for a specific function

What is the purpose of a Gosu class?

2
New cards

Avoid referencing typecodes using a string representation of the typecode value

Which of the following is a Gosu best practice?

3
New cards

Put a closing curly brace on its own line after the last statement in a block

Which of the following is a Gosu best practice?

4
New cards

Arguments must be a Gosu block expression

Which is true of all arguments used by array methods?

5
New cards

Arguments must be an expression of a condition

Which is true of all arguments used by array methods?

6
New cards

where(condition)

Which array method is used to retrieve a target array of matching members?

7
New cards

DisplayName

What property points to the default entity name type of an object?

8
New cards

Custom entities added to the data model, if the names of the entities are displayed on the user interface

For which entities do you need to create an entity name file?

9
New cards

Entities whose display names are referenced in the user interface but do not already have entity names

For which entities do you need to create an entity name file?

10
New cards

Are centered around a business process such as assignment or validation

Which characteristic is true of all rule set categories?

11
New cards

Consist of one or more rule sets

Which characteristic is true of all rule set categories?

12
New cards

Assignment rule sets are “exit after first action” rule sets.

Which statement describes rule sets?

13
New cards

Every rule set is tied to an entity, known as the root entity.

Which statement describes rule sets?

14
New cards

Validation rule sets are “execute all” rule sets.

Which statement describes rule sets?

15
New cards

Preupdate rules do not run a second time on objects that were modified during the initial rule execution.

Which statement describes preupdate rules?

16
New cards

Preupdate rules typically execute before rules in the Validation rule set category.

Which statement describes preupdate rules?

17
New cards

Validatable

Which attribute must be set in the metadata of an entity to trigger a preupdate rule?

18
New cards

Often used to log method entry and exit.

What logging level is TRACE used for?

19
New cards

Helps diagnose problems if a section of code does not perform as expected.

What logging level is DEBUG used for?

20
New cards

Indicated a potential problem that does not affect the user experience.

What logging level is WARN used for?

21
New cards

Indicated a potential problem that does affects the user experience.

What logging level is ERROR used for?

22
New cards

Failure

Which event should be logged?

23
New cards

Identification

Which event should be logged?

24
New cards

Recovery

Which event should be logged?

25
New cards

Success

Which event should be logged?

26
New cards

Which statement violates a best pracice for using logging levels?

27
New cards

If the code cannot recover, log exception information at the ERROR level.

Which statement describes best practices for logging exceptions?

28
New cards

If the exception is expected, log it at the WARN or INFO level.

Which statement describes best practices for logging exceptions?

29
New cards

If the user experience is affected, log the exception at the ERROR level.

Which statement describes best practices for logging exceptions?

30
New cards

CLF is a standard format for logging messages using JSON.

Which statement applies to Common Logging Format (CLF)?

31
New cards

CLF uses a structured data format that simplifies the parsing, indexing, and searching of logs.

Which statement applies to Common Logging Format (CLF)?

32
New cards

CLF works with Log4j2 and the Structured Logger.

Which statement applies to Common Logging Format (CLF)?

33
New cards

Context map fields

Which of the following are components of log data?

34
New cards

Core fields

Which of the following are components of log data?

35
New cards

Method names should use a verb that reflects what the method does.

Which of the following statements about Gosu methods is correct?

36
New cards

Restrict the scope of methods to what is required.

Which of the following statements about Gosu methods is correct?

37
New cards

Add new classes to a customer package space.

Which of the following statements about Gosu classes is correct?

38
New cards

To create a classes to a customer package space.

Which of the following statements about Gosu classes is correct?

39
New cards

They are used to calculate a derived value.

Which of the following statements about getter properties is correct?

40
New cards

They can only return a value and should not alter any data.

Which of the following statements about getter properties is correct?

41
New cards

The value given to a setter may or may not be stored in the database.

Which of the following statements about setter properties is correct?

42
New cards

They take a single input value and use it to modify the associated object.

Which of the following statements about setter properties is correct?

43
New cards

User story

Which of the following is used to document requirements for application changes?

44
New cards

Customer enhancements are created under a customer-specific package in Studio.

Which of the following statements regarding creating an enhancement is true?

45
New cards

Place logic related to a PCF file in a UI helper class.

Which statement regarding Gosu code and PCF files is correct?

46
New cards

Constants should be assigned a name using all capital letters with underscores separating words.

Which of the following statements regarding Gosu standards is true?

47
New cards

New interfaces and abstract classes should be added to a customer package space.

Which of the following statements regarding Gosu standards is true?

48
New cards

It validates a simple logical condition for a single field.

Which of the following applies to a validationExpression as opposed to Validation Rules?

49
New cards

Validatable delegate

Which of the following defines reusable functions to show warning or error messages?

50
New cards

When the object are not in an array

In which of the following scenarios should a Gosu query be used?

51
New cards

What restriction to apply

Which criteria may be specified in a query object?

52
New cards

Which entity to query

Which criteria may be specified in a query object?

53
New cards

select

Which method is used to access query results?

54
New cards

make

Which method is used to create a query?

55
New cards

Answering questions about performance.

What can the contextual information embedded in queries help with?

56
New cards

getCountLimitedBy(x)

Which of the following method performs better than .Count to check for results without retrieving any data?

57
New cards

isEmpty

Which of the following method performs better than .Count to check for results without retrieving any data?

58
New cards

Filter on the database rather than in memory.

Which of the following statements about filtering data is correct?

59
New cards

Return only the data needed for the current action.

Which of the following statements about filtering data is correct?

60
New cards

Avoid iterating over entities from the database to count.

Which of the following statements about counting entities is correct?

61
New cards

Count entities on the database.

Which of the following statements about counting entities is correct?

62
New cards

The current bundle, then the application server cache, then the database.

When the application calls for an existing entity, what is the sequence in which resources are search to find it?

63
New cards

An in-memory container for entities that represent database rows.

What is a bundle?

64
New cards

The mechanism used by Guidewire InsuranceSuite applications to manage database transactions.

What is a bundle?

65
New cards

Modifications to entities returned from queries

In which of the following contexts is it necessary to explicitly commit a bundle?

66
New cards

Web services that make database changes

In which of the following contexts is it necessary to explicitly commit a bundle?

67
New cards

All changes in the bundle are rolled back

If a single entity in a bundle fails to commit, what occurs?

68
New cards

Do filtering at the database rather than in memory - let the database do what it is good at.

Identify a best practice for Queries.

69
New cards

Modifying columns on which you initially queried repositions the cursor.

Why does paging not work well with some types of modification?

70
New cards

Gosu classes

Which of the following Gosu objects can GUnit tests be written for?

71
New cards

They provide the fastest feedback cycle.

Which of the following statements about unit tests are correct?

72
New cards

They represent the best way to realize return on investment.

Which of the following statements about unit tests are correct?

73
New cards

Fluent assertions

Which of the following methods is preferred for verifying GUnit test results?

74
New cards

testThatReocrdsMatchPolicyJurisdiction

Which of the following test method names follows GUnit best practices?

75
New cards

If no server is running when a test class is executed, Studio will automatically start the server.

Which of the following statements about running GUnit tests is correct?

76
New cards

TestServer can be started prior to running tests so Studio does not have to start the server for every test.

Which of the following statements about running GUnit tests is correct?

77
New cards

Possible test outcomes include success, failure, and error.

Which of the following statements about test results is correct?

78
New cards

The output for failed tests includes the failure reason and the expected and actual results.

Which of the following statements about test results is correct?

79
New cards

All test classes in a suite must be based on the same class type.

Which of the following statements regarding GUnit test suites are correct?

80
New cards

Specify the @Suites annotation on all test classes in a suite.

Which of the following statements regarding GUnit test suites are correct?

81
New cards

It accepts a unique string.

Which statement regarding the @Suites annotation is true?