This quiz works best with JavaScript enabled. Home > English Grammar > Grammar > Syntax > Syntax – Quiz 4 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Syntax Quiz 4 (60 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Expresses strong emotion A) Declarative. B) Exclamatory. C) Interrogative. D) Imperative. Show Answer Correct Answer: B) Exclamatory. 2. How do we change a user input from string to integer? A) Casing. B) Casting. C) Numerising. D) Flipping. Show Answer Correct Answer: B) Casting. 3. Identify the type of phrase in brackets: A) Verb phrase. B) Adjective phrase. C) Adverb phrase. D) Noun phrase. Show Answer Correct Answer: D) Noun phrase. 4. 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. 5. Which statement is used to skip the current iteration of a loop in Java? A) Break. B) Default. C) Continue. D) For. Show Answer Correct Answer: C) Continue. 6. 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. 7. "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) Gender. B) Number. C) Tense. D) Person. Show Answer Correct Answer: C) Tense. 8. Choose the option in which you find manner adverbs. A) Quickly, Easily, Happily. B) Then, However, Furthermore. C) Well, Hard, Fast. D) Always, Completely, Slowly. Show Answer Correct Answer: A) Quickly, Easily, Happily. 9. 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. 10. 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) There's a syntax error, possibly a missing parenthesis. D) The file is empty. Show Answer Correct Answer: C) There's a syntax error, possibly a missing parenthesis. 11. Developed by Noam Chomsky, language generators, used to describe the syntax of natural language A) Backus-Naur Form. B) Context-free grammar. C) Attribute Grammars. D) Parse Tree. Show Answer Correct Answer: B) Context-free grammar. 12. Which of the following is the correct verb phrase structure rule? A) VP $\rightarrow$ V AdvP. B) VP $\rightarrow$ (V) NP (NP) (AP+). C) VP $\rightarrow$ (AdvP+) V (NP ) (NP) (AdvP+) PP+ (AdvP+). D) VP $\rightarrow$ (AdvP+) V (NP) (NP) (AdvP+). Show Answer Correct Answer: D) VP $\rightarrow$ (AdvP+) V (NP) (NP) (AdvP+). 13. 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. 14. 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. 15. 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. 16. 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: C) If answer == "Yes":. 17. 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) Ellipsis. B) Anaphora. C) Asyndeton. D) Polysyndeton. Show Answer Correct Answer: B) Anaphora. 18. 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. 19. 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. 20. 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. 21. 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. 22. (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. 23. Which operator is used to write repeated terminals/non-terminals? A) ( ). B) { }. C) [ ]. D) None of the Above. Show Answer Correct Answer: B) { }. 24. 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. 25. Tantae irae animis caelestibus A) Some anger in heaven. B) Anger so great in heavenly souls. C) Souls of anger in such a heaven. D) Twenty angry souls in heaven. Show Answer Correct Answer: D) Twenty angry souls in heaven. 26. Name the kind of test. Birds wake me up every day at 5 o'clock in spring. Who wakes me up every day at 5 o'clock in spring? [birds] A) Sentence fragment. B) Gapping. C) Coordination. D) Pronominalization. Show Answer Correct Answer: A) Sentence fragment. 27. Syntactic complexity ..... when a topic is familiar A) Increases. B) Decreases. C) All the above. D) None of the above. Show Answer Correct Answer: A) Increases. 28. What is the correct form of the sentence in simple present tense? A) She going to school every day. B) She go to school every day. C) She is going to school every day. D) She goes to school every day. Show Answer Correct Answer: D) She goes to school every day. 29. Complete the sentences with the correct option below:He ..... corrected his mistake. A) Perhaps. B) Well. C) Quickly. D) Daily. Show Answer Correct Answer: C) Quickly. 30. What special type of sentence is the following: "What happens to a dream deferred?" A) Antithesis. B) Rhetorical question. C) Cumulative. D) Periodic. Show Answer Correct Answer: B) Rhetorical question. 31. What is the function of a semicolon in a sentence? A) To introduce a list. B) To end a sentence. C) To connect two independent clauses. D) To indicate a pause. Show Answer Correct Answer: C) To connect two independent clauses. 32. What is the role of syntax rewriting in reading comprehension? A) To simplify complex sentences for better understanding. B) To make sentences more complex. C) To change the meaning of a text. D) To add more information to a text. Show Answer Correct Answer: A) To simplify complex sentences for better understanding. 33. (Passage #3) Is the tone appropriate for this excerpt? A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: A) Yes. 34. My books were returned to me after lunch. A) Active. B) Passive. C) All the above. D) None of the above. Show Answer Correct Answer: B) Passive. 35. Cur ..... regina deorum virum impulerit ..... (perfect active subjunctive) A) Why did the king of the gods and men impulse ?. B) Who is the queen of the gods?. C) Why did the gods rule men?. D) Why would the queen of the gods drive a man ?. Show Answer Correct Answer: D) Why would the queen of the gods drive a man ?. 36. From the relationship between verb and tense; verbs are categorized into ..... A) Finite verb and Non-finite verb. B) Main verb and helping verb. C) Lexical verb and Auxiliaries verb. D) None of the above. Show Answer Correct Answer: A) Finite verb and Non-finite verb. 37. Identify the phrase "in Indian restaurants" in the following sentence.I enjoy eating in Indian restaurants. A) Verb Phrase. B) Noun Phrase. C) Prepositional Phrase. D) Adverb Phrase. E) Adjective Phrase. Show Answer Correct Answer: C) Prepositional Phrase. 38. Which keyword is used to define a method in Java that does not return? A) Class. B) Void. C) Return. D) This. Show Answer Correct Answer: B) Void. 39. What special type of sentence is the following:Wolves are important in a habitat because they control the numbers of elk, which in turn allows trees to mature, so they can offer shelter to birds and insects. A) Inverted. B) Periodic. C) Triadic. D) Cumulative. Show Answer Correct Answer: D) Cumulative. 40. What does CSS stand for? A) Computer Style Sheets. B) Cascading Style Sheets. C) Cascading Style Standard. D) Computer Style Standard. Show Answer Correct Answer: B) Cascading Style Sheets. 41. Repetition of the INITIAL part of a clause or sentence at the end of that same clause or sentence. A) Epistrophe. B) Antimetabole. C) Epanalepsis. D) Anadiplosis. Show Answer Correct Answer: C) Epanalepsis. 42. Which principle explains why we prefer "He runs" over "He does run" ? A) Economy. B) Move. C) All the above. D) None of the above. Show Answer Correct Answer: A) Economy. 43. Identify the type of sentence:** ..... Can you help me with this? ..... ** A) Imperative. B) Interrogative. C) Declarative. D) Exclamatory. Show Answer Correct Answer: B) Interrogative. 44. Identify the literary device:'The wind whispered through the trees.' A) Personification. B) Simile. C) Hyperbole. D) Metaphor. Show Answer Correct Answer: A) Personification. 45. "We always play football after work."Which is a prepositional phrase? A) After work. B) Always play football. C) All the above. D) None of the above. Show Answer Correct Answer: A) After work. 46. Which word should go in the blank to complete the sentence correctly? We have been waiting ..... hours. A) At. B) On. C) In. D) For. Show Answer Correct Answer: D) For. 47. How many fundamental operations does the Minimalist Program emphasize? A) Two. B) Three. C) All the above. D) None of the above. Show Answer Correct Answer: A) Two. 48. What will the output be of this code?print"Hello World" A) Hello World. B) "Hello World". C) Syntax error. D) None of the above. Show Answer Correct Answer: C) Syntax error. 49. Runs code line by line and checks for errors A) Modulo. B) Variable. C) Interpreter. D) Boolean. Show Answer Correct Answer: C) Interpreter. 50. Select the sentence with inverted syntax:'In the garden were blooming roses.' A) Normal Word Order. B) Inverted Word Order. C) Neither. D) Both. Show Answer Correct Answer: B) Inverted Word Order. 51. (Passage #2) Is the connotation of the word laughable positive or negative? A) Positive. B) Negative. C) All the above. D) None of the above. Show Answer Correct Answer: B) Negative. 52. Which of the following words would be helpful in starting a subject-verb sentence? A) Quickly. B) Explaining. C) Jefferson. D) Over. Show Answer Correct Answer: C) Jefferson. 53. Pyscripter is an example of a Python ..... A) Interpreter. B) Executor. C) Algorithm. D) Identifier. Show Answer Correct Answer: A) Interpreter. 54. What is word choice called A) Diction. B) Vocabulary. C) Syntax. D) Grammar. Show Answer Correct Answer: A) Diction. 55. How many constituents do we have on the sentence given.The boy hit the ball. A) 1. B) 2. C) 3. D) None of the above. Show Answer Correct Answer: C) 3. 56. The officer did nothing about the accident. A) Active. B) Passive. C) All the above. D) None of the above. Show Answer Correct Answer: A) Active. 57. Identify the sentence core of the following lyric: "When she opened up the door, he ran." A) He ran. B) She opened. C) Door ran. D) She ran. Show Answer Correct Answer: A) He ran. 58. Mood can best be described as: A) Author's attitude. B) Feelings and emotions of a text. C) Author's opinion. D) Author's audience. Show Answer Correct Answer: B) Feelings and emotions of a text. 59. Posthabita Samo (abl abs) A) With Samos being left behind. B) For the habitation of Sami. C) Sammy left her behind. D) Her old habit Samos. Show Answer Correct Answer: A) With Samos being left behind. 60. What is the correct way to declare a constant variable in Java? A) Final double PI = 3.14;. B) Float PI = 3.14;. C) Double PI = 3.14;. D) Final int PI = 3.14;. Show Answer Correct Answer: A) Final double PI = 3.14;. ← PreviousNext →Related QuizzesGrammar QuizzesEnglish Grammar QuizzesSyntax Quiz 1Syntax Quiz 2Syntax Quiz 3Syntax Quiz 5Syntax Quiz 6Syntax Quiz 7Syntax Quiz 8Syntax Quiz 9 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books