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 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 only 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 zero 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 results 5. . Common debugging tools include: (A) Compression tools (B) Encryption software (C) Breakpoints, watch windows, and step execution in IDEs (D) Backup utilities 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 only 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 only 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 program 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 code 10. . Runtime errors are detected: (A) While the program is running (B) During compilation (C) By IDE only (D) Backup only 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 results 12. . Exception handling helps in debugging by: (A) Backup only (B) Encrypting exceptions (C) Compressing exceptions (D) Managing runtime errors and providing informative messages 13. . Unit testing assists in debugging by: (A) Backup only (B) Encrypting modules (C) Compressing modules (D) Testing individual components separately to identify errors early 14. . Common debugging strategies include: (A) Backup only (B) Encrypting code (C) Compressing code (D) Code review, inserting print statements, and using debuggers 15. . Traceback in error analysis provides: (A) Compressed trace (B) Encrypted trace (C) The sequence of function calls leading to an error (D) Backup only 16. . Off-by-one errors commonly occur in: (A) Encryption algorithms (B) Loops and array indexing (C) File compression (D) Backup routines 17. . Infinite loops are detected during debugging when: (A) Backup fails (B) Encryption fails (C) Compression stalls (D) A loop continues endlessly without termination 18. . Advantages of debugging include: (A) Compression efficiency (B) Encryption speed (C) Improved program correctness, reliability, and maintainability (D) Backup safety 19. . Debugging requires skills in: (A) Backup only (B) Encrypting algorithms (C) Compressing files (D) Analytical thinking, problem-solving, and understanding program logic 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 tables