1What 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
Correct Answer: Linguistics and computer science
Explanation:
Natural Language Processing combines linguistic knowledge with computational methods to work with human language.
Incorrect! Try again.
2What 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
Correct Answer: A set of rules for forming sentences
Explanation:
Grammar provides rules that describe how words can be arranged and used in a language.
Incorrect! Try again.
3Which linguistic level focuses on the smallest units of sound in spoken language?
Linguistic essentials
Easy
A.Semantics
B.Pragmatics
C.Phonology
D.Syntax
Correct Answer: Phonology
Explanation:
Phonology studies the sound system and sound patterns of a language.
Incorrect! Try again.
4What 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
Correct Answer: The structure of words
Explanation:
Morphology examines how words are formed from smaller meaningful parts called morphemes.
Incorrect! Try again.
5What 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
Correct Answer: How words are arranged in sentences
Explanation:
Syntax deals with sentence structure and the rules governing word order.
Incorrect! Try again.
6What 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
Correct Answer: The meaning of words and sentences
Explanation:
Semantics is the study of meaning in words, phrases, and sentences.
Incorrect! Try again.
7Why 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
Correct Answer: One expression may have several meanings
Explanation:
Ambiguity occurs when a word or sentence can be interpreted in more than one way.
Incorrect! Try again.
8Which is a common application of NLP?
Applications of NLP
Easy
A.Measuring rainfall
B.Machine translation
C.Designing bridges
D.Detecting earthquakes
Correct Answer: Machine translation
Explanation:
Machine translation uses NLP to convert text from one human language into another.
Incorrect! Try again.
9What 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
Correct Answer: Splitting text into smaller units
Explanation:
Tokenization divides text into units such as words, subwords, or sentences.
Incorrect! Try again.
10What 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
Correct Answer: Reducing words to approximate roots
Explanation:
Stemming removes word endings to produce a rough root form, which may not be a valid word.
Incorrect! Try again.
11How 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
Correct Answer: It uses linguistic information to find valid base forms
Explanation:
Lemmatization uses vocabulary and grammar to return a word's meaningful dictionary form.
Incorrect! Try again.
12What 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
Correct Answer: Common words often removed during preprocessing
Explanation:
Stop words are frequent words such as "the" or "is" that may contribute little to some text-analysis tasks.
Incorrect! Try again.
13Why 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
Correct Answer: It may not help identify the required text patterns
Explanation:
Removing punctuation can reduce unnecessary variation when punctuation is not important for the task.
Incorrect! Try again.
14What 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
Correct Answer: A word missing from the model's vocabulary
Explanation:
An out-of-vocabulary word is not included in the vocabulary known by a particular NLP model.
Incorrect! Try again.
15Which 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
Correct Answer: Converting text to lowercase
Explanation:
Lowercasing makes text forms more consistent and is a common normalization step.
Incorrect! Try again.
16What 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
Correct Answer: Word occurrences without word order
Explanation:
Bag-of-Words represents a document using word counts or presence values while ignoring word order.
Incorrect! Try again.
17What 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
Correct Answer: A sequence of two consecutive words
Explanation:
A bigram is an -gram with , so it contains two consecutive tokens.
Incorrect! Try again.
18What 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
Correct Answer: How important a word is to that document
Explanation:
TF-IDF gives higher importance to words frequent in a document but uncommon across the document collection.
Incorrect! Try again.
19In 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
Correct Answer: Inverse document frequency
Explanation:
IDF stands for inverse document frequency and reduces the weight of words appearing in many documents.
Incorrect! Try again.
20In the word "unhappiness," which part is a suffix?
Morphology
Easy
A.un-
B.-ness
C.unhappy
D.happy
Correct Answer: -ness
Explanation:
A suffix is added to the end of a word or stem; in "unhappiness," "-ness" is the suffix.
Incorrect! Try again.
21An 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
Correct Answer: Reliance on direct word substitution
Explanation:
Many early NLP systems used dictionary-based substitution and lacked robust models of syntax, context, and target-language word order.
Incorrect! Try again.
22A 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
Correct Answer: Subject-verb agreement
Explanation:
The plural subject "students" requires the plural verb form "solve," not the singular form "solves."
Incorrect! Try again.
23In 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
Correct Answer: It follows the modal verb "can"
Explanation:
A modal verb such as "can" is normally followed by the base form of a verb, making the verbal reading of "book" most likely.
Incorrect! Try again.
24Consider 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
Correct Answer: un + happy + ness
Explanation:
"un-" is a negative prefix, "happy" is the root, and "-ness" is a suffix that forms a noun.
Incorrect! Try again.
25A 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
Correct Answer: Prepositional-phrase attachment
Explanation:
The phrase "with the telescope" may describe how the scientist saw or which assistant was seen, creating attachment ambiguity.
Incorrect! Try again.
26A 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
Correct Answer: Word-sense disambiguation
Explanation:
Word-sense disambiguation selects the intended meaning of an ambiguous word by using its context.
Incorrect! Try again.
27A 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
Correct Answer: Recognizing sarcasm from context
Explanation:
The literal positive word expresses a negative attitude in context, so the system must recognize sarcasm or pragmatic meaning.
Incorrect! Try again.
28A 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
Correct Answer: Named entity recognition
Explanation:
Named entity recognition locates and classifies specific spans such as medication names, dosages, and treatment frequencies.
Incorrect! Try again.
29A 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
Correct Answer: It exposes the negation component
Explanation:
Separating "n't" makes negation explicit and allows the model to learn patterns shared across contractions such as "isn't" and "can't."
Incorrect! Try again.
30A social-media tokenizer processes "Email me at ana@example.com!" Which output is most useful when email addresses should remain meaningful units?
A domain-aware tokenizer should preserve the complete email address while separating surrounding punctuation.
Incorrect! Try again.
31A 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
Correct Answer: It applies heuristic affix removal
Explanation:
Stemmers often remove character sequences using simple rules, so unrelated words can occasionally be reduced to the same stem.
Incorrect! Try again.
32A 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
Correct Answer: It uses vocabulary and linguistic analysis
Explanation:
Lemmatization can use lexical knowledge and grammatical context to recover dictionary forms, including irregular forms such as "better" to "good."
Incorrect! Try again.
33A 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"
Correct Answer: Retain negation words such as "not"
Explanation:
Although "not" may appear in generic stop-word lists, it carries essential sentiment information and should be retained for this task.
Incorrect! Try again.
34A 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
Correct Answer: Encode their repeated emphasis as a feature
Explanation:
Repeated punctuation can signal emotional intensity, so preserving it as an emphasis feature may improve sentiment analysis.
Incorrect! Try again.
35A 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
Correct Answer: Subword tokenization
Explanation:
Subword tokenization represents an unseen word through known smaller units, reducing reliance on a generic unknown token.
Incorrect! Try again.
36A 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
Correct Answer: Case folding and period removal
Explanation:
Converting text to a common case and normalizing periods makes these orthographic variants comparable.
Incorrect! Try again.
37Using the vocabulary [deep, learning, models], what is the Bag-of-Words vector for "learning models learning"?
Bag-of-Words
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
"deep" appears zero times, "learning" appears twice, and "models" appears once, following the given vocabulary order.
Incorrect! Try again.
38Which 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
Correct Answer: Word bigrams
Explanation:
Word bigrams preserve adjacent word combinations, so "not useful" becomes a feature distinct from the unigram "useful."
Incorrect! Try again.
39After 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.
Correct Answer:
Explanation:
A sequence of words contains contiguous trigrams when no padding is used.
Incorrect! Try again.
40Two 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
Correct Answer: The term appearing in only two documents
Explanation:
Both terms have equal term frequency, but the rarer term has a larger inverse document frequency and therefore a larger TF-IDF weight.
Incorrect! Try again.
41Why did early rule-based NLP systems often perform well in narrowly defined domains but fail when transferred to general language understanding tasks?
Correct Answer: Their symbolic rules encoded limited domain assumptions
Explanation:
Early systems depended on manually written rules and domain-specific knowledge, so their behavior degraded when syntax, vocabulary, or discourse conventions changed.
Incorrect! Try again.
42A 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
Correct Answer: Structural ambiguity
Explanation:
The phrase "with the telescope" can modify either "observed" or "the student," producing different syntactic interpretations.
Incorrect! Try again.
43A 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
Correct Answer: Negation and scope interpretation
Explanation:
The adverb "hardly" reverses or substantially weakens the positive implication of "good," requiring the model to represent compositional scope.
Incorrect! Try again.
44Which analysis best explains why a morphologically rich language can create severe data sparsity for a word-based NLP model?
D.A single lemma appears in many inflected surface forms
Correct Answer: A single lemma appears in many inflected surface forms
Explanation:
Inflection can generate many forms for one lexical item, splitting evidence across vocabulary entries and reducing the frequency of each observed form.
Incorrect! Try again.
45Why 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
Correct Answer: It ignores word order and grammatical roles
Explanation:
Both sentences contain the same words with the same counts, but their meanings differ because syntactic position determines the agent and patient.
Incorrect! Try again.
46A 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
Correct Answer: Word-sense disambiguation failure
Explanation:
The correct interpretation of a polysemous word depends on context, and selecting the wrong contextual sense is a word-sense disambiguation error.
Incorrect! Try again.
47A 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
Correct Answer: Domain shift in style and usage
Explanation:
Different domains use distinct terminology, abbreviations, discourse patterns, and distributions, so a model may fail when the training and deployment domains differ.
Incorrect! Try again.
48Which 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
Correct Answer: Information retrieval
Explanation:
Information retrieval ranks documents according to their relevance to a query, requiring a relationship between document content and user intent.
Incorrect! Try again.
49Why 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
Correct Answer: It treats the complete email address as one token
Explanation:
Whitespace tokenization preserves the entire address, while many applications need internal structure such as the username, domain, and punctuation.
Incorrect! Try again.
50For 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
Correct Answer: It exposes a negation-bearing component
Explanation:
Separating the contraction makes negation more explicit and allows the model to learn its interaction with nearby sentiment-bearing words.
Incorrect! Try again.
51A 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
Correct Answer: Overstemming of unrelated forms
Explanation:
Overstemming incorrectly conflates words that share surface characters but differ lexically and semantically.
Incorrect! Try again.
52Why 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
Correct Answer: It must infer a valid dictionary base form
Explanation:
Lemmatization uses vocabulary and often part-of-speech or morphological analysis to return a linguistically valid lemma rather than an arbitrary truncated stem.
Incorrect! Try again.
53Why 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
Correct Answer: It may remove the negation that changes the answer
Explanation:
Words commonly classified as stop words can carry essential grammatical meaning; removing "not" can reverse the intended information need.
Incorrect! Try again.
54A 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.
Correct Answer: The product failed!!!
Explanation:
Repeated exclamation marks can express intensity or emotion, so indiscriminate punctuation removal may reduce sentiment signals.
Incorrect! Try again.
55A 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"?
Correct Answer: The shared token discards internal subword evidence
Explanation:
Character or subword representations could exploit recognizable pieces, while a single unknown token makes distinct unseen words indistinguishable.
Incorrect! Try again.
56Which 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
Correct Answer: Apply Unicode normalization and controlled case folding
Explanation:
Unicode normalization and carefully chosen case handling improve matching while avoiding destructive transformations that could collapse meaningful product distinctions.
Incorrect! Try again.
57Two 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
Correct Answer: Bag-of-words lacks positional information
Explanation:
A bag-of-words vector records counts but not sequence, adjacency, or syntactic scope, so reordered terms can receive the same representation.
Incorrect! Try again.
58What 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
Correct Answer: More local context but greater sparsity
Explanation:
Trigrams capture local word order and phrases, but many possible sequences are rare or unseen, increasing dimensionality and sparsity.
Incorrect! Try again.
59Suppose 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
Correct Answer: The universal term receives little or no IDF
Explanation:
A term present in all documents has low discriminative value, so its inverse document frequency is minimal compared with a term restricted to one document.
Incorrect! Try again.
60Using , what is the TF-IDF weight of a term appearing 3 times in one document when and ?
TF-IDF
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The term frequency is , and the inverse document frequency is , giving .
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →