What is the purpose of an HTML checker?
Answer : A
The purpose of an HTML checker is to verify compliance with standards. This tool ensures that the HTML code of a web application adheres to the defined web standards, which is crucial for cross-browser compatibility, proper rendering, and avoiding common coding errors.
A unit test should be deterministic. Which option correctly describes the meaning of 'deterministic' as a characteristic of a unit test9
SELECT ONE OPTION
Answer : B
A unit test being 'deterministic' means that whenever it is run under the same conditions, it should produce the same results. This characteristic is crucial for reliable, repeatable testing outcomes that are not influenced by external factors or previous test states .
You have identified existing test cases that require re-factoring, Which is the NEXT task you should perform?
SELECT ONE OPTION
Answer : D
Once existing test cases have been identified for refactoring, the next step is typically to make changes to the internal structure of these tests to improve their maintainability. This involves revising the code or scripts to make them cleaner, more efficient, and easier to understand, which helps in maintaining them over time as the software evolves. This process may also involve updating test data or dependencies to ensure that the tests remain robust and reliable .
Which option below BEST explains the value of a test charter in exploratory testing"5
SELECT ONE OPTION
Answer : B
The value of a test charter in exploratory testing is that it provides guidance for the tester at the beginning of a test session. This helps structure the exploratory testing process by defining objectives, scope, and potential test ideas, while still allowing the flexibility inherent in this testing approach .
A major Caribbean bank typically develops their own banking software using an Agile methodology. However, for some specific components COTS software is acquired and used. The bank does not want to create a dependency on any external COTS supplier.
As part of the test approach, portability testing will be performed. Which portability sub-characteristic is especially relevant for the Caribbean bank?
Answer : C
Portability testing is concerned with how well software can be transferred from one environment to another. In the context of a bank using COTS (Commercial Off-The-Shelf) software, the sub-characteristic of replaceability becomes particularly relevant. This is because the bank does not want to create a dependency on any external COTS supplier, meaning it should be able to replace the software with another product without significant effort or operational disruption. Replaceability ensures that if needed, the bank can switch to different software, thereby mitigating the risk of supplier dependency.
Consider the pseudo code provided below:
Given the following tests, what additional test(s) (if any) would be needed in order to achieve 100% statement coverage, with the minimum number of tests?
Test 1: A = 7, B = 7, Expected output: 7
Test 2: A = 7, B = 5, Expected output: 5
Answer : D
100% statement coverage means that every line of code is executed at least once during testing. Based on the provided pseudo-code and the test cases given:
Test 1 executes the MIN = B statement when A and B are equal.
Test 2 executes the MIN = A statement and skips the inner IF since B is not equal to 2*A.
All statements within the code have been executed by these two tests, hence no additional test cases are needed to achieve 100% statement coverage.
A new Payroll system calculates the amount of tax that each employee must pay (TaxToPay) on their gross monthly salary (in (), and the net salary (NetSal) that they will receive after that amount of tax has been deducted It also calculates the amounts of tax (TaxPdYTD) and net salary (SalPdYTD) paid in the year to date (YTD) by adding them to the stored amounts from last month (for month 1 these will be zero), inputs Include Employee id (Empid) and Gross Salary this month (GrossSal). Tax Rate is looked up on the key of Employee Id, the amounts of tax and net salary paid in the year to date are looked up on the key of (Employee Id and [month * 1]) except that for month 1 they will be zero.
if both employees were paid the same in month 1 as in the current month 2. for which tax has now to be calculated, which data-driven input and expected output table is correct for this situation?
Table 1
Month Empid GrossSal TaxRate TaxToPay NetSal TaxPdYTD
2 1 2000 15 300 1700 600
2 2 2200 20 440 1760 880
Table 2
Month Empid GrossSal TaxRate TaxToPay NetSal SalPdYTD
2 1 2000 0.15 300 1700 600
2 2 2200 0.2 440 1760 880
Table 3
Month Empid GrossSal TaxToPay NetSal TaxPdYTD SalPdYTD
1 1 2000 300 1700 600 3400
1 2 2200 440 1760 880 3520
Table 4
Month Empid GrossSal TaxToPay NetSal TaxPdYTD SalPdYTD
2 1 2000 300 1700 600 3400
2 2 2200 440 1760 880 3520
SELECT ONE OPTION
Answer : D
Table 2 correctly represents the calculation of tax to pay and net salary for employees of a Payroll system, including accurate representation of tax rates as percentages (not whole numbers), and the correct year-to-date accumulation of salary paid, which aligns with the payroll system's operations as described. It accounts for the logical incrementation of cumulative figures and uses percentage representations for tax rates, which is a standard approach in payroll calculations .