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 execute programming languages faster
B. To enable computers to understand, interpret, and generate human language
C. To encrypt human language for security
D. To store large databases of text

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

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

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

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

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

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

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

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

6 What is the difference between Syntax and Semantics?

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

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

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

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

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

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

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

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

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

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

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

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

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

13 What is the main objective of Stemming?

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

14 How does Lemmatization differ from Stemming?

A. Lemmatization simply chops off suffixes
B. Lemmatization is faster but less accurate
C. There is no difference
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. ponies
B. po
C. pony
D. poni

16 What does TF-IDF stand for?

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

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

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

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 diminish the weight of terms that occur very frequently in the document set and increase the weight of terms that occur rarely
D. To give higher weight to common words like 'the'

19 What is 'Lexical Ambiguity'?

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

20 Which of the following is a challenge in Tokenization?

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

21 What is a 'Corpus' in NLP?

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

22 Which of the following describes 'Sentiment Analysis'?

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

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

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

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

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

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. Grammar rules are too strict
C. Computers do not have enough memory
D. Dictionaries are not large enough

26 What is the Porter Stemmer?

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

27 When might you choose NOT to remove stop words?

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

28 What is 'Referential Ambiguity' usually associated with?

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

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

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

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

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

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 rare in that document
C. The word is very common across all documents
D. The word is frequent in that specific document but rare in the overall corpus

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

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

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

A. The meaning is random
B. The meaning of the whole is determined by the meanings of the parts and how they are assembled
C. The meaning is determined by the tone of voice
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. Removing punctuation
B. Identifying proper nouns
C. Folding the paper the text is printed on
D. Converting all characters to the same case (usually lowercase)

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

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

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

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

37 Why is 'Slang' a challenge for NLP?

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

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

A. Part-of-Speech (POS) Ambiguity
B. Phonetic Ambiguity
C. Stop word Ambiguity
D. Pragmatic 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 cannot be calculated
B. It will be zero or very close to zero
C. It will be 1000
D. It will be very high

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

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

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

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

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

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

43 What is 'Discourse Analysis'?

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

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

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

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

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

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

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

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

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

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

A. A language with no slang
B. A language spoken by humans
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. Flying planes can be dangerous.
B. Visiting relatives can be boring.
C. The bank was closed.
D. I saw the man with the telescope.

50 What is the relationship between AI and NLP?

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