Unit 1: Foundations of NLP and Text Processing - Practice Quiz

CSE472 — Deep Learning For Natural Language Processing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What does NLP primarily combine to help computers process human language?

Origin of NLP Easy
A. Chemistry and mathematics
B. Physics and astronomy
C. Biology and geology
D. Linguistics and computer science

2 What is grammar in a language?

Language and grammar Easy
A. A system for translating numbers
B. A set of rules for forming sentences
C. A list of frequently used words
D. A method for storing documents

3 Which linguistic level focuses on the smallest units of sound in spoken language?

Linguistic essentials Easy
A. Semantics
B. Pragmatics
C. Phonology
D. Syntax

4 What does morphology study in linguistics?

Morphology Easy
A. The structure of words
B. The order of documents
C. The meaning of paragraphs
D. The sounds of conversations

5 What does syntax describe?

Syntax Easy
A. How documents are classified
B. How words are arranged in sentences
C. How meanings change over time
D. How words are pronounced

6 What is the main focus of semantics?

Semantics Easy
A. The number of words in a text
B. The speed of speech
C. The meaning of words and sentences
D. The shape of written characters

7 Why can ambiguity make NLP difficult?

Challenges of NLP Easy
A. Computers cannot store text files
B. Words are always written incorrectly
C. One expression may have several meanings
D. Every sentence has the same meaning

8 Which is a common application of NLP?

Applications of NLP Easy
A. Measuring rainfall
B. Machine translation
C. Designing bridges
D. Detecting earthquakes

9 What is tokenization?

Tokenization Easy
A. Sorting documents by file size
B. Deleting every word from a document
C. Changing text into an image
D. Splitting text into smaller units

10 What is the goal of stemming?

Stemming Easy
A. Counting sentences in a document
B. Translating words into another language
C. Adding prefixes to every word
D. Reducing words to approximate roots

11 How does lemmatization differ from stemming?

Lemmatization Easy
A. It removes all spaces from a document
B. It counts only punctuation marks
C. It changes every word into uppercase
D. It uses linguistic information to find valid base forms

12 What are stop words?

Stop-word removal Easy
A. Words that appear at the end of books
B. Words that contain spelling errors
C. Common words often removed during preprocessing
D. Words found only in scientific papers

13 Why might punctuation be removed during text preprocessing?

Punctuation handling Easy
A. It prevents computers from reading numbers
B. It guarantees perfect sentence understanding
C. It always changes nouns into verbs
D. It may not help identify the required text patterns

14 What is an out-of-vocabulary word?

Handling out-of-vocabulary words Easy
A. A word repeated several times in a sentence
B. A word found in the model's vocabulary
C. A word missing from the model's vocabulary
D. A word written entirely in lowercase

15 Which is an example of text normalization?

Normalization Easy
A. Adding random words to a sentence
B. Increasing the number of spelling errors
C. Converting text to lowercase
D. Replacing text with unrelated images

16 What information does a Bag-of-Words representation mainly record?

Bag-of-Words Easy
A. The author's identity and location
B. Word occurrences without word order
C. The grammatical tree of each sentence
D. The exact pronunciation of each word

17 What is a bigram?

N-grams Easy
A. A sequence of three consecutive words
B. A sequence of two consecutive words
C. A single letter in a word
D. A complete paragraph in a document

18 What does TF-IDF help measure in a document?

TF-IDF Easy
A. How many pages a book contains
B. How important a word is to that document
C. How quickly a sentence was spoken
D. How many letters an alphabet has

19 In TF-IDF, what does the term IDF represent?

TF-IDF Easy
A. Input description function
B. Inverse document frequency
C. Individual data format
D. Indexed document field

20 In the word "unhappiness," which part is a suffix?

Morphology Easy
A. un-
B. -ness
C. unhappy
D. happy

21 An early machine translation system replaces each source-language word with a dictionary equivalent but produces sentences with incorrect word order. Which historical limitation of early NLP does this best illustrate?

Origin of NLP Medium
A. Use of excessive training data
B. Reliance on direct word substitution
C. Dependence on large neural networks
D. Focus on speech signal processing

22 A grammar accepts "The students solve the problem" but rejects "The students solves the problem." Which grammatical constraint is being enforced?

Language and grammar Medium
A. Pronoun-case agreement
B. Subject-verb agreement
C. Adjective-noun ordering
D. Tense-aspect agreement

23 In the sentence "They can book the tickets," a part-of-speech tagger labels "book" as a verb. Which contextual clue most directly supports this label?

Linguistic essentials Medium
A. It appears before the noun "tickets"
B. It follows the modal verb "can"
C. It has four alphabetic characters
D. It can also name a printed work

24 Consider the word "unhappiness." Which segmentation best represents its morphemes?

Morphology Medium
A. un + happy + ness
B. unh + appi + ness
C. u + nhappy + ness
D. unhappy + n + ess

