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.

1 Easy Tokens GenAI / LLM

What is a token in an LLM?

Short take Full answer on next page

Simple meaning

A token is a chunk of text the model reads and writes, often a subword rather than a full word.

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

Read full answer Example · Mistake · Say this
3 Easy Tokens GenAI / LLM

What is tokenization?

Short take Full answer on next page

Simple meaning

Tokenization converts raw text into a sequence of integer IDs from a fixed vocabulary.

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

Read full answer Example · Mistake · Say this
4 Easy Tokens GenAI / LLM

What is Byte Pair Encoding in LLM tokenizers?

Short take Full answer on next page

Simple meaning

Byte Pair Encoding starts from characters or bytes and repeatedly merges the most frequent adjacent pairs into new vocabulary items.

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

Read full answer Example · Mistake · Say this
6 Easy Embeddings GenAI / LLM

What is an embedding?

Short take Full answer on next page

Simple meaning

An embedding is a dense numeric vector that represents text, an image, or another item in a continuous space.

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

Read full answer Example · Mistake · Say this
8 Easy Embeddings GenAI / LLM

Why are embeddings useful for search?

Short take Full answer on next page

Simple meaning

Keyword search needs overlapping words.

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

Read full answer Example · Mistake · Say this
10 Easy Embeddings GenAI / LLM

What is semantic search?

Short take Full answer on next page

Simple meaning

Semantic search ranks documents by meaning rather than exact keyword overlap.

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

Read full answer Example · Mistake · Say this
11 Easy Transformers GenAI / LLM

What is a transformer model?

Short take Full answer on next page

Simple meaning

A transformer is a neural architecture that uses attention to relate all positions in a sequence in parallel.

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

Read full answer Example · Mistake · Say this
14 Easy Transformers GenAI / LLM

What is positional encoding?

Short take Full answer on next page

Simple meaning

Attention itself has no sense of order, so the model needs position signals.

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

Read full answer Example · Mistake · Say this
15 Easy Attention GenAI / LLM

What is attention in a neural network?

Short take Full answer on next page

Simple meaning

Attention lets the model weight how much each token should influence another token.

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

Read full answer Example · Mistake · Say this
16 Easy Attention GenAI / LLM

What is self-attention?

Short take Full answer on next page

Simple meaning

Self-attention computes attention among tokens of the same sequence.

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

Read full answer Example · Mistake · Say this
18 Easy Attention GenAI / LLM

What is multi-head attention?

Short take Full answer on next page

Simple meaning

Multi-head attention runs several attention operations in parallel with different projections.

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

Read full answer Example · Mistake · Say this
19 Easy Attention GenAI / LLM

What is causal or masked attention?

Short take Full answer on next page

Simple meaning

Causal attention blocks a token from seeing future tokens.

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

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