This quiz works best with JavaScript enabled. Home > English Grammar > Grammar > Syntax > Syntax – Quiz 7 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Syntax Quiz 7 (30 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Classify each word in the sentence according to the categories:N (noun), V (verb), A (adjective), P (preposition), DET for (determiner), PRN (pronoun), AUX (auxiliary)Down fills the best duvets. A) V, DET, N, A, N. B) N, V, DET, A, N. C) A, N, V, DET, N. D) None of the above. Show Answer Correct Answer: B) N, V, DET, A, N. 2. Class is a container for data and methods, which brings functionality to your program. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 3. We call the group of coordinating conjunctions that link independent clauses to create compound sentences A) POWER. B) ABCDE. C) RIGHT. D) FANBOYS. Show Answer Correct Answer: D) FANBOYS. 4. In Python coding what does the instruction PRINT do? A) Add together two numbers. B) Print a statement on the screen. C) Instruct a printer to work. D) Input a number. Show Answer Correct Answer: B) Print a statement on the screen. 5. I went to the store however I forgot the tomatoes.Which is the correct punctuation? A) Store; however,. B) It's correct how it is. C) Store, however,. D) However,. Show Answer Correct Answer: A) Store; however,. 6. Although Macbeth was the King's most trusted warrior, Macbeth stabbed him to death. A) Compound. B) Complex. C) All the above. D) None of the above. Show Answer Correct Answer: B) Complex. 7. Expresses strong emotion A) Declarative. B) Interrogative. C) Imperative. D) Exclamatory. Show Answer Correct Answer: D) Exclamatory. 8. How do we change a user input from string to integer? A) Flipping. B) Numerising. C) Casing. D) Casting. Show Answer Correct Answer: D) Casting. 9. Identify the type of phrase in brackets: A) Adverb phrase. B) Noun phrase. C) Adjective phrase. D) Verb phrase. Show Answer Correct Answer: B) Noun phrase. 10. Change the active voice sentence to passive voice.Julie answered the question. A) Julie was answered the question. B) The question was answered by Jill. C) The question was answered by Julie. D) None of the above. Show Answer Correct Answer: C) The question was answered by Julie. 11. Which statement is used to skip the current iteration of a loop in Java? A) Continue. B) For. C) Break. D) Default. Show Answer Correct Answer: A) Continue. 12. You have to use the same number of spaces in the same block of code, otherwise Python will give you an error. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 13. "When I arrive in the United States, the first three months for me here were the most difficult experience in my life ..... " The verb arrive in the first line is incorrect with respect to A) Number. B) Gender. C) Tense. D) Person. Show Answer Correct Answer: C) Tense. 14. Choose the option in which you find manner adverbs. A) Quickly, Easily, Happily. B) Always, Completely, Slowly. C) Well, Hard, Fast. D) Then, However, Furthermore. Show Answer Correct Answer: A) Quickly, Easily, Happily. 15. Although Macbeth's loyalty to the King was strong, his wife proved more persuasive. A) Complex. B) Compound. C) All the above. D) None of the above. Show Answer Correct Answer: A) Complex. 16. What does an 'unexpected end of file' error message mean? A) The file is too large to be processed. B) The file has been deleted. C) The file is empty. D) There's a syntax error, possibly a missing parenthesis. Show Answer Correct Answer: D) There's a syntax error, possibly a missing parenthesis. 17. Developed by Noam Chomsky, language generators, used to describe the syntax of natural language A) Parse Tree. B) Attribute Grammars. C) Context-free grammar. D) Backus-Naur Form. Show Answer Correct Answer: C) Context-free grammar. 18. Which of the following is the correct verb phrase structure rule? A) VP $\rightarrow$ (AdvP+) V (NP) (NP) (AdvP+). B) VP $\rightarrow$ V AdvP. C) VP $\rightarrow$ (V) NP (NP) (AP+). D) VP $\rightarrow$ (AdvP+) V (NP ) (NP) (AdvP+) PP+ (AdvP+). Show Answer Correct Answer: A) VP $\rightarrow$ (AdvP+) V (NP) (NP) (AdvP+). 19. What is the correct order of adjectives in the sentence:'She bought a ..... car.' A) Red, small, Italian. B) Italian, small, red. C) Small, red, Italian. D) Red, Italian, small. Show Answer Correct Answer: C) Small, red, Italian. 20. If you want more than one option for your code, what do you use (after if)? A) Elif. B) Else. C) Ifif. D) None of the above. Show Answer Correct Answer: A) Elif. 21. The classification of words into categories or parts of speech is an ..... of language. A) Observable aspect. B) Unobservable theory. C) All the above. D) None of the above. Show Answer Correct Answer: B) Unobservable theory. 22. Which of these would work as a piece of code? A) If answer = "yes":. B) If answer == "Yes":. C) If answer == "Yes". D) IF answer == "Yes":. Show Answer Correct Answer: B) If answer == "Yes":. 23. EX:It rained on his lousy tombstone, and it rained on the grass on his stomach. It rained all over the place.-The Catcher in the Rye, J.D. Salinger A) Polysyndeton. B) Ellipsis. C) Asyndeton. D) Anaphora. Show Answer Correct Answer: D) Anaphora. 24. What is the proper syntax for Python comments? A) # Python Comment. B) Python comment . C) /* Python Comment */. D) Show Answer Correct Answer: A) # Python Comment. 25. How does Hinton use punctuation to affect the pace of Ponyboy's thoughts in Chapter 3? A) Long, flowing sentences slow down the pacing and emphasize reflection. B) Short, rapid sentences increase the pacing, making it feel urgent and chaotic. C) Simple punctuation makes the scene feel calm and uneventful. D) Complex punctuation makes the thoughts unclear and fragmented. Show Answer Correct Answer: B) Short, rapid sentences increase the pacing, making it feel urgent and chaotic. 26. How can documentation and code examples prevent syntax errors? A) By providing correct syntax usage and examples. B) By entertaining the programmer. C) By changing the syntax rules. D) By automatically correcting errors in the code. Show Answer Correct Answer: A) By providing correct syntax usage and examples. 27. Choose the sentence that begins with a subject and verb. A) Under the covers, there was just enough light to read. B) My mother told me it was time for bed. C) Slyly, I read my book with a flashlight. D) Because I was in the middle of a good book, I did not want to stop reading. Show Answer Correct Answer: B) My mother told me it was time for bed. 28. (Passage #1) Is the connotation of the word relentlessly in paragraph 1 positive or negative? A) Positive. B) Negative. C) All the above. D) None of the above. Show Answer Correct Answer: B) Negative. 29. Which operator is used to write repeated terminals/non-terminals? A) ( ). B) { }. C) [ ]. D) None of the Above. Show Answer Correct Answer: B) { }. 30. Keywords like final cannot be used as identifiers because they are the reserved keywords. True or False? A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. ← PreviousNext →Related QuizzesGrammar QuizzesEnglish Grammar QuizzesSyntax Quiz 1Syntax Quiz 2Syntax Quiz 3Syntax Quiz 4Syntax Quiz 5Syntax Quiz 6Syntax Quiz 8Syntax Quiz 9 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books