Font size
WorksheetsMultiple Choice Questions on Programming and NLP
Total questions: 83
Worksheet time: 42mins
What is a variable in Python?
A reusable block of code
A container for storing data values
A grammatical structure
A pointer to another node
Which data type in Python is immutable?
List
Dictionary
Tuple
Set
What does controlflow in Python refer to?
Defining classes and objects
Conditional statements and loops
Storing data in nodes
Analyzing sentence meaning
In Python, what is a function?
A data structure for links
A reusable block of code
A lexical database
An AI model for chatbots
What is Object-Oriented Programming (OOP) in Python?
Breaking text into tokens
Using classes and objects
Traversing nodes
Sentiment analysis
Why are nodes used in Python?
For continuous memory allocation
As foundations for data structures like linked lists and trees
To process natural language
For rule-based chatbots
What does a node store along with data?
Grammatical rules
Address of the next location
User intents
Sentiment scores
In the context of nodes, what is a pointer?
A lexical unit
The address of the next data element
A chatbot response
A Python variable
How are nodes created in Python?
Using loops only
By implementing a class
Through syntactic analysis
Via sentiment extraction
In the example given, what is the class name for holding weekdays?
Weekdays
Daynames
Nodes
Pointers
What is initialized to null in node creation?
Data element
Nextval pointer
Class name
Traverse variable
How do you traverse node elements?
Using if/then rules
Assign first element to a variable and use a while loop with nextval
Breaking into lexemes
Analyzing semantics
What is Natural Language Processing (NLP)?
A way to allocate memory
A branch of AI focusing on human-computer interaction through language
Defining Python functions
Creating nodes
What is the objective of NLP?
To store data in nodes
To program computers to process and analyze natural language data
To build rule-based chatbots only
To traverse pointers
What does syntax in NLP pertain to?
Meaning of words
Arrangement of words and phrases for well-structured sentences
Context and intent
Data storage in classes
In the syntax example, what is analyzed in "The cat sat on the mat"?
Speakers intent
Grammatical structure and rules
Word meanings
Node links
What is semantics in NLP concerned with?
Grammatical arrangement
Understanding the meaning of words and sentences
Memory allocation
Traversing elements
In the semantics example, what does it distinguish in "The panda eats shoots and leaves"?
Grammatical errors
Whether it’s about eating plants or a violent act
Node pointers
Chatbot types
What does pragmatics in NLP deal with?
Breaking text into tokens
Understanding language in contexts based on situation and intent
Defining classes
Storing weekdays
In the pragmatics example, how is "Can you pass the salt?" interpreted?
As a question about ability
As a request in dining context
As a grammatical check
As a node traversal
What is the first phase of NLP?
Semantic Analysis
Lexical Analysis and Morphological
Discourse Integration
Pragmatic Analysis
What does Lexical Analysis do in NLP phases?
Checks grammar
Scans text into meaningful lexemes, divides into paragraphs, sentences, words
Focuses on meaning
Interprets intents
What is Syntactic Analysis also known as?
Parsing
Tokenizing
Traversing
Fulfilling
What does Syntactic Analysis check?
Literal meanings
Grammar, word arrangements, relationships among words
Contexts
Node pointers
What is the focus of Semantic Analysis in NLP?
Grammatical structure
Literal meaning of words, phrases, sentences
Cooperative dialogues
Memory blocks
What does Discourse Integration depend on?
Previous and following sentences
Node classes
Python variables
Chatbot UI
In Pragmatic Analysis, how is "Open the door" interpreted?
As an order
As a request
As a question
As a statement
What is a chatbot?
A memory allocation tool
A software application to simulate human conversation
A Python data type
A lexical database
How can chatbots be implemented?
Using nodes only
Using NLP techniques and AI models
Through pointers
Via controlflow
What are the two main types of chatbots?
Syntax and Semantics
Rule-based and AI-based
Nodes and Pointers
Intents and Entities
What do rule-based chatbots use?
Machine learning
Predefined rules for responding
Deep learning only
Sentiment analysis
What do modern chatbots increasingly use?
Memory blocks
Conversational AI techniques like NLP
Python lists
Node traversal
Rule-based chatbots are compared to what?
Movie actors sticking to the script
AI models learning data
Lexical analyzers
Semantic parsers
How do rule-based chatbots provide answers?
Based on machine learning
Based on if/then rules defined by designer
Through node links
Via pragmatic rules
What can AI-based chatbots do better than rule-based?
Stick to scripts
Freely communicate using ML, NLP, deep learning
Allocate memory
Define classes
What technologies do AI chatbots leverage?
Pointers and nodes
Machine learning, NLP, sentiment analysis
Variables and loops
Syntax only
What can AI agents analyze?
Node elements
Vast amounts of data to provide unique answers
Python functions
Grammatical rules
What is part of general chatbot architecture?
Node creation
User Interface (UI) for interaction
Lexical knowledge
Pointer initialization
What does the Bot Engine do?
Stores data
Processes input and generates responses
Traverses nodes
Analyzes semantics
What is stored in a chatbot’s Database?
Python code
Conversation history, user preferences
WordNet synonyms
Verb classifications
In which application is a chatbot used?
Memory allocation
Customer support
Node traversal
OOP definition
What is an Intent in chatbots?
A data type
The purpose or goal of the users message
A pointer
A lexical token
What are chatbots?
A data type
The purpose or goal of the users message
A pointer
A lexical token
What are Entities?
Reusable code blocks
Specific pieces of information within an intent
Grammatical categories
Node classes
What are Utterances?
Pointer addresses
Variations of how a user might phrase a message
AI models
Syntax rules
What is an utterance typically bounded by?
Memory blocks
Pauses in speech or sentence boundaries in text
Node links
If/then rules
What are Variables used for in chatbots?
To traverse elements
To store information extracted from user inputs
To define classes
To parse sentences
What is Fulfillment in chatbots?
Breaking into tokens
Executing actions or responding based on intent and information
Allocating memory
Initializing pointers
What does Lexical Analysis involve?
Understanding contexts
Breaking text into tokens like words, punctuation
Defining functions
Creating nodes
What is the purpose of Lexical Analysis?
To store weekdays
For understanding the structure and meaning of text
To simulate conversations
To link nodes
What is WordNet?
A chatbot type
A lexical database grouping words into synonyms and relationships
A Python data structure
A phase of NLP
What does VerbNet provide?
Sentiment scores
Classification of English verbs based on syntactic and semantic behavior
Node pointers
User interfaces
What is PropBank?
A memory tool
A corpus annotated with predicate-argument structures
A rule-based chatbot
A traversal method
What is Part-of-Speech (POS) Tagging?
Linking nodes
Classifying words into grammatical categories like nouns, verbs
Generating responses
Allocating memory
What does POS Tagging help with?
Memory storage
Understanding sentence structure and meaning
Defining intents
Initializing null pointers
What is Parsing in NLP?
Storing data
Analyzing grammatical structure of sentences
Traversing weekdays
Simulating chat
What does Semantic Analysis resolve?
Pointer addresses
Ambiguities like word sense disambiguation
User preferences
If/then rules
What is Information Extraction (IE)?
Creating classes
Extracting structured information from unstructured text
Defining functions
Linking elements
What does Sentiment Analysis identify?
Node values
Opinions in text as positive, negative, neutral
Python variables
Chatbot UIs
In nodes, what allows traversal from one to another?
Grammatical rules
Links via pointers
AI models
Lexemes
Why can’t memory always be continuous?
Due to NLP phases
Situations require pointers and nodes
Chatbot designs
Python functions
What is nextval in the node example?
A data type
A pointer to the next node
An intent
A utterance
How are node elements printed?
Using semantic analysis
While loop and nextval pointer
Rule-based responses
Database storage
What sequence is achieved in node traversal example?
Random days
Days of the week in proper sequence
NLP components
Chatbot types
NLP focuses on interaction between what?
Nodes and pointers
Computers and humans through natural language
Variables and functions
Intents and entities
Syntax ensures adherence to what?
Meanings
Grammatical rules like subject-verb agreement
Contexts
Data links
Semantics distinguishes based on what?
Pointers
Meaning of words and context
Loops
Classes
Pragmatics interprets based on what?
Tokens
Situation, speakers intent, shared knowledge
Memory
Variables
What converts text into lexemes?
Syntactic Analysis
Lexical Analysis
Discourse Integration
Fulfillment
What shows relationships among words?
Semantic Analysis
Syntactic Analysis
Pragmatic Analysis
Node Creation
What characterizes cooperative dialogues?
Rules in Pragmatic Analysis
Pointers
Data types
UI elements
Chatbots simulate what?
Memory allocation
Human conversation
Node traversal
POS tagging
Rule-based chatbots are also called what?
AI-powered
Command-based or keyword
Semantic
Pragmatic
AI chatbots use what for better conversation?
Fixed scripts
Machine learning and NLP
Continuous memory
Weekday classes
What varies in complexity for rule-based bots?
Pointers
If/then rules
Lexemes
Entities
Chatbot architecture includes what for storage?
Nodes
Database
Pointers
Loops
Applications of chatbots include what?
OOP
Healthcare and finance
Memory pointers
VerbNet
Example of an Intent?
New York
Book a flight
I want to fly
Destination
Example of an Entity?
Book a flight
New York as destination
Open the door
While loop
Utterances are variations of what?
Pointers
User messages
Classes
Databases
What stores extracted info like destination?
Pointers
Variables
Lexemes
Scripts
Fulfillment executes what?
Memory allocation
Actions based on intent
Node creation
Text breaking
Tokens in Lexical Analysis include what?
Only words
Words, punctuation, numbers
Only sentences
Only intents
