COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Two people with access to the same bank account made two separate withdrawals from the account. They made the withdrawals at the same time but at two separate bank branches. At the time of the withdrawals, the account had $400. Both people checked the account balance before making their withdrawal and saw that it was $400. One person withdrew $200, and the other person withdrew $250. Both transactions were successful. Later, the two people each received an e-mail from the bank saying that the account was overdrawn. Which of the following best describes the error in the bank software that caused this problem?
A
The bank software failed to correctly authenticate and authorize the users accessing the account.
B
The bank software erroneously allowed multiple tasks to be running at the same time.
C
The bank software erroneously allowed two different processes to access shared data at the same time
D
The bank software erroneously used virtual memory instead of physical memory to store the data.
Explanation: 

Detailed explanation-1: -Most often, joint accounts are held by one individual and a spouse or partner, family member or business partner, but it’s possible for any two people to open a joint bank account together.

Detailed explanation-2: -To access their funds, they can write checks, use ATMs, or use electronic debit or credit cards connected to their accounts. Advances in electronic banking have made checking accounts more convenient to use.

Detailed explanation-3: -And the banking facilities available to customers at branches other than the home branch are called non-home branches. If any cash transaction, such as deposit or withdrawal, is done at a non-home branch, a fee is levied. This fee varies across banks.

Detailed explanation-4: -A bank run occurs when large groups of depositors withdraw their money from banks simultaneously based on fears that the institution will become insolvent. With more people withdrawing money, banks will use up their cash reserves and ultimately end up defaulting.

There is 1 question to complete.