This quiz works best with JavaScript enabled. Home > Grammar > Syntax > Syntax – Quiz 2 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Syntax Quiz 2 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What is the purpose of the symbol table in a compiler? A) To optimize code. B) To generate machine code. C) To store information about identifiers. D) To parse tokens. Show Answer Correct Answer: C) To store information about identifiers. 2. Console.Write();What does? A) Prints on the console on a new line. B) Read from the console. C) Prints on the console not in a new line. D) Reads and then prints on the console on a new line. Show Answer Correct Answer: C) Prints on the console not in a new line. 3. In the following sentence, what is the verb phrase?A cat eats a mouse. A) A cat. B) Eats a mouse. C) All the above. D) None of the above. Show Answer Correct Answer: B) Eats a mouse. 4. How can syntax rewriting aid in literary analysis? A) By revealing underlying themes through sentence structure. B) By changing the plot of a story. C) By altering character development. D) By modifying the setting. Show Answer Correct Answer: A) By revealing underlying themes through sentence structure. 5. A sentence that gives a demand. A) Imperative. B) Declarative. C) Interrogative. D) Exclamatory. Show Answer Correct Answer: A) Imperative. 6. Identify the sentence with a dangling modifier:'Walking to the store, the rain started to fall.' A) Walking to the store, the rain started to fall. B) Walking to the store, I saw the rain start to fall. C) I was walking to the store when the rain started to fall. D) The rain started to fall as I walked to the store. Show Answer Correct Answer: A) Walking to the store, the rain started to fall. 7. Lady Macbeth convinced her unwilling husband to murder the King while he slept, and she volunteered to drug the guards for him. A) Complex. B) Compound. C) All the above. D) None of the above. Show Answer Correct Answer: B) Compound. 8. Tom was very unlucky. It rained / was raining every day during his holidays. A) Rained. B) Was raining. C) All the above. D) None of the above. Show Answer Correct Answer: B) Was raining. 9. What is NOT an example of a content word? A) A noun. B) A pronoun. C) A verb. D) An adverb. Show Answer Correct Answer: B) A pronoun. 10. Identify the sentence with varied syntax. A) She ran quickly. B) Quickly, she ran. C) She quickly ran. D) She ran, quickly. Show Answer Correct Answer: B) Quickly, she ran. 11. Which of the following sentences uses inverted syntax? Over the hill, the sun rose. The sun rose over the hill. Rose the sun over the hill. A) Over the hill, the sun rose. B) The sun rose over the hill. C) Rose the sun over the hill. D) The hill rose over the sun. Show Answer Correct Answer: A) Over the hill, the sun rose. 12. Identify the type of phrase in brackets:Don't you have to leave [early]? A) Adverb phrase. B) Verb phrase. C) Adjective phrase. D) Noun phrase. Show Answer Correct Answer: A) Adverb phrase. 13. When we were in Bulgaria, we ..... skiing almost every day. A) Went. B) Were going. C) All the above. D) None of the above. Show Answer Correct Answer: A) Went. 14. If you omit the using System line, you would have to write Console.WriteLine() to print/output text. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 15. TRUE or FALSE:The empty determiner gives the NP an indefinite and/or more general interpretation. A) A. True. B) C. False. C) All the above. D) None of the above. Show Answer Correct Answer: A) A. True. 16. Which operator checks if a value is equal to another value? A) +. B) =. C) ==. D) !=. Show Answer Correct Answer: C) ==. 17. EX:He was a bag of bones, a floppy doll, a broken stick, a maniac.-On the Road by Jack Kerouac A) Asyndeton. B) Ellipsis. C) Polysendeton. D) Anaphora. Show Answer Correct Answer: A) Asyndeton. 18. What is the main function of a preposition in a sentence? A) To show action. B) To connect clauses. C) To indicate location or time. D) To modify a noun. Show Answer Correct Answer: C) To indicate location or time. 19. Which of the following sentences is an example of correct English syntax? A) She go to the store yesterday. B) She goes to the store yesterday. C) She went to the store yesterday. D) She going to the store yesterday. Show Answer Correct Answer: C) She went to the store yesterday. 20. What is the principle of Economy in the Minimalist Program? A) The idea that linguistic structures should be as complex as possible. B) The idea that linguistic structures should be as simple as possible. C) All the above. D) None of the above. Show Answer Correct Answer: B) The idea that linguistic structures should be as simple as possible. 21. What is informal diction? A) Casual, everyday language, usually with short words. B) Fancy or formal language, usually with long sentences. C) Fancy or formal language, but really short sentences. D) Casual, everyday language, usually with long sentences. Show Answer Correct Answer: A) Casual, everyday language, usually with short words. 22. Which of the following functions is used to get information from the user of a program? A) Input(). B) Print(). C) Import. D) Eval(). Show Answer Correct Answer: A) Input(). 23. Which method is used to convert a string to an integer in Java? A) ToInteger(). B) ParseInteger(). C) ConvertToInt(). D) ParseInt(). Show Answer Correct Answer: D) ParseInt(). 24. 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)She might drive down my street. A) PRN, AUX, V, P, DET, N. B) DET, N, PRN, AUX, V, P,. C) AUX, V, P, DET, N, PRN. D) None of the above. Show Answer Correct Answer: A) PRN, AUX, V, P, DET, N. 25. Determine the voice of the following sentence:We must warn them of the danger! A) Active. B) Passive. C) All the above. D) None of the above. Show Answer Correct Answer: A) Active. ← PreviousNext →Related QuizzesGrammar QuizzesSyntax Quiz 1Syntax Quiz 3Syntax Quiz 4Syntax Quiz 5Syntax Quiz 6Syntax Quiz 7Syntax Quiz 8Syntax Quiz 9Syntax Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books