2. For example, if I delete an unsaved file in the sublime editor, a confirmation box will pop up to confirm the deletion. This is a dialog box, generated in an application, which is generally used to remind the user of some information that can't be missed, or to ask the user to confirm the next operation.
3. Give an example from real life. For example, if we go to the bank for business, there will be several windows in the bank. For example, windows for card handling, time deposit and withdrawal, transfer and foreign exchange. At this time, each window corresponds to different functions, which are embodied in the computer and may be different applications. After entering a window, the salesman will ask us if we have an ID card. This is equivalent to a dialog box, which is generated under a certain window and needs further confirmation from the user before continuing the following process.