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. Linguistics and computer science
C. Physics and astronomy
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 method for storing documents
D. A system for translating numbers

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

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

4 What does morphology study in linguistics?

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

5 What does syntax describe?

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

6 What is the main focus of semantics?

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

7 Why can ambiguity make NLP difficult?

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

8 Which is a common application of NLP?

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

9 What is tokenization?

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

10 What is the goal of stemming?

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

11 How does lemmatization differ from stemming?

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

12 What are stop words?

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

13 Why might punctuation be removed during text preprocessing?

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

14 What is an out-of-vocabulary word?

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

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 exact pronunciation of each word
B. The author's identity and location
C. The grammatical tree of each sentence
D. Word occurrences without word order

17 What is a bigram?

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

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

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

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. unhappy
B. happy
C. -ness
D. un-

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. Dependence on large neural networks
B. Reliance on direct word substitution
C. Use of excessive training data
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. Subject-verb agreement
B. Adjective-noun ordering
C. Pronoun-case agreement
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 can also name a printed work
B. It follows the modal verb "can"
C. It appears before the noun "tickets"
D. It has four alphabetic characters

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

Morphology Medium
A. un + happy + ness
B. unhappy + n + ess
C. unh + appi + ness
D. u + nhappy + 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. Prepositional-phrase attachment
C. Subject-verb disagreement
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. Word-sense disambiguation
B. Part-of-speech induction
C. Sentence boundary detection
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. Recognizing sarcasm from context
D. Resolving morphological variants

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. Topic modeling
B. Named entity recognition
C. Machine translation
D. Text summarization

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 eliminates unknown proper nouns
C. It exposes the negation component
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 uses sentence-level semantic roles
B. It applies heuristic affix removal
C. It returns only dictionary headwords
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 operates without part-of-speech context
B. It deletes all prefixes and suffixes
C. It preserves the original surface forms
D. It uses vocabulary and linguistic analysis

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. Encode their repeated emphasis as a feature
C. Always delete them before tokenization
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. 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. Stop-word removal and translation
B. Case folding and period removal
C. Lemmatization and negation marking
D. Stemming and sentence parsing

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

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. Both terms because their counts are equal
C. The term appearing in nearly every document
D. The term appearing in only two documents

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. They used deterministic tokenization methods
C. Their symbolic rules encoded limited domain assumptions
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. Lexical sparsity
B. Phonological variation
C. Structural ambiguity
D. Morphological agreement

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

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

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

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

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

Tokenization Hard
A. It treats the complete email address as one token
B. It separates each character into a token
C. It removes every alphabetic character
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 removes the need for contextual models
B. It guarantees correct semantic parsing
C. It exposes a negation-bearing component
D. It converts the phrase into a stop word

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

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

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

Lemmatization Hard
A. It replaces words with character bigrams
B. It must infer a valid dictionary base form
C. It always removes every suffix mechanically
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 may remove the negation that changes the answer
B. It increases the number of rare words
C. It forces every token to receive equal weight
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 word is necessarily a stop word
B. The token contains no alphabetic characters
C. The vocabulary becomes too large to store
D. The shared token discards internal subword evidence

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

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

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 requires stemming before counting
B. Bag-of-words cannot store sparse vectors
C. Bag-of-words lacks positional information
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. 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 the larger IDF
B. The universal term receives little or no IDF
C. Both terms receive exactly the same 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.