25 A parser analyzes "The scientist saw the assistant with the telescope." What syntactic issue must it resolve?

Syntax Medium
A. Missing noun determination
B. Prepositional-phrase attachment
C. Subject-verb disagreement
D. Incorrect tense inflection

26 A system must determine whether "bank" refers to a financial institution or the side of a river. Which NLP task is most directly required?

Semantics Medium
A. Sentence boundary detection
B. Word-sense disambiguation
C. Morphological segmentation
D. Part-of-speech induction

27 A sentiment classifier labels "Great, another three-hour delay" as positive because of the word "Great." Which NLP challenge caused the error?

Challenges of NLP Medium
A. Detecting sentence boundaries
B. Resolving morphological variants
C. Identifying document language
D. Recognizing sarcasm from context

28 A hospital wants to identify medication names, dosages, and frequencies in clinical notes. Which NLP application best fits this requirement?

Applications of NLP Medium
A. Text summarization
B. Topic modeling
C. Machine translation
D. Named entity recognition

29 A tokenizer splits "don't" into "do" and "n't" instead of keeping it as one token. What is the main benefit of this choice for many English NLP models?

Tokenization Medium
A. It guarantees correct word senses
B. It exposes the negation component
C. It eliminates unknown proper nouns
D. It removes the need for parsing

30 A social-media tokenizer processes "Email me at ana@example.com!" Which output is most useful when email addresses should remain meaningful units?

Tokenization Medium
A. ["Email", "me", "at", "ana", "example", "com"]
B. ["Email", "me", "at", "ana@example.com", "!"]
C. ["Email me", "at ana", "example.com!"]
D. ["Email", "me", "at", "ana@example", ".com!"]

31 A stemmer maps both "university" and "universe" to the same shortened form, reducing search precision. What property of stemming explains this behavior?

Stemming Medium
A. It applies heuristic affix removal
B. It returns only dictionary headwords
C. It uses sentence-level semantic roles
D. It preserves every inflectional contrast

32 A preprocessing system should map "better" to "good" and "cars" to "car." Why is lemmatization more suitable than basic stemming?

Lemmatization Medium
A. It preserves the original surface forms
B. It uses vocabulary and linguistic analysis
C. It deletes all prefixes and suffixes
D. It operates without part-of-speech context

33 A sentiment model removes common stop words and then confuses "I recommend this" with "I do not recommend this." What is the best preprocessing adjustment?

Stop-word removal Medium
A. Discard all sentences containing auxiliaries
B. Remove sentiment-bearing verbs as well
C. Stem every remaining token twice
D. Retain negation words such as "not"

34 A sentiment system processes "The service was good!!!" What is the most appropriate treatment of the exclamation marks?

Punctuation handling Medium
A. Encode their repeated emphasis as a feature
B. Treat each mark as an unknown word
C. Replace them with sentence periods
D. Always delete them before tokenization

35 A model encounters the unseen word "microblogging" but its vocabulary contains subwords "micro," "blog," and "ing." Which strategy best avoids representing the word as a single unknown token?

Handling out-of-vocabulary words Medium
A. Sentence segmentation
B. Subword tokenization
C. Stop-word filtering
D. Dependency parsing

36 A search engine should match documents containing "N.L.P.," "nlp," and "NLP" when a user searches for "nlp." Which normalization pipeline is most appropriate?

Normalization Medium
A. Stemming and sentence parsing
B. Lemmatization and negation marking
C. Stop-word removal and translation
D. Case folding and period removal

37 Using the vocabulary [deep, learning, models], what is the Bag-of-Words vector for "learning models learning"?

Bag-of-Words Medium
A.
B.
C.
D.

38 Which representation can distinguish "not useful" from "useful" while still using a simple count-based model?

N-grams Medium
A. Character counts
B. Word unigrams
C. Document lengths
D. Word bigrams

39 After tokenizing "natural language processing is useful" into five words, how many contiguous word trigrams can be extracted without padding?

N-grams Medium
A.
B.
C.
D.

40 Two terms occur five times each in a document. The first appears in nearly every document in the corpus, while the second appears in only two documents. Under TF-IDF, which term usually receives the larger weight?

TF-IDF Medium
A. The term appearing in only two documents
B. Neither term because both repeat five times
C. The term appearing in nearly every document
D. Both terms because their counts are equal

41 Why did early rule-based NLP systems often perform well in narrowly defined domains but fail when transferred to general language understanding tasks?

Origin of NLP Hard
A. They used deterministic tokenization methods
B. They lacked sufficient vocabulary size
C. Their symbolic rules encoded limited domain assumptions
D. Their grammars required numerical optimization

42 A grammar accepts the sentence "The scientist observed the student with the telescope" with two different parse structures. Which property of natural language does this example primarily demonstrate?

Language and grammar Hard
A. Morphological agreement
B. Lexical sparsity
C. Phonological variation
D. Structural ambiguity

