Interview Q&A / AI & Generative AI

INTERVIEW Q&A · 61 QUESTIONS

AI & Generative AI interview questions

LLMs, tokens, embeddings, RAG and prompt engineering, the questions every AI role now asks.

  1. Does telling the model to act as an expert actually improve answers?

    A role such as "you are a senior data analyst" can shift tone, vocabulary and the level of detail, but it does not add knowledge the model lacks. Clear task instructions, context and constraints usually matter more than the persona line.

    BeginnerQuick answer1 min read
  2. What is the difference between a system prompt and a user prompt?

    The system prompt holds standing instructions from the developer, such as role, tone, rules and format, and applies to the whole conversation. The user prompt is the per-turn request. Models give system instructions higher priority, but that is not a security guarantee.

    BeginnerQuick answer1 min read
  3. What is the difference between zero-shot and few-shot prompting?

    Zero-shot gives only the instruction. Few-shot adds a handful of worked input and output examples in the prompt so the model copies the format and style. Few-shot often improves consistency without any training.

    BeginnerQuick answer1 min read