Coding Standards Quiz - 7/8/2009

14 Questions | Total Attempts: 44

SettingsSettingsSettings
Please wait...
Comprehension Quizzes & Trivia

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


Questions and Answers
  • 1. 
    What is the preferred method for comparing two string values?
    • A. 

      Use the == operator

    • B. 

      Use the @equals() library function

    • C. 

      Use the Lib(PegaRULES:String).equals() library function

    • D. 

      Use the = operator

  • 2. 
    Explain in your own words why you chose the answers to question 1.
  • 3. 
    What must you call in order to create a .pyID on a clipboard page that is a decedent of Work-?
    • A. 

      The Method Property-Set to assign a value to the property

    • B. 

      The Activity GenerateID

    • C. 

      The Method Property-Set-Special to assign a value to the property

    • D. 

      The Activity GenerateNewID

  • 4. 
    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?
    • A. 

      Unlock the ruleset and delete the rule

    • B. 

      Set the availability to "No"

    • C. 

      Set the availability to "Withdrawn"

    • D. 

      Add the word "DEPRECATED" to the description fields

    • E. 

      Set the availability to "Blocked"

  • 5. 
    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?
    • A. 

      Unlock the ruleset and delete the rule

    • B. 

      Set the availability to "No"

    • C. 

      Set the availability to "Withdrawn"

    • D. 

      Add the word "DEPRECATED" to the description fields

    • E. 

      Set the availability to "Blocked"

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

      Rule-Obj-Validate to validate that the value is part of a pre-defined list

    • B. 

      A local table edit should be created on the Rule-Obj-Property rule

    • C. 

      Rule-Obj-FieldValue instances should be created for each of the possible values

    • D. 

      A remote table edit should be used to reference an external list of possible values

  • 7. 
    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?
    • A. 

      Assignment

    • B. 

      Fork

    • C. 

      Router

    • D. 

      Connector Utility

    • E. 

      Spin-off

  • 8. 
    Why must you always perform an Obj-Save-Cancel when an Obj-Save fails?
  • 9. 
    What following things must be down in order to define an Activity as abstract?
    • A. 

      Put the string "=Abstract=" in the usage description

    • B. 

      Put a single step that is commented out indicating that the activity is abstract

    • C. 

      Put a single step that throws a PRRuntimeException indicating that the activity is abstract

    • D. 

      Put several steps in the activity that dictate how that activity will perform operations

  • 10. 
    Which of the following fields must always be populated on every rule?
    • A. 

      Short description

    • B. 

      Usage description

    • C. 

      Instance description

    • D. 

      Long description

    • E. 

      None are required

  • 11. 
    Why should Rule-Obj-Flow and Rule-Obj-FlowAction rules always have a short description that starts with a verb?
  • 12. 
    Which of the following are good examples of names given to rules?
    • A. 

      BeforeAction_AutoSubmit

    • B. 

      AutoSubmit_AfterAction

    • C. 

      CreateCorrLetter

    • D. 

      ProcessWork

    • E. 

      GetWork_Objects

  • 13. 
    Which of the following are clipboard page names allowed by the standards?
    • A. 

      TmpClipPage

    • B. 

      TempClipPg

    • C. 

      PageListPg

    • D. 

      PyWorkPage

    • E. 

      MyPage

  • 14. 
    Why should you always use Rule-Obj-ListView and Rule-Obj-SummaryView rules to run reports against PRPC managed database tables instead of RDB-List rules?
Back to Top Back to top