GenAI / LLM track

GenAI and LLM interview questions

Panel-ready GenAI / LLM questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

22 Easy GPT vs BERT GenAI / LLM

Is GPT an encoder or a decoder model?

Short take Full answer on next page

Simple meaning

Classic GPT is a decoder-only transformer.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
25 Easy Prompting GenAI / LLM

What is a prompt?

Short take Full answer on next page

Simple meaning

A prompt is the text you give the model to steer what it does next.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
26 Easy Prompting GenAI / LLM

What is a system prompt?

Short take Full answer on next page

Simple meaning

A system prompt is a high-priority instruction that sets role, tone, tools, and hard rules.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
27 Easy Prompting GenAI / LLM

What is zero-shot prompting?

Short take Full answer on next page

Simple meaning

Zero-shot prompting asks the model to perform a task with instructions only, no labeled examples.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
28 Easy Prompting GenAI / LLM

What is few-shot prompting?

Short take Full answer on next page

Simple meaning

Few-shot prompting includes a handful of input-output examples in the prompt.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
29 Easy Prompting GenAI / LLM

What is chain-of-thought prompting?

Short take Full answer on next page

Simple meaning

Chain-of-thought prompting asks the model to reason step by step before the final answer.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
30 Easy Prompting GenAI / LLM

What is in-context learning?

Short take Full answer on next page

Simple meaning

In-context learning is the model adapting to a task from examples or instructions inside the prompt, without changing weights.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
32 Easy RAG GenAI / LLM

What is retrieval-augmented generation (RAG)?

Short take Full answer on next page

Simple meaning

RAG retrieves relevant documents and stuffs them into the prompt so the LLM answers with that evidence.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
34 Easy RAG GenAI / LLM

What does retrieval mean in a RAG pipeline?

Short take Full answer on next page

Simple meaning

Retrieval is the step that selects the most relevant chunks for a query.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
35 Easy RAG GenAI / LLM

What is grounding in GenAI answers?

Short take Full answer on next page

Simple meaning

Grounding means the answer is tied to provided sources rather than invented facts.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
36 Easy Vector DB GenAI / LLM

What is a vector database?

Short take Full answer on next page

Simple meaning

A vector database stores embeddings and finds nearest neighbors at scale.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
37 Easy Vector DB GenAI / LLM

What is an index in a vector database?

Short take Full answer on next page

Simple meaning

An index is the data structure that makes similarity search fast, such as HNSW or IVF.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
38 Easy Vector DB GenAI / LLM

What is approximate nearest neighbor search?

Short take Full answer on next page

Simple meaning

ANN search returns vectors that are very close to the query without guaranteeing the exact closest set.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
39 Easy Hallucination GenAI / LLM

What is hallucination in an LLM?

Short take Full answer on next page

Simple meaning

Hallucination is fluent text that is false, unsupported, or fabricated.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
40 Easy Hallucination GenAI / LLM

Why do LLMs hallucinate?

Short take Full answer on next page

Simple meaning

They fill gaps with statistically plausible tokens when evidence is missing or conflicting.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 2 of 12 Next
Chat with us