This quiz works best with JavaScript enabled. Home > Grammar > Syntax > Syntax – Quiz 23 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Syntax Quiz 23 (30 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What is likely the cause if you receive a 'syntax error' message? A) The code is perfectly fine. B) The programming language has changed. C) There's an issue with how the information was entered. D) The computer is malfunctioning. Show Answer Correct Answer: C) There's an issue with how the information was entered. 2. Which of the following sentences is an example of a hyperbole? A) I'm so hungry I could eat a horse. B) I ate a big meal. C) I am very hungry. D) I could eat a lot. Show Answer Correct Answer: A) I'm so hungry I could eat a horse. 3. A student writes the following sentence on the board:I am going to beach tomorrow. What is the sentence mistakenly missing? A) Future verb tense. B) Adverb. C) Determiner. D) A subject. Show Answer Correct Answer: C) Determiner. 4. $\rightarrow$ begin end A) A Java programming statement. B) A C++ programming statement. C) A javascript programming statement. D) Is an example of a grammar rule, also called a production. Show Answer Correct Answer: D) Is an example of a grammar rule, also called a production. 5. How does the choice of diction in a narrative affect the reader's perception of a character's personality? A) It creates a visual image of the character's appearance. B) It influences the reader's emotional response to the character. C) It determines the plot structure of the narrative. D) It has no impact on the reader's perception. Show Answer Correct Answer: B) It influences the reader's emotional response to the character. 6. Is the verb be an auxiliary in the sentence below?He is kind-hearted. A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: B) No. 7. What grammatical element is repeated in the following sentence? When I am too tired to get up in the morning, when I have forgotten to do my homework, and when I have nothing to wear, I usually ask my mom if I can stay home from school. A) Dependent clause. B) Infinitive phrase. C) Noun phrase. D) Independent clause. Show Answer Correct Answer: A) Dependent clause. 8. Sentence structure controls ..... and ..... A) Spelling and grammar. B) Verbal pacing and focus. C) Meaning and understanding. D) None of the above. Show Answer Correct Answer: B) Verbal pacing and focus. 9. Identify the incorrect sentence in terms of syntax. A) He doesn't like ice cream. B) He not like ice cream. C) He don't like ice cream. D) He don't likes ice cream. Show Answer Correct Answer: C) He don't like ice cream. 10. What is the difference between diction and syntax? A) Diction has to do with sentences, and syntax has to do with word choice. B) Syntax has to do with sentences, and diction has to do with word choice. C) Diction has to do with style, but syntax does not. D) Syntax has to do with style, but diction does not. Show Answer Correct Answer: B) Syntax has to do with sentences, and diction has to do with word choice. 11. What type of sentence is the following:Joe ran the race. A) Complex. B) Compound. C) Compound-complex. D) Simple. Show Answer Correct Answer: D) Simple. 12. Which method is used to find the minimum value between two numbers in Java? A) Min(). B) Math.min(). C) Minimum(). D) None. Show Answer Correct Answer: B) Math.min(). 13. What is the coordinate clause?When Ambika moved to the United States, she was five years old. A) When Ambika moved to the United States,. B) She was five years old. C) All the above. D) None of the above. Show Answer Correct Answer: B) She was five years old. 14. Using System means that we can use classes from the System namespace. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 15. How many individual variables are in this code?name = "Goofy"age = "21"holiday = "Disney"print("Hi", name, "I see you are", age, "would you like to go to" holiday, ''?") A) 1. B) 2. C) 3. D) 4. Show Answer Correct Answer: C) 3. 16. What does the casual, slang-filled diction of Dally reveal about his personality in Chapter 3? A) He is refined and thoughtful in his speech. B) He is a rebellious and brash character who rejects societal norms. C) He tries to communicate with the Socs in their own language. D) He is careful and precise in the way he speaks. Show Answer Correct Answer: B) He is a rebellious and brash character who rejects societal norms. 17. Rewrite the sentence using inverted syntax:'The flowers bloomed in spring.' A) In spring bloomed the flowers. B) The flowers in spring bloomed. C) Bloomed in spring the flowers. D) Spring the flowers bloomed in. Show Answer Correct Answer: A) In spring bloomed the flowers. 18. The abstraction being defined A) In BNF:left-hand side. B) In BNF:right-hand side. C) In BNF:LHS and RHS. D) Nonterminal. E) Terminal. Show Answer Correct Answer: A) In BNF:left-hand side. 19. Identify the sentence with inverted syntax:Running through the field, the horse galloped. The horse galloped through the field. The horse through the field galloped. A) Galloped the horse through the field. B) The horse ran through the field galloped. C) Galloped through the field, the horse ran. D) The horse through the field galloped. Show Answer Correct Answer: D) The horse through the field galloped. 20. How does syntax rewriting affect the tone of a sentence? A) It can make the tone more formal or informal. B) It always makes the tone more formal. C) It always makes the tone more informal. D) It does not affect the tone. Show Answer Correct Answer: A) It can make the tone more formal or informal. 21. Python uses indentation to indicate a block of code. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 22. What symbol is used at the beginning of an in-line comment? A) ''. B) !. C) #. D) /. Show Answer Correct Answer: C) #. 23. Used to indicate a sudden break in thought, to set off parenthetical material A) Colon. B) Semicolon. C) Dash. D) Parenthesis. Show Answer Correct Answer: C) Dash. 24. How could you describe the author's diction in this excerpt?The way he primps and preens and dresses like the pits of fashionOur poorest citizens, our farmers, live ration to ration A) Passionate-carrying strong feelings or beliefs. B) Simple-clear, short, and easy. C) Euphemistic-polite substitute for a less polite word; sometimes insincere. D) Ambiguous-open to interpretation; lacking obvious meaning. Show Answer Correct Answer: A) Passionate-carrying strong feelings or beliefs. 25. True or false:An image can have syntax. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 26. Which sentence is an example of a metaphor? A) The stars were like diamonds in the sky. B) The stars are diamonds in the sky. C) The stars twinkled in the sky. D) The stars were as bright as diamonds. Show Answer Correct Answer: B) The stars are diamonds in the sky. 27. Which word is ADJUNCT in the following sentence: "A old beggar put his food on the sidewalk." ? A) OLD. B) BEGGAR. C) HIS. D) THE SIDEWALK. Show Answer Correct Answer: A) OLD. 28. Changing the value of a variable A) Reassign. B) Comment. C) Modulo. D) Boolean. Show Answer Correct Answer: A) Reassign. 29. What is the Minimalist Syntax? A) A linguistic framework that seeks to simplify the rules governing sentence structure. B) A method for analyzing phonetic sounds in language. C) All the above. D) None of the above. Show Answer Correct Answer: A) A linguistic framework that seeks to simplify the rules governing sentence structure. 30. What is the purpose of using precise diction in writing? A) To confuse the reader. B) To convey ideas accurately and effectively. C) To make the writing more vague. D) To add unnecessary complexity. Show Answer Correct Answer: B) To convey ideas accurately and effectively. ← PreviousNext →Related QuizzesGrammar QuizzesSyntax Quiz 1Syntax Quiz 2Syntax Quiz 3Syntax Quiz 4Syntax Quiz 5Syntax Quiz 6Syntax Quiz 7Syntax Quiz 8Syntax Quiz 9 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books