Quiz Space

Intro to NLP Quiz 1: 27 October 2024 (September 2024 term)

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

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

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”.

23 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Intro to NLP Quiz 1 27 Oct 2024 paper

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. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureIntro to NLP Quiz 1 27 Oct 2024 at a glance
TermSeptember 2024 term
SubjectIntroduction to Natural Language Processing
Course codeBSDA5005
Questions26
Marks50
Duration120 min
MCQ17
MSQ4
Numerical5
Official paperIIT M DEGREE AN EXAM QDB2 27 Oct 2024
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More Intro to NLP