43 A sentiment classifier labels "The movie is hardly good" as positive because it detects the word "good." Which linguistic capability is most directly missing?

Linguistic essentials Hard
A. Part-of-speech tagging
B. Named-entity recognition
C. Negation and scope interpretation
D. Phoneme segmentation

44 Which analysis best explains why a morphologically rich language can create severe data sparsity for a word-based NLP model?

Morphology Hard
A. A sentence contains fewer grammatical categories
B. Punctuation replaces most lexical information
C. Words become independent of their contexts
D. A single lemma appears in many inflected surface forms

45 Why can a bag-of-words representation fail to distinguish "The dog chased the cat" from "The cat chased the dog"?

Syntax Hard
A. It represents only out-of-vocabulary terms
B. It removes all inflected words
C. It ignores word order and grammatical roles
D. It assigns identical weights to every document

46 A system translates "bank" incorrectly because it always selects the financial meaning, even when the surrounding text discusses rivers. What semantic problem is illustrated?

Semantics Hard
A. Word-sense disambiguation failure
B. Sentence-boundary detection failure
C. Morphological segmentation failure
D. Character encoding failure

47 A model trained on news articles performs poorly on medical forum posts despite similar vocabulary. Which factor is the most likely primary cause?

Challenges of NLP Hard
A. Reduced sentence segmentation ambiguity
B. Perfect vocabulary coverage
C. Excessive punctuation normalization
D. Domain shift in style and usage

48 Which NLP application requires modeling both the factual content of a document and the user's information need to rank results effectively?

Applications of NLP Hard
A. Character recognition
B. Text summarization
C. Spell checking
D. Information retrieval

49 Why is whitespace tokenization inadequate for processing the text "Email me at data.science@example.com"?

Tokenization Hard
A. It separates each character into a token
B. It removes every alphabetic character
C. It converts the address into a lemma
D. It treats the complete email address as one token

50 For a sentiment task, why might splitting "can't" into "can" and "n't" be preferable to treating it as one token?

Tokenization Hard
A. It exposes a negation-bearing component
B. It converts the phrase into a stop word
C. It removes the need for contextual models
D. It guarantees correct semantic parsing

51 A stemmer maps "university" and "universe" to the same stem. What is the principal risk of this behavior?

Stemming Hard
A. Overstemming of unrelated forms
B. Understemming of related forms
C. Loss of document frequency
D. Failure to remove punctuation

52 Why does lemmatization generally require more linguistic information than stemming?

Lemmatization Hard
A. It replaces words with character bigrams
B. It always removes every suffix mechanically
C. It ignores part-of-speech information
D. It must infer a valid dictionary base form

53 Why can removing stop words harm a question-answering system that processes the query "Who did not attend?"?

Stop-word removal Hard
A. It increases the number of rare words
B. It forces every token to receive equal weight
C. It may remove the negation that changes the answer
D. It prevents all named entities from being detected

54 A tokenizer removes all punctuation before sentiment classification. Which input is most likely to lose important information as a result?

Punctuation handling Hard
A. The report was published yesterday.
B. The meeting starts at noon.
C. The product failed!!!
D. The library contains textbooks.

55 A word-level model maps every unseen word to one <UNK> token. Why can this be inadequate for recognizing a new medical term such as "cardioneurography"?

Handling out-of-vocabulary words Hard
A. The token contains no alphabetic characters
B. The shared token discards internal subword evidence
C. The vocabulary becomes too large to store
D. The word is necessarily a stop word

56 Which normalization strategy is most appropriate when matching user-entered product names while preserving distinctions that may affect product identity?

Normalization Hard
A. Replace every word with its first character
B. Apply Unicode normalization and controlled case folding
C. Stem every token and delete all digits
D. Lowercase and remove every symbol

57 Two documents have identical word counts but opposite meanings because one uses "not effective" and the other uses "effective, not" in a task where word order matters. What limitation is being exposed?

Bag-of-Words Hard
A. Bag-of-words lacks positional information
B. Bag-of-words cannot store sparse vectors
C. Bag-of-words requires stemming before counting
D. Bag-of-words cannot represent term frequency

58 What is the main trade-off when increasing an NLP model's representation from unigrams to trigrams?

N-grams Hard
A. No order information but faster training
B. More local context but greater sparsity
C. Less context but lower memory usage
D. Fewer features but more ambiguity

59 Suppose a term occurs in every document of a corpus. Under standard inverse document frequency, how should its IDF contribution compare with that of a term appearing in only one document?

TF-IDF Hard
A. Both terms receive exactly the same IDF
B. The universal term receives the larger IDF
C. The universal term receives little or no IDF
D. The universal term receives negative TF

60 Using , what is the TF-IDF weight of a term appearing 3 times in one document when and ?

TF-IDF Hard
A.
B.
C.
D.