Skip to main content

Quiz for LangGraph and Agentic AI module

No.Training UnitLectureTraining contentQuestionLevelMarkAnswerAnswer Option AAnswer Option BAnswer Option CAnswer Option D
1Unit 1: LangGraph Foundations & State ManagementLec1LangGraph vs LangChainWhat is the primary structural difference between LangChain chains and LangGraph?Easy1BLangGraph only supports linear flows.LangGraph supports cyclic flows and loops, while chains are typically linear.LangGraph removes the need for LLMs.LangChain supports state persistence, while LangGraph does not.
2Unit 1: LangGraph Foundations & State ManagementLec1State ManagementWhat is the recommended pattern for State management in LangGraph?Easy1AMessages-centric pattern (using messages list).Context-only pattern (using distinct string fields).Stateless execution.Database-only pattern.
3Unit 1: LangGraph Foundations & State ManagementLec1State ReducersWhat is the specific function of add_messages in a TypedDict state?Medium1CIt deletes old messages to save memory.It converts messages to JSON strings.It appends new messages to the list and handles deduplication/merging.It sends messages directly to the LLM without storing them.
4Unit 1: LangGraph Foundations & State ManagementLec1Message TypesWhich message type represents a response generated by the Large Language Model in LangChain?Easy1BHumanMessageAIMessageSystemMessageToolMessage
5Unit 1: LangGraph Foundations & State ManagementLec1NodesIn a LangGraph node function, what is the standard return value format?Medium1DA string containing the answer content.A boolean indicating if the node succeeded.The full State object with all fields updated.A dictionary representing State updates (deltas).
6Unit 1: LangGraph Foundations & State ManagementLec1EdgesWhat is the primary purpose of "Conditional Edges" in LangGraph?Medium1ATo route execution dynamically based on the current state (e.g., router logic).To connect nodes that always run in a fixed sequence.To visualize the graph structure in a user interface.To provide metadata about the connection type.
7Unit 1: LangGraph Foundations & State ManagementLec1ContextWhich of the following is typically considered "Context" (metadata) rather than part of the "Messages" list in the State?Easy1CThe latest query from the user.The LLM's suggested response.user_id or max_iterations counter.The result returned from a tool execution.
8Unit 1: LangGraph Foundations & State ManagementLec1Graph APIWhich class is used to initialize a stateful graph workflow with a specific schema?Easy1BGraphWorkflowStateGraphLangChainGraphMessageGraph
9Unit 1: LangGraph Foundations & State ManagementLec1NodesWhat does a Node typically do in a LangGraph execution step?Easy1AReads the current state, processes it (LLM/tools), and returns an update.Only routes traffic between other nodes without processing.Permanently saves all session data to a physical database.Renders the final output for the user.
10Unit 1: LangGraph Foundations & State ManagementLec1Graph APIWhat does the workflow.compile() method return?Medium1CA static JSON representation of the graph.A standard Python dictionary.A CompiledGraph (app) that can be invoked or streamed.A direct connection to the underlying database.
11Unit 1: LangGraph Foundations & State ManagementLec1StateWhat is the core role of the messages field in a LangGraph State?Easy1AIt is the core communication channel for I/O.It stores API keys.It defines the database schema.It acts as a hardcoded counter.
12Unit 1: LangGraph Foundations & State ManagementLec1StateWhen should you use context fields instead of the messages list?Medium1CTo track conversation history.To store the compiled graph.For configuration, metadata, and tracking.To entirely replace the LLM.
13Unit 1: LangGraph Foundations & State ManagementLec1StateWhat is a primary characteristic of the built-in MemorySaver checkpointer?Easy1BIt encrypts data to the cloud.It stores data in-memory; lost on restart.It requires PostgreSQL.It is the standard for production.
14Unit 1: LangGraph Foundations & State ManagementLec1StateWhat attribute of the last message is checked to trigger tools?Medium1Dstatus_codesystem_prompterror_logtool_calls
15Unit 1: LangGraph Foundations & State ManagementLec1StateWhat are the standard sequential steps a node function follows?Medium1ARead messages, process, return deltas.Render UI and capture clicks.Connect to DB and drop tables.Initialize checkpointer.
16Unit 1: LangGraph Foundations & State ManagementLec1StateHow can agents identify their outputs in a shared messages list?Hard1BAppending their name to content.Tagging the AIMessage with a name attribute.Using separate state dicts.Converting messages to numbers.
17Unit 1: LangGraph Foundations & State ManagementLec1StateWhy is a checkpointer essential for a stateful LangGraph application?Medium1CIt prevents hallucinations.It translates output.It allows state persistence and resumption.It converts Python to JSON.
18Unit 1: LangGraph Foundations & State ManagementLec1StateWhat behavior does add_messages provide?Hard1DDeletes all old messages.Translates messages.Limits the array to 10 messages.Appends new messages and handles deduplication.
19Unit 1: LangGraph Foundations & State ManagementLec1StateHow can a developer visually inspect the structure of a compiled LangGraph app?Easy1AUsing the draw_mermaid_png() method.Printing the raw compile() output.Reading system log files.Checking the SQLite database.
20Unit 1: LangGraph Foundations & State ManagementLec1StateWhich method determines the first node that executes in a StateGraph?Easy1Cstart_node()init_graph()set_entry_point()add_first_edge()