Unit 1: Introduction to NLP and Text Processing - Practice Quiz

INT344 — Natural Language Processing 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary goal of Natural Language Processing (NLP)?

A. To store large databases of text
B. To encrypt human language for security
C. To execute programming languages faster
D. To enable computers to understand, interpret, and generate human language

2 Which of the following is considered one of the earliest successes in the history of NLP, specifically in Machine Translation?

A. The ELIZA Chatbot
B. The Georgetown Experiment
C. The Turing Test
D. Google Translate

3 Which component of NLP is responsible for understanding the structure and formation of words?

A. Semantics
B. Syntax
C. Morphology
D. Pragmatics

4 In the context of NLP, what is 'Ambiguity'?

A. The speed at which text is processed
B. The phenomenon where a sentence or word has more than one possible interpretation
C. The ability to process multiple languages
D. The lack of data in a corpus

5 Which level of linguistic analysis deals with the arrangement of words to form grammatical sentences?

A. Morphology
B. Semantics
C. Phonology
D. Syntax

6 What is the difference between Syntax and Semantics?

A. Syntax is about meaning; Semantics is about structure
B. There is no difference
C. Both are about sound patterns
D. Syntax is about structure; Semantics is about meaning

7 Which type of knowledge involves understanding how sentences are used in different situations and how context affects meaning?

A. Syntactic knowledge
B. Lexical knowledge
C. Pragmatic knowledge
D. Phonetic knowledge

8 The sentence 'I saw the man with the telescope' is an example of what type of ambiguity?

A. Phonological Ambiguity
B. Lexical Ambiguity
C. Referential Ambiguity
D. Syntactic Ambiguity

9 What is the smallest unit of meaning in a language?

A. Token
B. Character
C. Morpheme
D. Phoneme

10 Which NLP application involves automatically classifying an email as 'Spam' or 'Not Spam'?

A. Text Summarization
B. Text Classification
C. Machine Translation
D. Question Answering

11 What is the process of breaking a stream of text into words, phrases, symbols, or other meaningful elements called?

A. Parsing
B. Lemmatization
C. Tokenization
D. Stemming

12 Which of the following is an example of a 'Stop Word'?

A. Run
B. The
C. Computer
D. Quickly

13 What is the main objective of Stemming?

A. To identify the part of speech
B. To find the dictionary form of a word
C. To reduce words to their root or base form, often by chopping off the ends
D. To correct spelling errors

14 How does Lemmatization differ from Stemming?

A. There is no difference
B. Lemmatization simply chops off suffixes
C. Lemmatization is faster but less accurate
D. Lemmatization considers the context and converts the word to its meaningful dictionary form (lemma)

15 If you stem the word 'ponies', the result might be 'poni'. If you lemmatize 'ponies', the result is likely:

A. po
B. pony
C. poni
D. ponies

16 What does TF-IDF stand for?

A. Total Frequency - Internal Data Frequency
B. Term Format - Independent Data Format
C. Text Frequency - Index Document Frequency
D. Term Frequency - Inverse Document Frequency

17 In TF-IDF, what does 'Term Frequency' (TF) measure?

A. The total number of words in the dictionary
B. How frequently a word appears in a specific document
C. How rare a word is in the entire corpus
D. The number of documents containing the word

18 In TF-IDF, what is the purpose of the 'Inverse Document Frequency' (IDF) component?

A. To count how many times a word appears in a sentence
B. To normalize the length of the document
C. To give higher weight to common words like 'the'
D. To diminish the weight of terms that occur very frequently in the document set and increase the weight of terms that occur rarely

19 What is 'Lexical Ambiguity'?

A. Confusion about the sentence structure
B. Confusion about who a pronoun refers to
C. Confusion caused by a single word having multiple meanings
D. Confusion about the tone of the text

20 Which of the following is a challenge in Tokenization?

A. Calculating TF-IDF
B. Storing the text
C. Identifying abbreviations and acronyms (e.g., U.S.A.)
D. Displaying the font

21 What is a 'Corpus' in NLP?

A. A type of syntax error
B. A large, structured set of texts used for statistical analysis
C. A software used for processing text
D. The core algorithm of a chatbot

22 Which of the following describes 'Sentiment Analysis'?

A. Determining the emotional tone or opinion expressed in a text
B. Translating text from English to French
C. Converting speech to text
D. Summarizing a long article

23 In the phrase 'unhappiness', what is the root morpheme?

A. happy
B. un
C. ness
D. unhappy

24 Which step usually comes FIRST in a standard NLP pipeline?

A. Lemmatization
B. TF-IDF Calculation
C. POS Tagging
D. Tokenization

25 Why is 'World Knowledge' a challenge in NLP?

A. Language often relies on common sense and facts about the world that are not explicitly stated in the text
B. Dictionaries are not large enough
C. Computers do not have enough memory
D. Grammar rules are too strict

