uiz Space

September 2024 term · Introduction to Natural Language Processing · BSDA5005

Introduction to Natural Language Processing Quiz 1: 27 October 2024 (September 2024 term)

The IIT Madras BS Introduction to Natural Language Processing (Intro to NLP) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term: 26 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
26
Marks
50
Duration
120 min
MCQ
17
MSQ
4
Numerical
5

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 27 Oct 2024 · No negative marking.

Question 1

+3 marksOne correct option

In a whimsical language where adjectives change based on the weather, an FST is designed to transform “happy” into “happyrain” on rainy days and “happysun” on sunny days. If the FST has 5 states for “happy” and 3 states each for weather conditions, what’s the minimum total number of states required?

  1. A

    8

  2. B

    11

  3. C

    13

  4. D

    15

Show answer

Correct answer

  • B

    11

Question 2

+3 marksOne correct option

An FSA recognizes words that begin with "un" and end with "ed". The state transitions are defined as follows:

States:

  • q0q_0 (Initial state)
  • q1q_1 (After 'u')
  • q2q_2 (After 'n')
  • q3q_3 (After 'e')
  • q4q_4 (After 'd', accepting state)

Transitions:

  • From q0q_0 on 'u', go to q1q_1
  • From q1q_1 on 'n', go to q2q_2
  • From q2q_2 on any other character, stay in q2q_2
  • From q2q_2 on 'e', go to q3q_3
  • From q3q_3 on 'd', go to q4q_4 (Accepting state)

For which of the following inputs will the FSA reach the accepting state?

  1. A

    “unlearned”

  2. B

    “undefined”

  3. C

    “unfinished”

  4. D

    All of these

Show answer

Correct answer

  • D

    All of these

Question 3

+3 marksOne correct option

An FSA recognizes binary strings that end with '01'. The state transitions are defined as follows:

States:

  • q0q_0 (Initial state)
  • q1q_1 (After '0')
  • q2q_2 (After '1', accept state)

Transitions:

  • From q0q_0 on input '0', go to q1q_1
  • From q1q_1 on input '1', go to q2q_2 (accepting state)
  • From q2q_2 on input '0', go back to q1q_1
  • From q2q_2 on input '1', stay in q2q_2

What is the output of this FSA for the input string "1101"?

  1. A

    The string is rejected.

  2. B

    The string is accepted.

  3. C

    The FSA transitions to an error state.

  4. D

    The output is “11”.

Show answer

Correct answer

  • B

    The string is accepted.

Question 4

+3 marksOne correct option

In a graph-based dependency parser using edge-factored scoring, the following edge scores have been calculated for a sentence:

What is the score of the maximum spanning tree (assuming all other possible edges have lower scores)?

  1. A

    1.5

  2. B

    1.6

  3. C

    1.7

  4. D

    1.8

Show answer

Correct answer

  • B

    1.6

Question 5

+3 marksOne correct option

In evaluating a dependency parser, the following results were obtained on a test set of 500 words: • 450 words have the correct head
• 425 words have both the correct head and correct label
• 475 words have the correct label
What are the Unlabeled Attachment Score (UAS) and Label Accuracy Score (LS)?

  1. A

    UAS: 90%, LS: 85%

  2. B

    UAS: 90%, LS: 95%

  3. C

    UAS: 85%, LS: 95%

  4. D

    UAS: 85%, LS: 90%

Show answer

Correct answer

  • B

    UAS: 90%, LS: 95%

Question 6

+2 marksOne correct option

A legal document analysis tool is being developed to identify key clauses. If the tool correctly identifies 80 relevant clauses out of 100 actual relevant clauses, and incorrectly flags 20 irrelevant clauses as relevant, what is the F1 score of the tool?

  1. A

    0.80

  2. B

    0.82

  3. C

    0.85

  4. D

    0.89

Show answer

Correct answer

  • B

    0.82

Question 7

+2 marksOne correct option

In the sentence “The old Shakespearean Globe Theatre on the banks of the Thames hosted a modern rendition of ’A Midsummer Night’s Dream’”, which phrase is NOT a Named Entity?

  1. A

    Shakespearean

  2. B

    Globe Theatre

  3. C

    Thames

  4. D

    A Midsummer Night’s Dream

Show answer

Correct answer

  • A

    Shakespearean

Question 8

+1 markOne correct option

In processing the sentence “After John beat him in chess, Bill lost his Queen,” which NLP level is most crucial for understanding “Queen” ?

  1. A

    Lexical

  2. B

    Semantic

  3. C

    Discourse

  4. D

    Pragmatic

Show answer

Correct answer

  • B

    Semantic

Question 9

+1 markOne correct option

Anaphora resolution, which falls under the discourse level of NLP, can be fully solved using only syntactic parsing techniques.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 10

+1 markOne correct option

In the sentence “I saw her duck,” morphological analysis alone is sufficient to determine whether “duck” is being used as a noun or a verb.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 11

+1 markOne correct option

