β˜‘ MCQ PRACTICE

Natural Language Processing Unit 2

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

πŸ“š Natural Language Processing
πŸ“– Unit 2
🎯 MCQs

Natural Language Processing - Unit-2

1
Parsing is the process of
Atranslating a sentence
Bcounting the words of a sentence
Canalysing a sentence to determine its syntactic structure
Dtagging the sentiment of a sentence
Correct Answer analysing a sentence to determine its syntactic structure
2
A treebank is
Aa corpus annotated with syntactic structure
Ba list of stop words
Ca dictionary of synonyms
Da collection of speech recordings
Correct Answer a corpus annotated with syntactic structure
3
The Penn Treebank is a well-known annotated corpus of
AEnglish text
BChinese speech
Cprogramming code
Dmathematical formulas
Correct Answer English text
4
A constituency representation of a sentence is a
Alist of word counts
Btable of probabilities
Cphrase structure tree
Dsequence of letters
Correct Answer phrase structure tree
5
A dependency representation of a sentence shows
Aonly the word frequencies
Bonly the nonterminal symbols
Cthe sound of each word
Dhead–dependent relations between words
Correct Answer head–dependent relations between words
6
A context-free grammar consists of
Aonly terminals
Bonly a lexicon
Conly probabilities
Dterminals, non-terminals, production rules and a start symbol
Correct Answer terminals, non-terminals, production rules and a start symbol
7
Top-down parsing begins with
Athe input words only
Bthe start symbol and expands it using the rules
Cthe last word
Dthe probability table
Correct Answer the start symbol and expands it using the rules
8
Bottom-up parsing begins with
Athe start symbol
Bthe input words and builds up towards the start symbol
Cthe grammar rules only
Dthe parse tree
Correct Answer the input words and builds up towards the start symbol
9
The CKY algorithm requires the grammar to be in
ABackus–Naur Form only
BChomsky Normal Form
CGreibach Normal Form only
Dany unrestricted form
Correct Answer Chomsky Normal Form
10
The time complexity of the CKY algorithm for a sentence of length n is
AO(n)
BO(nΒ³)
CO(log n)
DO(2ⁿ)
Correct Answer O(nΒ³)
11
The Earley parser
Aworks only for regular grammars
Bhandles arbitrary context-free grammars using dynamic programming
Cneeds no grammar
Dworks only in Chomsky Normal Form
Correct Answer handles arbitrary context-free grammars using dynamic programming
12
A chart parser stores
Aonly the final answer
Bthe training corpus
Cpartial parse results in a chart to avoid recomputation
Dthe word embeddings
Correct Answer partial parse results in a chart to avoid recomputation
13
A shift-reduce parser uses
Aa stack and an input buffer
Ba hash table only
Ca neural network only
Da queue of probabilities only
Correct Answer a stack and an input buffer
14
Left recursion is a problem for
Abottom-up chart parsers only
Btokenizers
Cstemmers
Dtop-down recursive descent parsers
Correct Answer top-down recursive descent parsers
15
In 'I saw the man with a telescope', the multiple possible parses are an example of
Alexical ambiguity only
Bno ambiguity
Cspelling errors
Dstructural (PP-attachment) ambiguity
Correct Answer structural (PP-attachment) ambiguity
16
A probabilistic context-free grammar (PCFG) is
Aa grammar without rules
Ba dictionary
Ca context-free grammar whose rules have probabilities
Da neural network
Correct Answer a context-free grammar whose rules have probabilities
17
In a PCFG, the probabilities of all rules with the same left-hand side
Asum to 0
Bare all equal to 0.5
Care all greater than 1
Dsum to 1
Correct Answer sum to 1
18
A treebank grammar is obtained by
Awriting rules at random
Breading the grammar rules off the annotated trees
Ctranslating the sentences
Ddeleting all trees
Correct Answer reading the grammar rules off the annotated trees
19
In a phrase structure tree, NP stands for
Anoun phrase
Bnew phrase
Cnon-terminal path
Dnamed predicate
Correct Answer noun phrase
20
The head of a phrase is
Athe first letter of the phrase
Bthe word that determines the syntactic category of the phrase
Calways a punctuation mark
Dthe longest word
Correct Answer the word that determines the syntactic category of the phrase
21
A non-projective dependency tree has
Acrossing dependency arcs
Bno arcs
Conly one word
Dno root
Correct Answer crossing dependency arcs
22
PARSEVAL measures are used to evaluate parsers with
Aperplexity
Blabelled precision and recall
Ccompression ratio
Dedit distance only
Correct Answer labelled precision and recall
23
Universal Dependencies is
Aa speech recognizer
Ba type of neural network
Ca spelling checker
Da cross-linguistically consistent dependency annotation scheme
Correct Answer a cross-linguistically consistent dependency annotation scheme
24
Part-of-speech tags label words with
Atheir sentiment scores
Btheir grammatical categories
Ctheir pronunciations
Dtheir frequencies
Correct Answer their grammatical categories
25
The Viterbi algorithm applied to a PCFG finds
Athe shortest sentence
Bthe most probable parse
Call possible words
Dthe least probable parse
Correct Answer the most probable parse

Fill in the Blanks

26 A corpus annotated with syntactic structure is called a __________.
Correct Answer treebank
27 The Penn __________ is a well-known English annotated corpus.
Correct Answer Treebank
28 CFG stands for Context-__________ Grammar.
Correct Answer Free
29 __________-down parsing starts from the start symbol and expands the rules.
Correct Answer Top
30 __________-up parsing starts from the input words.
Correct Answer Bottom
31 The CKY algorithm needs the grammar in __________ Normal Form.
Correct Answer Chomsky
32 The CKY algorithm runs in O(n^__________) time.
Correct Answer 3
33 The __________ parser uses dynamic programming and can parse any context-free grammar.
Correct Answer Earley
34 A __________ parser stores partial results in a table to avoid recomputation.
Correct Answer chart
35 PCFG stands for Probabilistic __________ Grammar.
Correct Answer Context-Free
36 A dependency grammar represents the relation between a __________ and its dependents.
Correct Answer head
37 In a parse tree, NP stands for __________ phrase.
Correct Answer noun
38 Left __________ can make a top-down parser loop forever.
Correct Answer recursion
39 The sentence 'I saw the man with a telescope' shows PP-__________ ambiguity.
Correct Answer attachment
40 A shift-reduce parser uses a stack and an input __________.
Correct Answer buffer
← Back to All MCQs