Introduction to PQM
![]() |
![]() |
![]() |
Title of test:![]() Introduction to PQM Description: MF302 |




New Comment |
---|
NO RECORDS |
Modularity is: Effort required to test program. The degree to which architectural, date or procedural design can be extended. The fuctional independence of program components. The amount of computing,resources and code required by a program to perform its function. Maintainability is: Effort required to locate and fix an error in a program. Extent to which a program can be used in other applications. The amount of computing,resources and code required by a program to perform its function. The fuctional independence of program components. Modularity is: Effort required to test program. The degree to which architectural, date or procedural design can be extended. The fuctional independence of program components. The amount of computing,resources and code required by a program to perform its function. Effort required to test a program to ensure it performs its intended function is called: Extendibility. Modularity. Maintainability. Testability. Reusability. Performance. Usability. Extent to which a program (or parts of a program) can be reused in other applications is called: Extendibility. Modularity. Maintainability. Testability. Reusability. Performance. Usability. The amount of computing, resources and code required by a program to perform its function is called: Extendibility. Modularity. Maintainability. Testability. Reusability. Performance. Usability. This assesses how easy user interfaces are to use: Extendibility. Modularity. Maintainability. Testability. Reusability. Performance. Usability. Product Quality Metrics, as the name suggests, is a set of Product Metrics, and a powerful tool to monitor and improve on the existing quality of code/design. True. False. PQM defines a set of design level and code level metrics which help the project team to measure amd improve their design and code in terms of maintainability etc... These metrics provide qualitative measures for deisgn/code quality. True. False. PQM Compliant application implies a well designed product. True. False. PQM defines a set of. requirement and code level. design and code level. code level and testing level. only code level. PQM helps project team to measure and improve their design and code in terms of. cost. maintainability. reusability. Speed. Identify the Correct PQM Deployment Workflow: 1) Coding 2) Run through standard tool for PQM (COBOL:MICALC) 3) Take corrective actions if rquired 4) Testing 5) Requirement Analysis 6) Design. 5,6,1,2,3,4. 1,2,3,4,5,6. 5,6,2,3,1,4. 5,6,1,4,2,3. Match the following: MCCabe Cyclomatic Complexity(MCC). Halstead Actual Program Length. 01 Level Variables. Number of redefine Clauses. Total # of I/O Operations. McClure Control Variable Complexity. LOC Per Para. Executables per para. Total Number of Data Stores Accessed. LOC. Comment ration is a parameter measured using: MI Calc. SEEC. Identify the true statements about MCC: Measures the structural/logic flow complexity in a program. It is a count of number of test cases required to comprehensively test a program. Counts number of possible lineraly independent paths, meaning the number of If, Perform and Evaluate statements in the operation's body. Good indicator of computational complexity of a program. Is concerned how complex the tests are that control their selection. The traditional measure of size. Identify the true statements about Halstead Actual Program Length: Measures the structural/logic flow complexity in a program. Quantitative measure of complexity directly from the operators and operands in the module. Counts number of possible lineraly independent paths, meaning the number of If, Perform and Evaluate statements in the operation's body. Good indicator of computational complexity of a program. Is concerned how complex the tests are that control their selection. The traditional measure of size. In Halstead Actual program Length calculation, operators and operands in the module are strong indicators of code complexity since they are applied to code. True. False. Recommended Threshold for MCC is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75 (Maximum LOC Per para). Batch 0-55, Online -NA. Batch 0-31, Online 0-20. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for LOC is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75 (Maximum LOC Per para). Batch 0-55, Online -NA. Batch 0-31, Online 0-20. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for Total number of I/O Operations is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75 (Maximum LOC Per para). Batch 0-55, Online -NA. Batch 0-31, Online 0-20. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for 01 Level Variables is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75 (Maximum LOC Per para). Batch 0-55, Online -NA. Batch 0-31, Online 0-20. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for LOC per Para is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75. Batch 0-55, Online -NA. Batch 0-31, Online 0-20. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for Halstead ACtual Program Length is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75. Batch 0-55, Online -NA. Batch 0-31, Online 0-20. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for McClure Control Variable Complexity is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75. Batch 0-55, Online -NA. Batch 0-31, Online 0-20. 65. Batch 0-7500, Online 0-6500. Recommended Threshold for Number of executable statements per para is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. 75. 25. Batch 0-31, Online 0-20. 65. Batch 0-7500, Online 0-6500. Calculate the MCC for the below Code Snippet: OPEN INPUT INPUT-FILE OPEN OUTPUT OUTPUT-FILE IF MARKS>60 PERFORM 1000-DISPLAY-PARA ELSE DISPLAY "SECOND CLASS" END-IF CLOSE INPUT-FILE CLOSE OUTPUT-FILE. 1000-DISPLAY-PARA. DISPLAY "FIRST CLASS". 2. 10. 5. 4. Calculate the Halstead ACtual Program Length for the below Code Snippet: IF WS-EMP-NO > 2040 ADD 2000 TO WS-EMP-SALELSE ELSE ADD 4000 TO WS-EMP-SAL END-IF. 2. 10. 5. 4. MI Means: Maintainability Index. Mathematical Index. MCCabe Index. McClure Index. Calculate the Comment Ratio for the below Code Snippet: 1000-PARA. *THIS PARARAPH OPENS THE INPUT AND *OUTPUT FILE. READS TEH INPUT FILE UNTIL EOF *IS REACHED AND WIRTES TEH VALID RECORDS TO *OUTPUT FILE OPEN INPUT INPUT-FILE OPEN OUTPUT OUTPUT-FILE READ INPUT-FILE AT END SET EOF-INPUT-FILE TO TRUE END-READ PERFORM 2000-PARA UNTIL EOF-INPUT-FILE END-PERFORM. 2000-PARA *THIS PARAGRAPH CHECKS FOR THE FIRST FIELD *TO BE 'A'. IF YES, IT WRITES IT TO THE OUTPUT FILE IF FIELD-1='A' DISPLAY 'VALID RECORD' MOVE INPUT-REC TO OUTPUT-REC WRITE OUTPUT-REC END-IF. READ INPUT-FILE AT END SET EOF-INPUT-FILE TO TRUE END-READ. 100%. 10%. 25%. 40%. Recommended Threshold for MI is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. Batch 0-7, Online 0-7. Batch 0-55, Online -NA. Batch 0-31, Online 0-20. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. PQM practitioner need not worry about the complexity of equation. PQM tool not only calculates individual factors but it also gives teh final value for equations. True. False. Recommended Threshold for Total Types of I/O Operations is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. Batch 0-7, Online 0-7. Batch NA, Online -0-7. Batch 0-2, Online NA. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for Total Number of Data Stores Accessed is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. Batch 0-7, Online 0-7. Batch NA, Online 5-100. Batch 0-2, Online NA. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for CR is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. Batch 0-7, Online 0-7. Batch NA, Online 5-100. Batch 0-2, Online NA. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Recommended Threshold for Number of Redefine Clauses is: Batch 0-165, Online 0-245. Batch 0-3800, Online 0-6400. Batch 0-7, Online 0-7. Batch NA, Online 5-100. Batch 0-2, Online NA. Batch 0-21, Online NA. Batch 0-7500, Online 0-6500. Match the follwoing factors used in MI calculation and their recommended strategy when they go out of Recommended Range: Maintainability Index. Healstead Actual Program Length. MCC. 01 Level Variables. Number of redefine clauses. Total number of I/O Operations. Total Types of I/O operations. Tota Number of data stores accessed. LOC. % Comments. Tells about the re-use of data structure. It better utilizes memory space but increase the complexity and criticality of programs. REDEFINES. 01 lEVEL Variables. MCC. Halstead Calculation. Higher McClure indicates the need for complex test cases to test the program. True. False. Identify the true statements about McClure Control Variable complexity: Measures the structural/logic flow complexity in a program. Quantitative measure of complexity directly from the operators and operands in the module. Based on the number of conditions and the number of unique data items used in comparison expressions. Good indicator of computational complexity of a program. Is concerned how complex the tests are that control their selection. Indicates Complexity involved in testing a program. Calculate the McClure Control Variable Complexity in the below case: OPEN INPUT INPUT-FILE OPEN OUTPUT OUT-FILE READ INPUT-FILE MOVE INPUT-FILE-REC TO WS-INPUT-REC MOVE 5 TO WS-MAX-LIMIT MOVE ZERO TO WS-COUNTER IF WS-INPUT-FIELD1 = WS-FIELD-A DISPLAY 'INVALID RECORD' ELSE IF WS-INPUT-FILED1=WS-FIELD-B DISPLAY 'VALID RECORD' PERFORM 1000-DISPLAY-PARA UNTIL WS-COUNTER> WS-MAX-LIMIT MOVE WS-TOT-AMOUNT TO OUTPUT-FILE-REC WRITE OUTPUT-FILE-REC EVALUATE OUTPUT-FILE-SW WHEN ZERO-STATUS DISPLAY 'GOOD WRITE' WHEN OTHER DISPLAY 'BAD WRITE' END-EVALUATE END-IF CLOSE INPUT-FILE CLOSE OUTPUT-FILE . 1000-DISPLAY-PARA ADD WS-INPUT-FILED2(WS-COUNTER) TO WS-TOT-AMOUNT ADD 1 TO WS-COUNTER. 4. 8. 12. 16. Identify the true statements about Lines of Code per Paragraph: Metric indicates that there is either too much business logic inbuilt into paragraph or a lengthy syntax is used. Counts the number of lines. Total number of lines of code as computed for a program and divided by the number of pragraphs. Good indicator of computational complexity of a program. Traditional measure of size. Indicates Complexity involved in testing a program. Documentation and implementation comments as well as blank lines are interpreted as code lines. CR includes the comment lines as well as lines of code in the total LOC being calculated. true. false. Calculate the Lines of code per Paragraph: 1000-PARA. OPEN INPUT INPUT-FILE OPEN OUTPUT OUTPUT-FILE READ INPUT-FILE MOVE ZERO TO WS-INDX IF GOOD-READ PERFORM 2000-PARA VARYING WS-INDX FROM 1 BY 1 UNTIL WS-INDX > 5 MOVE WS-INPUT-ACCOT-NBR TO WS-OUTPUT-ACCT-NBR MOVE WS-INPUT-AMOUNT TO WS-OUTPUT-AMOUNT PERFORM 3000-DISPLAY-PARA WRITE OUTPUT-REC FROM WS-OUTPUT-REC END-IF. 2000-PARA. ADD ONE-DAY-AVAIL-AT(WS-INDX) TO WS-OUTPUT-ONE-DAY-AMT ADD IMMED-AVAIL-AMT(WS-INDX) TO WS-OUTPUT-IMMED-AMT. 3000-PARA. DISPLAY WS-OUTPUT-ACCT-NBR DISPLAY WS-OUTPUT-AMOUNT DISPLAY WS-OUTPUT-ONE-DAY-AMT DISPLAY WS-OUTPUT-IMMED-AMT. 3. 9. 12. 6. Identify the true statements about Number of executable statements per paragraph: Metric indicates that there is either too much business logic inbuilt into paragraph or a lengthy syntax is used. Counts the number of lines. A measure of program complexity from the point of view of how many statements are actually there. Good indicator of computational complexity of a program. Traditional measure of size. Indicates Complexity involved in testing a program. More number of executable statements means more operations, more test cases, etc... relating to Halstead adn McCabe. True. False. Identify the Nuber of Lines per paragraph and Number of executable lines per para in the below example: undefined1000-PARA. OPEN INPUT INPUT-FILE OPEN OUTPUT OUTPUT-FILE READ INPUT-FILE IF GOOD-READ MOVE WS-INPUT-ACCT-NBR1 TO WS-OUTPUT-ACCT-NBR1 MOVE WS-INPUT-ACCT-NBR2 TO WS-OUTPUT-ACCT-NBR2 MOVE WS-INPUT-ACCT-NBR3 TO WS-OUTPUT-ACCT-NBR3 END-IF. 11,7. 11,11. 11,5. 5,7. The use of '01' varaibles in COBOL code tells us the number of record sets defined and used. True. False. Identify the true statements about Total Number of I/O Operations Or Total Number of Types of I/O Operations: This calculation is done by CRUD matrix calculation module. Counts the number of lines. Involves expansion of COBOL lines of code including includes and copybooks. Good indicator of computational complexity of a program. Factor - Total number of Type of I/O Operations is taken for CRUD Matrix Calculation. Indicates Complexity involved in testing a program. Commented lines of code are separated out from expanded code. Then pure code remains. Factor - Total number of I/O Operations is taken for CRUD Matrix Calculation. In calculation of Total number of Data Stores accessed in CRUD Module of SEEC identify the databases whose presence is calculated separately: MQ. TSQ. IMS. IDMS. DB2. ORACLE. SYBASE. TERADATA. VSAM FILES. Identify the true statements about LOC: Metric indicates that there is either too much business logic inbuilt into paragraph or a lengthy syntax is used. Counts the number of lines. Counts the lines of code lines, that are uncommented. Good indicator of computational complexity of a program. Traditional measure of size. Includes copybook (s) and 'INCLUDE' code. |