Multiple choice technology programming languages

What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time ?

  1. Synchronize()

  2. Lock() and UnLock()

  3. Lock()

  4. Asynchroize()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Application.Lock() and Application.UnLock() ensure thread-safe access to Application variables by blocking other requests. Always call Lock() before reading or modifying Application state, then UnLock() afterward. Option C is incomplete - using Lock() alone would permanently block access. Options A and D are not valid Application methods.