wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Natural Language Processing CT-3

Total questions: 20

Worksheet time: 40mins

Name
Class
Date
1.

Which, Among the Following Trees, is the Pictorial Identification of the Derivation?

a)

The binary tree

b)

The oct tree

c)

The parse tree

d)

None of the above

2.

The Compiler Detects Which Kind of Errors?

a)

Logical errors only

b)

Grammatical errors only

c)

Both grammatical and logical errors

d)

Neither logical nor grammatical error

3.

In Which of the following Derivations is the Right-Most Non-Terminal Symbol Replaced at Every Step?

a)

Rightmost

b)

Right look ahead

c)

Right claim

d)

Right non-terminal

4.

Which of the following is the Most Basic Phase of Structured Grammar?

a)

Context-free grammar

b)

Regular grammar

c)

Context-sensitive grammar

d)

All of the above

5.

Which Parser is Known as the Top-Down Parser?

a)

An LALR parser

b)

A LR parser

c)

Operator precedence parser

d)

Recursive descent parser

6.

Lexical Analyzer in the Compiler is Used For:

a)

Removing comments

b)

Breaking the syntaxes in the set of tokens

c)

Removing whitespace

d)

All of the above

7.

Which Tool is Used to Group Characters in Tokens in the Compiler?

a)

Parser

b)

Code optimizer

c)

Scanner

d)

Code generator

8.

What is the primary goal of chart parsing?

a)

To split sentences into words

b)

To efficiently parse sentences by avoiding redundant computations

c)

To generate random sentences

d)

To calculate the frequency of words

9.

What is the CYK (Cocke-Younger-Kasami) algorithm used for in chart parsing?

a)

Parsing context-free grammars

b)

Detecting ambiguous sentences

c)

Learning grammar rules

d)

Constructing dependency graphs

10.

In chart parsing, a chart typically represents:

a)

A weighted graph of sentence structures

b)

A dictionary of possible grammar rules

c)

A table storing intermediate parsing results

d)

A hierarchical representation of syntax

11.

In an Earley parser, what are dotted rules used for?

a)

Representing ambiguous grammar rules

b)

Tracking the current position in a grammar rule

c)

Representing completed parse trees

d)

Defining probabilistic weights

12.

Which of the following best describes a probabilistic context-free grammar (PCFG)?

a)

A grammar that assigns probabilities to each production rule to reflect their likelihood of occurrence.

b)

A grammar that defines a set of rules with equal probabilities for all productions.

c)

A grammar that is deterministic and cannot handle ambiguity in parsing.

d)

A grammar that only generates terminal symbols without intermediate non-terminal symbols.

13.

In a PCFG, how is the probability of a parse tree computed?

a)

By summing the probabilities of all production rules in the grammar.

b)

By multiplying the probabilities of the production rules used to derive the tree.

c)

By taking the maximum probability of the production rules in the tree.

d)

By dividing the total number of productions by the number of terminal symbols in the tree.

14.

How are the probabilities in a PCFG typically estimated?

a)

By using neural networks to predict rule probabilities

b)

By assigning equal probabilities to all rules in the grammar.

c)

By counting the frequency of rule applications in a treebank and normalizing them.

d)

By manually assigning probabilities to production rules.

15.

In dependency parsing, what is the role of a scoring function in a discriminative model?

a)

To calculate the likelihood of input sentences.

b)

To generate all possible parse trees.

c)

To assign probabilities to grammatical rules.

d)

To evaluate and rank candidate dependency graphs.

16.

What is a common challenge in applying discriminative models to dependency parsing?

a)

Handling noisy or unstructured text input

b)

The inability to model conditional probabilities

c)

Limited availability of generative grammar rules

d)

Computing probabilities for every parse tree in a joint model

17.

Which of the following machine learning techniques is commonly used in discriminative models for dependency parsing?

a)

Naive Bayes Classifier

b)

Principal Component Analysis (PCA)

c)

Linear classifiers such as Support Vector Machines (SVM)

d)

K-Nearest Neighbors (KNN)

18.

What kind of features are typically used in discriminative models for dependency parsing?

a)

Handcrafted and/or learned features such as word pairs, part-of-speech tags, and distance between words

b)

Probabilistic rules derived from corpora

c)

Context-free grammar rules

d)

Only semantic features of words

19.

Which of the following is a widely used treebank in NLP?

a)

WordNet

b)

BERT Treebank

c)

TF-IDF Treebank

d)

Penn Treebank

20.

What is the primary purpose of a treebank in Natural Language Processing (NLP)?

a)

To train neural networks for sentiment analysis.

b)

To generate random text using pre-trained models.

c)

To provide syntactic annotations for sentences.

d)

To store word embeddings for vocabulary expansion.