Topics- Errors- syntax errors, logical errors, and run-time errors 1. What are syntax errors in programming? Errors that occur during program execution Errors that cause logical inconsistencies Errors that violate the rules of the programming language Errors that result in incorrect program output 2. Which of the following is an example of a syntax error? Dividing a number by zero Using an undefined variable Performing an incorrect calculation Generating an infinite loop 3. What are logical errors in programming? Errors that occur during program execution Errors that cause the program to crash Errors that result in incorrect program output Errors that violate the rules of the programming language 4. Which of the following is an example of a logical error? Forgetting to close a file after reading from it Dividing a number by zero Using an incorrect algorithm Misspelling a variable name 5. What are run-time errors in programming? Errors that occur during program execution Errors that cause logical inconsistencies Errors that violate the rules of the programming language Errors that result in incorrect program output 6. Which of the following is an example of a run-time error? Syntax error in the program Infinite loop in the program Incorrect logic in the program Division by zero in the program 7. How are syntax errors detected in programming? By the programmer during program development By the computer at compile time By the computer at run-time By running the program and analyzing the output 8. How are logical errors detected in programming? By the programmer during program development By the computer at compile time By the computer at run-time By running the program and analyzing the output 9. How are run-time errors detected in programming? By the programmer during program development By the computer at compile time By the computer at run-time By running the program and analyzing the output 10. Which type of error is most challenging to debug and fix? Syntax errors Logical errors Run-time errors All types of errors pose similar challenges Loading … Post navigation Computational Thinking and Programming-I Quiz 5 Computational Thinking and Programming-I Quiz 7