1What 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
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 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
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.Phonology
B.Syntax
C.Pragmatics
D.Semantics
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 order of documents
B.The sounds of conversations
C.The structure of words
D.The meaning of paragraphs
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 words are arranged in sentences
B.How words are pronounced
C.How documents are classified
D.How meanings change over time
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 speed of speech
B.The number of words in a text
C.The shape of written characters
D.The meaning of words and sentences
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.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
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.Machine translation
B.Designing bridges
C.Measuring rainfall
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.Changing text into an image
C.Splitting text into smaller units
D.Deleting every word from a document
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.Adding prefixes to every word
C.Reducing words to approximate roots
D.Translating words into another language
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 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
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.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
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 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
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 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
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.Replacing text with unrelated images
B.Increasing the number of spelling errors
C.Converting text to lowercase
D.Adding random words to a sentence
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 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
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 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
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 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
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.Inverse document frequency
B.Indexed document field
C.Individual data format
D.Input description function
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.unhappy
B.happy
C.-ness
D.un-
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.Dependence on large neural networks
B.Reliance on direct word substitution
C.Use of excessive training data
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.Subject-verb agreement
B.Adjective-noun ordering
C.Pronoun-case agreement
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 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
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.unhappy + n + ess
C.unh + appi + ness
D.u + nhappy + ness
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.Incorrect tense inflection
B.Prepositional-phrase attachment
C.Subject-verb disagreement
D.Missing noun determination
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.Word-sense disambiguation
B.Part-of-speech induction
C.Sentence boundary detection
D.Morphological segmentation
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.Identifying document language
B.Detecting sentence boundaries
C.Recognizing sarcasm from context
D.Resolving morphological variants
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.Topic modeling
B.Named entity recognition
C.Machine translation
D.Text summarization
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 eliminates unknown proper nouns
C.It exposes the negation component
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 uses sentence-level semantic roles
B.It applies heuristic affix removal
C.It returns only dictionary headwords
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 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
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.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
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.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
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.Stop-word removal and translation
B.Case folding and period removal
C.Lemmatization and negation marking
D.Stemming and sentence parsing
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.Document lengths
B.Word unigrams
C.Word bigrams
D.Character counts
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.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
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.Lexical sparsity
B.Phonological variation
C.Structural ambiguity
D.Morphological agreement
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.Negation and scope interpretation
C.Named-entity recognition
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?
B.A single lemma appears in many inflected surface forms
C.Punctuation replaces most lexical information
D.Words become independent of their contexts
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 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
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.Morphological segmentation failure
B.Sentence-boundary detection failure
C.Word-sense disambiguation 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.Perfect vocabulary coverage
B.Domain shift in style and usage
C.Excessive punctuation normalization
D.Reduced sentence segmentation ambiguity
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.Information retrieval
B.Text summarization
C.Spell checking
D.Character recognition
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 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
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 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
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.Failure to remove punctuation
B.Overstemming of unrelated forms
C.Loss of document frequency
D.Understemming of related forms
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 must infer a valid dictionary base form
C.It always removes every suffix mechanically
D.It ignores part-of-speech information
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 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
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.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
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 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
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.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
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.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
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 →