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. Physics and astronomy
B. Chemistry and mathematics
C. Linguistics and computer science
D. Biology and geology

2 What is grammar in a language?

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

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

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

4 What does morphology study in linguistics?

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

5 What does syntax describe?

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

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. One expression may have several meanings
B. Computers cannot store text files
C. Words are always written incorrectly
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. Deleting every word from a document
B. Splitting text into smaller units
C. Changing text into an image
D. Sorting documents by file size

10 What is the goal of stemming?

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

11 How does lemmatization differ from stemming?

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

12 What are stop words?

Stop-word removal Easy
A. Words that contain spelling errors
B. Words that appear at the end of books
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 may not help identify the required text patterns
D. It always changes nouns into verbs

14 What is an out-of-vocabulary word?

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

15 Which is an example of text normalization?

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

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

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

17 What is a bigram?

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

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

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

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

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

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

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

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. Reliance on direct word substitution
B. Focus on speech signal processing
C. Dependence on large neural networks
D. Use of excessive training data

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. Tense-aspect agreement
B. Pronoun-case agreement
C. Adjective-noun ordering
D. Subject-verb 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 has four alphabetic characters
B. It appears before the noun "tickets"
C. It can also name a printed work
D. It follows the modal verb "can"

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

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

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

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

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. Part-of-speech induction
D. Morphological segmentation

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. Identifying document language
B. Detecting sentence boundaries
C. Resolving morphological variants
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. Named entity recognition
B. Text summarization
C. Topic modeling
D. Machine translation

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 removes the need for parsing
B. It exposes the negation component
C. It guarantees correct word senses
D. It eliminates unknown proper nouns

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 preserves every inflectional contrast
B. It returns only dictionary headwords
C. It uses sentence-level semantic roles
D. It applies heuristic affix removal

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 uses vocabulary and linguistic analysis
B. It operates without part-of-speech context
C. It preserves the original surface forms
D. It deletes all prefixes and suffixes

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. Retain negation words such as "not"
B. Discard all sentences containing auxiliaries
C. Stem every remaining token twice
D. Remove sentiment-bearing verbs as well

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

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

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. Stop-word filtering
C. Dependency parsing
D. Subword tokenization

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. Case folding and period removal
B. Stop-word removal and translation
C. Stemming and sentence parsing
D. Lemmatization and negation marking

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. Word bigrams
B. Character counts
C. Word unigrams
D. Document lengths

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. Neither term because both repeat five times
B. The term appearing in nearly every document
C. The term appearing in only two documents
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. Their grammars required numerical optimization
B. Their symbolic rules encoded limited domain assumptions
C. They used deterministic tokenization methods
D. They lacked sufficient vocabulary size

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. Structural ambiguity
B. Morphological agreement
C. Lexical sparsity
D. Phonological variation

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. Named-entity recognition
B. Negation and scope interpretation
C. Part-of-speech tagging
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. Punctuation replaces most lexical information
B. Words become independent of their contexts
C. A single lemma appears in many inflected surface forms
D. A sentence contains fewer grammatical categories

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 removes all inflected words
B. It assigns identical weights to every document
C. It ignores word order and grammatical roles
D. It represents only out-of-vocabulary terms

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. Morphological segmentation failure
B. Word-sense disambiguation failure
C. Sentence-boundary detection 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. Domain shift in style and usage
D. Excessive punctuation normalization

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. Spell checking
C. Text summarization
D. Information retrieval

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

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

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 guarantees correct semantic parsing
B. It converts the phrase into a stop word
C. It exposes a negation-bearing component
D. It removes the need for contextual models

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

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

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

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

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 prevents all named entities from being detected
B. It increases the number of rare words
C. It may remove the negation that changes the answer
D. It forces every token to receive equal weight

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 product failed!!!
B. The library contains textbooks.
C. The report was published yesterday.
D. The meeting starts at noon.

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 shared token discards internal subword evidence
B. The word is necessarily a stop word
C. The vocabulary becomes too large to store
D. The token contains no alphabetic characters

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. Stem every token and delete all digits
C. Apply Unicode normalization and controlled case folding
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 cannot represent term frequency
B. Bag-of-words lacks positional information
C. Bag-of-words cannot store sparse vectors
D. Bag-of-words requires stemming before counting

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

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

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. The universal term receives negative TF
B. The universal term receives the larger IDF
C. The universal term receives little or no IDF
D. Both terms receive exactly the same IDF

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.