Coding Standards Quiz - 7/8/2009

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Robdunie
R
Robdunie
Community Contributor
Quizzes Created: 1 | Total Attempts: 111
| Attempts: 111 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. What must you call in order to create a .pyID on a clipboard page that is a decedent of Work-?

Explanation

.pyID is a property whose value needs to be unique based upon the .pyWorkIDPrefix along with an internally generated sequence number. You should not explicitly set this number. GenerateNewID is not intended to be called for work objects.

Submit
Please wait...
About This Quiz
Coding Standards Quiz - 7/8/2009 - Quiz

Quiz to understand the comprehension of the PRPC coding best practices and standards.

Personalize your quiz and earn a certificate with your name on it!
2. What shape type(s) must you never remove from a flow once it has been deployed to production and there are work objects started on that flow?

Explanation

Once a flow has been deployed to production and work objects have been started on that flow, the shape type that must never be removed is the "Assignment" shape. This shape is responsible for assigning work to users or work queues and removing it could potentially disrupt the workflow and cause errors or delays in processing the work objects.

Submit
3. What is the preferred method for comparing two string values?

Explanation

The preferred method for comparing two string values is to use the @equals() library function or the Lib(PegaRULES:String).equals() library function. These functions are specifically designed for comparing string values and ensure accurate results. Using the == operator or the = operator may not yield the desired outcome as they compare object references rather than the actual string values.

Submit
4. Which of the following are good examples of names given to rules?

Explanation

The names "AutoSubmit_AfterAction" and "ProcessWork" are good examples of names given to rules because they are clear and descriptive. The name "AutoSubmit_AfterAction" suggests that the rule is related to an automatic submission that occurs after an action is taken. Similarly, "ProcessWork" indicates that the rule is involved in processing work. These names provide a clear understanding of the purpose and functionality of the rules. On the other hand, the other names provided ("BeforeAction_AutoSubmit" and "GetWork_Objects") are not as clear and may not effectively convey the purpose of the rules.

Submit
5. What following things must be down in order to define an Activity as abstract?

Explanation

To define an Activity as abstract, it is necessary to put the string "=Abstract=" in the usage description and also include a single step that is commented out indicating that the activity is abstract. This way, other developers can understand that the activity is intended to be used as a base class and cannot be instantiated directly. The "=Abstract=" string in the usage description serves as a clear indication of the abstract nature of the activity, while the commented out step provides additional documentation within the code itself.

Submit
6. Which of the following fields must always be populated on every rule?

Explanation

The short description, usage description, and long description fields must always be populated on every rule. These fields provide essential information about the rule, such as its purpose, how it should be used, and additional details for clarification. By ensuring that these fields are filled out, it helps users understand and utilize the rule effectively.

Submit
7. Assuming you were developing an application on a PRPC v5.1 system and you have a rule that is in a locked ruleset, what things must you do in order to deprecate a rule?

Explanation

To deprecate a rule in a locked ruleset on a PRPC v5.1 system, you need to add the word "DEPRECATED" to the description fields and set the availability to "Blocked". Unlocking the ruleset and deleting the rule, setting the availability to "No" or "Withdrawn" won't suffice for deprecation.

Submit
8. Assuming you were developing an application on a PRPC v5.2 and later system and you have a rule that is in a locked ruleset, what things must you do in order to deprecate a rule?

Explanation

To deprecate a rule in a locked ruleset on a PRPC v5.2 and later system, you must set the availability to "Withdrawn" and add the word "DEPRECATED" to the description fields. Unlocking the ruleset and deleting the rule, setting the availability to "No", or setting the availability to "Blocked" are not necessary actions to deprecate a rule.

Submit
9. When restricting the list of valid values for a property, the following mechanism(s) should be used to configure the list:

Explanation

The correct answer is that "Rule-Obj-FieldValue instances should be created for each of the possible values" and "A remote table edit should be used to reference an external list of possible values".

To restrict the list of valid values for a property, Rule-Obj-FieldValue instances should be created for each possible value. This allows the system to validate that the value entered is part of the predefined list.

Additionally, a remote table edit should be used to reference an external list of possible values. This allows the system to dynamically retrieve the list from an external source, ensuring that it is always up to date.

By using both mechanisms, the list of valid values can be properly configured and enforced.

Submit
10. Which of the following are clipboard page names allowed by the standards?

Explanation

The correct answer is PageListPg and pyWorkPage. These two names are allowed by the standards for clipboard pages. TmpClipPage, TempClipPg, and MyPage are not mentioned in the question as being allowed by the standards, so they are not correct answers.

Submit
View My Results

Quiz Review Timeline (Updated): Jul 17, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jul 17, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 08, 2009
    Quiz Created by
    Robdunie
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What must you call in order to create a .pyID on a clipboard page that...
What shape type(s) must you never remove from a flow once it has been...
What is the preferred method for comparing two string values?
Which of the following are good examples of names given to rules?
What following things must be down in order to define an Activity as...
Which of the following fields must always be populated on every rule?
Assuming you were developing an application on a ...
Assuming you were developing an application on a ...
When restricting the list of valid values for a property, the...
Which of the following are clipboard page names allowed by the...
Alert!

Advertisement