26 What is the Porter Stemmer?

A. A widely used algorithm for suffix stripping (stemming)
B. A method for calculating IDF
C. A database of stop words
D. A tool for syntax analysis

27 When might you choose NOT to remove stop words?

A. When performing simple bag-of-words classification
B. When analyzing general topic trends
C. When trying to reduce dataset size
D. When searching for specific phrases like 'to be or not to be'

28 What is 'Referential Ambiguity' usually associated with?

A. Anaphora resolution (pronouns)
B. Word definitions
C. Spelling errors
D. Speech recognition

29 Which of the following is a 'Bound Morpheme'?

A. Table
B. Dog
C. Eat
D. -ing

30 What is the result of applying a tokenizer to the string 'Hello, world!'?

A. ['Hello, world!']
B. ['Hello', ',', 'world', '!']
C. ['Hello', 'world']
D. ['H', 'e', 'l', 'l', 'o']

31 A high TF-IDF score for a word in a specific document indicates:

A. The word is a stop word
B. The word is frequent in that specific document but rare in the overall corpus
C. The word is rare in that document
D. The word is very common across all documents

32 Which area of NLP deals with the sound units of language?

A. Pragmatics
B. Syntax
C. Phonology
D. Morphology

33 Which of the following best describes 'Compositional Semantics'?

A. The meaning is random
B. The meaning is determined by the tone of voice
C. The meaning of the whole is determined by the meanings of the parts and how they are assembled
D. The meaning is determined solely by the length of the sentence

34 In the context of text processing, what does 'Case Folding' refer to?

A. Identifying proper nouns
B. Folding the paper the text is printed on
C. Converting all characters to the same case (usually lowercase)
D. Removing punctuation

35 Which of the following is NOT a typical application of NLP?

A. Image Compression
B. Grammar Checkers
C. Virtual Assistants (Siri, Alexa)
D. Stock Market Prediction using news headlines

36 What is a 'Bag of Words' (BoW) model?

A. A sophisticated syntactic parser
B. A physical bag containing dictionaries
C. A list of stop words
D. A representation of text that describes the occurrence of words but ignores order and grammar

37 Why is 'Slang' a challenge for NLP?

A. It is always in uppercase
B. It is too formal
C. It uses too many vowels
D. It changes rapidly and may not appear in standard dictionaries

38 In the sentence 'Time flies like an arrow', the word 'flies' could be a verb or a noun. This is:

A. Stop word Ambiguity
B. Phonetic Ambiguity
C. Pragmatic Ambiguity
D. Part-of-Speech (POS) Ambiguity

39 If a corpus has 1000 documents and the word 'biology' appears in 1000 of them, what is likely true about its IDF value?

A. It will be zero or very close to zero
B. It will be very high
C. It will be 1000
D. It cannot be calculated

40 Which processing technique requires Part-of-Speech (POS) tagging to be effective?

A. Simple Tokenization
B. Lowercasing
C. Stop word removal
D. Lemmatization

41 Which of the following is considered a 'Free Morpheme'?

A. -ly
B. -ed
C. re-
D. town

42 The Turing Test was proposed by Alan Turing to determine:

A. The accuracy of machine translation
B. If a machine can exhibit intelligent behavior equivalent to, or indistinguishable from, that of a human
C. The memory capacity of a hard drive
D. The speed of a computer

43 What is 'Discourse Analysis'?

A. Analyzing language use beyond the sentence boundary
B. Converting audio to text
C. Analyzing single words in isolation
D. Sorting words alphabetically

44 In the TF-IDF formula, if term 't' appears 5 times in a document of 100 words, the Normalized TF is:

A. 5
B. 500
C. 0.05
D. 95

45 What is the primary motivation for 'Text Normalization' (like stemming/lemmatization) in search engines?

A. To match a user's query (e.g., 'running') with documents containing related forms (e.g., 'run')
B. To remove all verbs
C. To translate the query
D. To make the text look pretty

46 Which linguistic field studies how words combine to form phrases and sentences?

A. Syntax
B. Semantics
C. Phonetics
D. Morphology

47 When tokenizing text from social media (e.g., Twitter/X), what is a specific challenge?

A. The text is too long
B. There are no vowels
C. It is always formal English
D. Handling hashtags (#) and mentions (@)

48 What defines a 'Regular Language' in the context of automata and NLP?

A. A language spoken by humans
B. A language with no slang
C. A language that can be described by a regular expression
D. A programming language

49 Which of the following sentences best illustrates 'Semantic Ambiguity' (not Syntactic)?

A. Visiting relatives can be boring.
B. The bank was closed.
C. Flying planes can be dangerous.
D. I saw the man with the telescope.

50 What is the relationship between AI and NLP?

A. NLP replaces AI
B. NLP is a subfield of AI focused on language
C. They are completely unrelated fields
D. AI is a subfield of NLP