A log file is a dedicated file designed to record system events, including errors. By storing error information in a log file, the operating system can provide a detailed record of the issue for later analysis, troubleshooting, and debugging. This helps system administrators and developers identify the root cause of problems and implement solutions.
Creating a new file for each error would be inefficient and impractical. Writing to another running process could interfere with its operation and potentially cause further issues.
If you think there is any confusion in the given MCQs, you can comment below.
docmcqs.com is Pakistan's No.1 online platform for preparing for all types of exams including PPSC, FPSC, KPSC, SPSC, Ministry of Defence, and for one-paper MCQs. This includes Pedagogy MCQs, general knowledge MCQs, current affairs MCQs, and much more.