Computational Thinking and Programming-I Quiz 6 May 29, 2023May 29, 2023 by Jitendra SinghTopics- Errors- syntax errors, logical errors, and run-time errors1. 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 output2. 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 loop3. 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 language4. 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 name5. 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 output6. 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 program7. 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 output8. 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 output9. 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 output10. 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 …