190 Chapter 8 ■ Software Development Security (Domain 8)
- In the transaction shown here, what would happen if the database failed in between the
first and second update statements?
A. The database would credit the first account with $250 in funds but then not reduce
the balance of the second account.
B. The database would ignore the first command and only reduce the balance of the sec-
ond account by $250.
C. The database would roll back the transaction, ignoring the results of both commands.
D. The database would successfully execute both commands.
- In the diagram shown here, which is an example of an attribute?
Account
Balance: currency = 0
Owner: string
AddFunds(deposit: currency)
RemoveFunds(withdrawal: currency)
A. Account
B. Owner
C. AddFunds
D. None of the above
- Which one of the following statements is true about software testing?
A. Static testing works on runtime environments.
B. Static testing performs code analysis.
C. Dynamic testing uses automated tools, but static testing does not.
D. Static testing is a more important testing technique than dynamic testing.