What is a primary feature of agglutinative languages?

  1. A

    Morphemes are fused together, making them inseparable.

  2. B

    Morphemes are added like beads on a string, each representing one grammatical feature.

  3. C

    Each word consists of a single morpheme.

  4. D

    Morphology does not exist in these languages.

Show answer

Correct answer

  • B

    Morphemes are added like beads on a string, each representing one grammatical feature.

Question 12

+1 markOne correct option

In morphological analysis, what is the primary difference between Item and Arrangement (IA) and Item and Process (IP) approaches?

  1. A

    IA focuses on concatenation, while IP uses rules and allomorphs.

  2. B

    IA is used for synthetic languages, while IP is for analytic languages.

  3. C

    IA is word-based, while IP is morpheme-based.

  4. D

    IA uses paradigms, while IP uses linear sequencing.

Show answer

Correct answer

  • A

    IA focuses on concatenation, while IP uses rules and allomorphs.

Question 13

+1 markOne correct option

Context-Free Grammar (CFG) rules can only generate sentences with a fixed word order.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 14

+1 markOne correct option

The CKY parsing algorithm requires the grammar to be in Chomsky Normal Form (CNF).

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • A

    Yes

Question 15

+1 markOne correct option

Treebanks are automatically generated without human intervention.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 16

+1 markOne correct option

In the sentence “He gave her a book,” the dependency relationship between “gave” and “book” is labeled as nsubj.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 17

+1 markOne correct option

In the sentence “The cat sat on the mat,” the prepositional phrase “on the mat” serves as a dependent of “sat” in a case relation.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 18

+2 marksOne or more correct options

Which of the following NLP tasks would benefit from processing at the discourse level?

Select all that apply.

  1. A

    Generating a coherent multi-paragraph story

  2. B

    Summarizing a long document

  3. C

    Resolving pronouns in a conversation

  4. D

    Determining the sentiment of a single word

  5. E

    Identifying the topic shifts

Show answer

Correct answers

  • A

    Generating a coherent multi-paragraph story

  • B

    Summarizing a long document

  • C

    Resolving pronouns in a conversation

  • E

    Identifying the topic shifts

Question 19

+2 marksOne or more correct options

Which of the following are characteristics of Naive Bayes classifiers? (Select all that apply)

Select all that apply.

  1. A

    Assumes independence between features

  2. B

    Often used for POS tagging and NER

  3. C

    Requires a large amount of training data

  4. D

    Provides probabilistic outputs

  5. E

    Cannot handle multi-class classification

Show answer

Correct answers

  • A

    Assumes independence between features

  • B

    Often used for POS tagging and NER

  • D

    Provides probabilistic outputs

Question 20

+2 marksOne or more correct options

Which of the following are applications of clustering in NLP tasks? (Select all that apply)

Select all that apply.

  1. A

    Grouping similar entities in NER

  2. B

    Unsupervised POS tagging

  3. C

    Sentiment analysis

  4. D

    Word clustering into syntactic categories

  5. E

    Machine translation

Show answer

Correct answers

  • A

    Grouping similar entities in NER

  • B

    Unsupervised POS tagging

  • D

    Word clustering into syntactic categories

Question 21

+1 markOne or more correct options

In developing a sarcasm detection system for social media posts, which levels of NLP processing would be most crucial?

Select all that apply.

  1. A

    Phonological

  2. B

    Semantic

  3. C

    Discourse

  4. D

    Pragmatic

  5. E

    Syntactic

Show answer

Correct answers

  • B

    Semantic

  • C

    Discourse

  • D

    Pragmatic

Question 22

+3 marksNumerical answer

In a Hidden Markov Model (HMM) for POS tagging, the transition probability from the tag NOUN (noun) to VERB (verb) is 0.3, and the transition probability from VERB (verb) to DET (determiner) is 0.4. What is the joint transition probability of the sequence NOUN → VERB → DET?

Show answer

Correct answer: 0.12 (accepted within ±0.01)

Question 23

+3 marksNumerical answer

In a Conditional Random Field (CRF) model for POS tagging, if there are 6 features per word and the sentence has 10 words, how many total feature values does the model compute for this sentence?

Show answer

Correct answer: 60

Question 24

+3 marksNumerical answer

In a POS tagging model, out of 500 total predictions made, 420 were correct. What is the accuracy of the model as a percentage (rounded to two decimal places)?

Show answer

Correct answer: 84 (accepted within ±1)

Question 25

+3 marksNumerical answer

In a binary classification task, the number of True Positives (TP) is 80, and the number of False Positives (FP) is 20. What is the precision of the model as a decimal (rounded to two decimal places)?

Show answer

Correct answer: 0.8 (accepted within ±0.01)

Question 26

+2 marksNumerical answer

In a semantic role labeling evaluation, a model has identified 100 correct semantic roles out of 120 total semantic roles it predicted. What is the precision of the model as a decimal (rounded to two decimal places)?

Show answer

Correct answer: 0.825 (accepted within ±0.025)