This quiz works best with JavaScript enabled. Home > English Grammar > Grammar > Syntax > Syntax And Logic Errors – Quiz 2 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Syntax And Logic Errors Quiz 2 (14 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Syntax errors are caused by incorrectly typed source code. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 2. Using incorrectly named programming functions is an example of what type of error A) Syntax Error. B) Logic Error. C) All the above. D) None of the above. Show Answer Correct Answer: A) Syntax Error. 3. Go to:https://apclassroom.collegeboard.org/d/81ryd5zt11?sui=8, 1I will be checking if you watched the entire video.Select the statement that does NOT contain a syntax error. A) System.out.println("Hello World"). B) System.out.println("Hello World");. C) System.out.println("hello world");. D) System.out.printl("Hello World");. Show Answer Correct Answer: C) System.out.println("hello world");. 4. A program will compile if there is a syntax error. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 5. Which statement contains a syntax error A) Print("HELLO"). B) PRINT("Hello"). C) Print("Hello"). D) Print("hello"). Show Answer Correct Answer: B) PRINT("Hello"). 6. What is iterative testing? A) Testing completed after an error is found. B) Random tests on a computer program. C) Test completed as the program is being coded. D) Test which are planned. Show Answer Correct Answer: C) Test completed as the program is being coded. 7. What type of error is the use of 'and' instead of 'or' in the while statement? A) Syntax Error. B) Semantic Error. C) Runtime Error. D) Logic Error. Show Answer Correct Answer: D) Logic Error. 8. If there is a logic error in the code, the program will NOT run. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 9. Testing while coding a program is called? A) Terminal Testing. B) Coder Testing. C) Iterative Testing. D) Development Testing. Show Answer Correct Answer: C) Iterative Testing. 10. What is the purpose of the while loop in the program? A) To save the game. B) To validate the input. C) To play a new game. D) To print the menu commands. Show Answer Correct Answer: B) To validate the input. 11. A program will still run even with this type of error A) Syntax Error. B) Logic Error. C) All the above. D) None of the above. Show Answer Correct Answer: B) Logic Error. 12. If num < 5:print("The number is larger than 5") A) Syntax Error. B) Logic Error. C) All the above. D) None of the above. Show Answer Correct Answer: B) Logic Error. 13. What type of input is accepted by the program even though it should be considered invalid? A) No input. B) Symbol input. C) Negative number input. D) Character input. Show Answer Correct Answer: D) Character input. 14. Modern IDEs can spot syntax errors are you type your code A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. ← PreviousRelated QuizzesGrammar QuizzesEnglish Grammar QuizzesSyntax And Logic Errors Quiz 1Subordination QuizSyntactic Transformations QuizSyntax QuizWord Order Adjectives QuizWord Order And Adverbs QuizWord Order Sentences Quiz 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books