InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1537–1548 of 3610 questions

Generative AI & LLMsBeginner1 min read

What is generative AI?

Generative AI is a class of AI systems that creates new content such as text, code, images, audio, or structured data from learned patterns. A…

Generative AI & LLMsBeginner1 min read

How does an LLM generate text?

The model converts input into tokens, processes their representations, and estimates a probability distribution for the next token. A decoding…

Generative AI & LLMsBeginner1 min read

What is a Transformer?

A Transformer is a neural-network architecture that uses attention to relate tokens to one another and feed-forward layers to transform…

Generative AI & LLMsBeginner1 min read

What is a token?

A token is a unit used by a model's tokenizer to represent text. It may be a whole word, part of a word, punctuation, whitespace-related text,…

Generative AI & LLMsBeginner1 min read

What is a tokenizer?

A tokenizer maps text to token IDs and can map token IDs back to text. The model consumes token IDs rather than raw strings, so a tokenizer's…

Generative AI & LLMsBeginner1 min read

What is prompt engineering?

Prompt engineering is the practice of designing and refining instructions, context, examples, and output constraints so a model is more likely…

Generative AI & LLMsBeginner1 min read

What makes a good prompt?

A good prompt states the desired task clearly, provides relevant context, defines constraints, and specifies the expected output. It avoids…