Day 4 - Validation (2%) Flashcards

1
Q

Which of the following is NOT a method of validation?

A. Property Type
B. Edit Validate
C. Required
D. Control
E. Validate
F. Optional
A

F. Optional

The Methods of Validation are as follows -
Property Type - Data Type (e.g. Total Cost (decimal): 100.44, Country (text): Australia)

Edit Validate - Pattern Matching (e.g. USA SSN XXX-XX-XXXX, EUR Phone: +31 20 673 59 22)

Required - Ensuring a value is entered in a field

Control - radio buttons, dropdown lists, autocomplete

Validate - proper testing of user input (e.g. enforce depart/return input for a round trip ticket)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You use validation rules when you cannot predict or control the _____ users enter in a form.

A

Value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

There are two types of validation rules: ________ and _____ _________.

A

Validate, edit validate

Validate rules to compare a property against a condition when the user submits a form.

Edit validate rules to test single value, value list, and value group properties for patterns.

By default, Pega Platform performs client-side validation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following are true about validating user input? (Choose Two)

A. Validate rules allow us to compare conditions however they must be referenced in order to work.
B. Validate rules allow us to record an expected relationship between properties and have the system manage them.
C. Edit Validate allow us to compare input values with an exact pattern using a Java statement.
D. Edit Validate rules allow us to record an expected relationship between properties and have the system manage them.

A

A. Validate rules allow us to compare conditions however they must be referenced in order to work.

C. Edit Validate allow us to compare input values with an exact pattern using a Java statement.

Validates don’t run until we actually click SUBMIT.
If you create a validate rule and do not call it, it will not work.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where are the two place Validation rules can be called? (Choose Two)

A. From Edit Validate rule
B. From a Flow Action rule
C. From a Stage chevron in Dev Studio
D. From a Decision shape

A

B. From a Flow Action rule
C. From a Stage chevron in Dev Studio

Every stage has a Validation tab where you can run validation rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is NOT a type of validation (Choose Two)

A. Making a field required
B. Set the date the employee was hired to a default value
C. Allowing a user to select from a set of values in a Drop Down field
D. Changing the font color to Red if the field is required.

A

B. Set the date the employee was hired to a default value

D. Changing the font color to Red if the field is required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Match the listed fields on the left to the best suitable property types on the right while creating the form.

Student Registration Number————Date Only
Date of Birth——————-Text (Paragaraph)
Branch——————Text (Single Line)
Description (200 words)—————Picklist

A

Student Registration Number > Text (Single Line)
Date of Birth > Date Only
Branch > Picklist
Description > Text (Paragraph)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Select the statement that best describes an Edit Validate rule. (Choose One)

A. Used to test property values against specific conditions
B. Used to ensure a required relationship between two properties
C. Used to test input values against a specific pattern
D. Used to limit the input to a specific number of characters

A

C. Used to test input values against a specific pattern

Edit validate uses pattern matching

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You have a requirement to add a bank checking account to a view. Routing numbers must contain nine digits. How would you configure the field to support this requirement? (Choose One)

A. In an edit validate rule, configure a function to test for a routing number pattern.
B. Use an edit validate rule that validates the routing number pattern.
C. Use decimal property type and make the field required.
D. Set the minimum and maximum values to 9 in a text field.

A

B. Use an edit validate rule that validates the routing number pattern.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What rule can call an Edit Validate rule? (Choose Two)

A. Validate Rule
B. Edit Validate
C. Property
D. Flow Action

A

A. Validate Rule

C. Property

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following is NOT an example of an Edit Validate rule? (Choose Two)

A. The entry must use CamelCase. Meaning the first letter of each word must be in uppercase.
B. The entry must contain 3 numbers, a dash, 2 numbers, a dash, and 4 numbers. (e.g. 123-45-6789
C. The Total Cost cannot be greater than available budget.
D. The charge type must be one of the accepted pay types.

A

C. The Total Cost cannot be greater than available budget.

D. The charge type must be one of the accepted pay types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

You are adding a field to your case type in which users must enter the day, month, and year they were hired before the user can submit the user form. The field type must enforce a date format. What two validation approaches would you use to meet the validation requirements? (Choose Two)

A. Use the read-only option
B. Use the required option
C. Define the field type as an integer
D. Add the word "Required" to the field label
E. Define the field type as a date only
A

B. Use the required option

E. Define the field type as a date only

How well did you know this?
1
Not at all
2
3
4
5
Perfectly