Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.


Overall MCQs for Reference

  1. Which programming language is primarily used for NLTK?
    a. Java
    b. Python
    c. C++
    d. R
    Answer: b. Pythonrealpython+1​
  2. What does NLTK stand for?
    a. Natural Learning Toolkit
    b. Natural Language Toolkit
    c. Network Language Tool Kit
    d. Neural Language Toolkit
    Answer: b. Natural Language Toolkititerate+1​
  3. Which task is commonly performed by NLTK?
    a. Image segmentation
    b. Text tokenization
    c. Speech synthesis
    d. Video annotation
    Answer: b. Text tokenizationtechnaureus+1​
  4. What is “tokenization” in NLP?
    a. Encrypting data
    b. Translating text
    c. Splitting text into words or sentences
    d. Classifying images
    Answer: c. Splitting text into words or sentencesiterate+1​
  5. Which function is used for word tokenization in NLTK?
    a. nltk.word_token()
    b. nltk.tokenize.words()
    c. nltk.word_tokenize()
    d. nltk.tokenize_word()
    Answer: c. nltk.word_tokenize()nltk+1​
  6. “Stopwords” in NLTK refers to:
    a. Words to emphasize
    b. Words to ignore like “the”, “is”, etc.
    c. Code comments
    d. Programming keywords
    Answer: b. Words to ignore like “the”, “is”, etc.geeksforgeeks+1​
  7. How can you access stopwords in NLTK?
    a. nltk.remove_stopwords()
    b. nltk.corpus.stopwords.words()
    c. stopwords.remove()
    d. nltk.stopword_list()
    Answer: b. nltk.corpus.stopwords.words()geeksforgeeks+1​
  8. Which function is used in NLTK for sentence tokenization?
    a. nltk.tokenize.sentences()
    b. nltk.sent_tokenize()
    c. nltk.sentence_tokenize()
    d. nltk.tokenize.sentence()
    Answer: b. nltk.sent_tokenize()wayground+1​
  9. What is stemming in NLP?
    a. Grouping sentences
    b. Reducing words to their root form
    c. Summarizing text
    d. Expanding contractions
    Answer: b. Reducing words to their root formtechnaureus+1​
  10. Which NLTK class is commonly used for stemming English words?
    a. StemPorter
    b. PorterStemmer
    c. Lemmatizer
    d. WordStemmer
    Answer: b. PorterStemmerwayground+1​
  11. What does POS tagging stand for?
    a. Part-of-sentence tagging
    b. Part-of-speech tagging
    c. Position-of-string tagging
    d. Pattern-of-syntax tagging
    Answer: b. Part-of-speech taggingiterate+1​
  12. Which function in NLTK is used for POS tagging?
    a. nltk.tag_pos()
    b. nltk.pos_tag()
    c. nltk.tagging.pos()
    d. nltk.PosTag()
    Answer: b. nltk.pos_tag()realpython+1​
  13. What does “corpus” refer to in NLTK?
    a. A function library
    b. A collection of texts
    c. An algorithm
    d. A programming language
    Answer: b. A collection of textsgtbit+1​
  14. Which corpus is NOT included in NLTK?
    a. Brown Corpus
    b. Penn Treebank Corpus
    c. Gutenberg Corpus
    d. Common Crawl Corpus
    Answer: d. Common Crawl Corpusnltk+1​
  15. What is lemmatization?
    a. Removing stopwords
    b. Finding text topics
    c. Reducing words to their base or dictionary form
    d. Tokenizing text
    Answer: c. Reducing words to their base or dictionary formtechnaureus+1​
  16. Which of these is an NLTK lemmatizer?
    a. PorterStemmer
    b. LancasterStemmer
    c. WordNetLemmatizer
    d. TextBlobLemmatizer
    Answer: c. WordNetLemmatizerrealpython+1​
  17. What does the NLTK “FreqDist” function compute?
    a. Sentence distance
    b. Frequency distribution of words
    c. Document similarity
    d. Named entity relations
    Answer: b. Frequency distribution of wordsnltk+1​
  18. Which corpus can be used for training a POS tagger in NLTK?
    a. IMDB
    b. Penn Treebank
    c. MNIST
    d. ImageNet
    Answer: b. Penn Treebankwayground+1​
  19. In NLTK, which function is used for n-gram generation?
    a. nltk.generate()
    b. nltk.ngrams()
    c. nltk.util.ngrams()
    d. nltk.n_gram()
    Answer: c. nltk.util.ngrams()realpython+1​
  20. Which of the following is NOT a stemmer in NLTK?
    a. PorterStemmer
    b. SnowballStemmer
    c. LancasterStemmer
    d. BaseStemmer
    Answer: d. BaseStemmerwayground+1​
  21. For which machine learning task is NLTK NOT typically used?
    a. Image classification
    b. Sentiment analysis
    c. Named entity recognition
    d. Text classification
    Answer: a. Image classificationigmguru+1​
  22. What is the primary language of the Brown corpus?
    a. Spanish
    b. English
    c. French
    d. Hindi
    Answer: b. Englishnltk+1​
  23. Which NLTK function helps to split a paragraph into sentences?
    a. nltk.split()
    b. nltk.sent_tokenize()
    c. nltk.sentence_split()
    d. nltk.tokenize_sentences()
    Answer: b. nltk.sent_tokenize()wayground+1​
  24. What is the output type of nltk.word_tokenize()?
    a. String
    b. Dictionary
    c. List
    d. Integer
    Answer: c. Listrealpython+1​
  25. Which NLTK tool can be used to chunk (group) phrases in text?
    a. Chunker
    b. RegexpParser
    c. PhraseTagger
    d. SyntaxChunker
    Answer: b. RegexpParsernltk+1​
  26. What is the primary use of the ‘stopwords’ corpus in NLTK?
    a. Text compression
    b. Removing common but insignificant words
    c. Normalizing numbers
    d. Creating new algorithms
    Answer: b. Removing common but insignificant wordsgeeksforgeeks+1​
  27. Which is NOT a valid POS tag in the Penn Treebank tag set?
    a. NN
    b. VB
    c. JJ
    d. XX
    Answer: d. XXwayground+1​
  28. NLTK’s ‘concordance’ function helps in:
    a. Plotting graphs
    b. Displaying word context in text
    c. Removing stopwords
    d. Stemming documents
    Answer: b. Displaying word context in textrealpython+1​
  29. What is a Named Entity Recognizer (NER)?
    a. A POS tagger
    b. An algorithm that extracts real-world objects from text
    c. A lemmatizer
    d. A spell checker
    Answer: b. An algorithm that extracts real-world objects from textiterate+1​
  30. Which module would you use to draw a dispersion plot in NLTK?
    a. nltk.plots
    b. nltk.draw
    c. nltk.text
    d. nltk.graphics
    Answer: c. nltk.textnltk+1​
  31. Which file format is NOT typically used by NLTK corpora?
    a. TXT
    b. XML
    c. JPEG
    d. JSON
    Answer: c. JPEGrealpython+1​
  32. Which corpus provides a list of commonly used English words for stopword removal?
    a. Gutenberg
    b. stopwords
    c. wordnet
    d. webtext
    Answer: b. stopwordsgeeksforgeeks+1​
  33. What does the function nltk.download() do?
    a. Installs Python
    b. Installs NLTK package
    c. Downloads NLTK datasets/corpora
    d. Uninstalls NLTK
    Answer: c. Downloads NLTK datasets/corporanltk+1​
  34. Which stemmer is the most aggressive among those in NLTK?
    a. PorterStemmer
    b. SnowballStemmer
    c. LancasterStemmer
    d. WordNetLemmatizer
    Answer: c. LancasterStemmerrealpython+1​
  35. Which function in NLTK can count the frequency of each token in a list?
    a. CountTokens()
    b. unique_counts()
    c. FreqDist()
    d. word_count()
    Answer: c. FreqDist()nltk+1​
  36. The output of nltk.pos_tag([‘cat’, ‘sits’]) is:
    a. [(‘cat’, ‘NN’), (‘sits’, ‘VBZ’)]
    b. {‘cat’: ‘NN’, ‘sits’: ‘VBZ’}
    c. [‘cat’, ‘NN’, ‘sits’, ‘VBZ’]
    d. [(‘cat’, ‘VB’), (‘sits’, ‘NN’)]
    Answer: a. [(‘cat’, ‘NN’), (‘sits’, ‘VBZ’)]realpython+1​
  37. Which package comes built-in for lemmatization in NLTK?
    a. WordNet
    b. CMUdict
    c. Brown
    d. Text8
    Answer: a. WordNetnltk+1​
  38. What does nltk.collocations.BigramAssocMeasures() help to identify?
    a. Image pairs
    b. Frequent bigram phrases in text
    c. Numeric associations
    d. Stopwords
    Answer: b. Frequent bigram phrases in textrealpython+1​
  39. Which function in NLTK helps find synonyms and antonyms?
    a. nltk.syn_ant()
    b. nltk.corpus.wordnet
    c. nltk.synset()
    d. nltk.lexicon()
    Answer: b. nltk.corpus.wordnetnltk+1​
  40. What is ‘chunking’ in NLP?
    a. Dividing text into unrelated paragraphs
    b. Grouping words into meaningful phrases
    c. Calculating text sum
    d. Removing stopwords
    Answer: b. Grouping words into meaningful phrasesrealpython+1​
  41. For what purpose is the NLTK NaiveBayesClassifier used?
    a. Finding stopwords
    b. Text classification
    c. Stemming
    d. Tokenization
    Answer: b. Text classificationnltk+1​
  42. In NLTK, what does corpus.words(‘en’) return?
    a. List of sentences
    b. List of English words
    c. Document titles
    d. Paragraphs
    Answer: b. List of English wordsrealpython+1​
  43. How do you access the Gutenberg corpus in NLTK?
    a. nltk.corpus.gutenberg
    b. nltk.gutenberg()
    c. nltk.read_gutenberg()
    d. nltk.corpus.gut()
    Answer: a. nltk.corpus.gutenbergnltk+1​
  44. Which method is best for removing punctuation in text processing?
    a. nltk.punctuation.remove()
    b. Use string.punctuation and filtering
    c. nltk.clean_punct()
    d. strip_punctuation()
    Answer: b. Use string.punctuation and filteringrealpython+1​
  45. For topic modeling, which library is often combined with NLTK?
    a. pandas
    b. Gensim
    c. NumPy
    d. SciPy
    Answer: b. Gensimtechnaureus+1​
  46. Named Entity Recognition (NER) in NLTK is performed using:
    a. ne_chunk()
    b. name_tag()
    c. entity_recognizer()
    d. name_chunk()
    Answer: a. ne_chunk()nltk+1​
  47. What role does NLTK play in sentiment analysis?
    a. Hardware acceleration
    b. Providing tools to preprocess, tokenize, and classify text
    c. Generating images
    d. Data encryption
    Answer: b. Providing tools to preprocess, tokenize, and classify textigmguru+1​
  48. What is the command to import the word_tokenize function from NLTK?
    a. from nltk.tokenize import word_tokenize
    b. import word_tokenize from nltk.tokenize
    c. from tokenization import word_tokenize
    d. from nltk.word_tokenize import tokenize
    Answer: a. from nltk.tokenize import word_tokenizerealpython+1​
  49. What is the result of calling nltk.word_tokenize(“Hello World!”)?
    a. [“Hello World!”]
    b. [“Hello”, “World”, “!”]
    c. [“Hello”, “World!”]
    d. [“Hello”, “World”]
    Answer: b. [“Hello”, “World”, “!”]nltk+1​
  50. Which function is used in NLTK to create frequency plots of word usage?
    a. plot_words()
    b. FreqDist().plot()
    c. wordgraph.plot()
    d. plt.freq()
    Answer: b. FreqDist().plot()realpython+1​
  1. https://realpython.com/nltk-nlp-python/
  2. https://www.nltk.org
  3. https://www.iterate.ai/ai-glossary/nltk-natural-language-toolkit-information
  4. https://www.technaureus.com/blog-detail/nltk-natural-language-toolkit-for-data-science
  5. https://www.geeksforgeeks.org/quizzes/natural-language-processing-quiz/
  6. https://wayground.com/admin/quiz/644bbaf0bc9673001e9aadc0/nlp-quiz-1-exam
  7. https://www.gtbit.ac.in/assets/img/pdf/NLP%20Question%20bank.pdf
  8. https://www.igmguru.com/blog/machine-learning-mcqs
  9. https://www.sanfoundry.com/artificial-intelligence-mcqs-natural-language-processing-1/
  10. https://aimcqs.com/natural-language-processing
  11. https://technicalblog.in/languagewise-mcqs/artificial-intelligence/mcqs-on-machine-learning/
  12. https://www.studocu.com/in/document/vel-tech-multi-tech-dr-rangarajan-dr-sakunthala-engineering-college/computer-science/nlp-mcq-one-marks-with-answers/99071619
  13. https://gtu-mcq.com/BE/Computer-Engineering/Semester-8/2180703/5172/MCQs?q=9aZHDjblmRk%3D
  14. https://thedatamonk.com/100-natural-language-processing-questions-in-python/
  15. https://www.aionlinecourse.com/ai-quiz-questions/machine-learning/natural-language-processing-ml
  16. https://www.placementpreparation.io/mcq/natural-language-processing/
  17. https://www.geeksforgeeks.org/python/NLTK-NLP/
  18. https://phdtalks.org/2021/05/mcqs-on-natural-language-processing-with-answers-pdf.html
  19. https://www.vskills.in/practice/natural-language-processing-using-python-mock-test
  20. https://www.ccbp.in/blog/articles/python-mcqs

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!