NSCT – Debugging & Error Analysis MCQs 20 min Score: 0 Attempted: 0/20 Subscribe 1. . Debugging is: (A) The process of identifying, analyzing, and removing errors or bugs from a program (B) Encrypting code (C) Compressing files (D) Backup onlyShow All AnswersShow All Answers 2. . A syntax error occurs when: (A) Output is incorrect but no code error (B) Program logic is correct (C) The code violates the rules of the programming language (D) Backup onlyShow All Answers 3. . A runtime error occurs when: (A) Backup only (B) Code cannot compile (C) Code is encrypted (D) An error happens while the program is executing, such as division by zeroShow All Answers 4. . A logical error occurs when: (A) Backup only (B) Program does not run at all (C) Code is encrypted (D) The program runs without crashing but produces incorrect resultsShow All Answers 5. . Common debugging tools include: (A) Compression tools (B) Encryption software (C) Breakpoints, watch windows, and step execution in IDEs (D) Backup utilitiesShow All Answers 6. . Stepwise execution helps in debugging by: (A) Allowing the programmer to execute the program one line at a time to observe behavior (B) Encrypting code stepwise (C) Compressing code stepwise (D) Backup onlyShow All Answers 7. . Watch variables in debugging are used to: (A) Encrypt variables (B) Monitor changes in variable values during program execution (C) Compress variables (D) Backup onlyShow All Answers 8. . Error messages are important because: (A) Backup only (B) Encrypt error (C) Compress error (D) They indicate the type and location of a problem in the programShow All Answers 9. . Syntax errors are usually detected: (A) Backup only (B) At runtime only (C) By the operating system (D) During compilation or interpretation of the codeShow All Answers 10. . Runtime errors are detected: (A) While the program is running (B) During compilation (C) By IDE only (D) Backup onlyShow All Answers 11. . Logical errors are difficult to detect because: (A) Backup only (B) Compilation fails (C) Encryption fails (D) The program executes without crashing but produces incorrect resultsShow All Answers 12. . Exception handling helps in debugging by: (A) Backup only (B) Encrypting exceptions (C) Compressing exceptions (D) Managing runtime errors and providing informative messagesShow All Answers 13. . Unit testing assists in debugging by: (A) Backup only (B) Encrypting modules (C) Compressing modules (D) Testing individual components separately to identify errors earlyShow All Answers 14. . Common debugging strategies include: (A) Backup only (B) Encrypting code (C) Compressing code (D) Code review, inserting print statements, and using debuggersShow All Answers 15. . Traceback in error analysis provides: (A) Compressed trace (B) Encrypted trace (C) The sequence of function calls leading to an error (D) Backup onlyShow All Answers 16. . Off-by-one errors commonly occur in: (A) Encryption algorithms (B) Loops and array indexing (C) File compression (D) Backup routinesShow All Answers 17. . Infinite loops are detected during debugging when: (A) Backup fails (B) Encryption fails (C) Compression stalls (D) A loop continues endlessly without terminationShow All Answers 18. . Advantages of debugging include: (A) Compression efficiency (B) Encryption speed (C) Improved program correctness, reliability, and maintainability (D) Backup safetyShow All Answers 19. . Debugging requires skills in: (A) Backup only (B) Encrypting algorithms (C) Compressing files (D) Analytical thinking, problem-solving, and understanding program logicShow All Answers 20. . The main purpose of debugging and error analysis is to: (A) Encrypt code (B) Identify, analyze, and fix program errors to ensure correct and reliable execution (C) Compress files (D) Backup tablesShow All Answers