CoreHRx Jobs

Apply in one click, save jobs and take free mock tests.

Register free Log in
Hiring? Post jobs with CoreHRx
My account
user

View & update profile

Generative AI and Prompt Engineering mock test: free online practice

15 to 30 random questions in 15 to 30 minutes, by the level you choose: tokens, sampling, prompts, rag, embeddings, agents, evals, safety. After you submit you get your score, your strong and weak topics, and the right answer with an explanation for every question.

Want to revise first? Read the Generative AI and Prompt Engineering interview questions and answers.

Choose your experience

Free with a CoreHRx Jobs account: you will be asked to sign in or create one first.

What does the Generative AI and Prompt Engineering mock test cover?

The test covers 13 topics across three levels. Each attempt picks 15 to 30 questions at random, by the level you choose, so every attempt is different.

  • Embeddings and Vector Search
  • Evaluation
  • Prompt Patterns
  • Retrieval-Augmented Generation
  • Safety and Prompt Injection
  • Cost and Latency
  • Hallucination and Grounding
  • LLM Basics
  • Tokens and Context Windows
  • Tool Use and Agents
  • Sampling and Temperature
  • Structured Output
  • Fine-tuning vs RAG vs Prompting

Sample Generative AI and Prompt Engineering mock test questions

One question from each level, the way they appear in the test. A new set comes on the 1st of every month. Try it, then open the answer.

  1. FresherHallucination and Grounding

    What does grounding mean for an LLM answer?

    • Training the model only on short and simple sentences
    • Running the model on a local server in the office instead of on a cloud platform
    • Basing the answer on supplied source material, such as documents in the prompt
    • Stopping the model from answering any question at all
    Show the answer

    Answer: Basing the answer on supplied source material, such as documents in the prompt. A grounded answer is tied to sources the system provides, so each claim can be traced and checked. It is the main defence against made-up facts, and it lets the answer use information the model was never trained on.

  2. Intermediate (1-5 years)Embeddings and Vector Search

    Both embedding vectors below already have length 1. What is their cosine similarity?

    a = [0.6, 0.8]   # length 1
    b = [0.8, 0.6]   # length 1
    • 0.28
    • 1.40
    • 0.48
    • 0.96
    Show the answer

    Answer: 0.96. For unit-length vectors cosine similarity equals the plain dot product: 0.6 x 0.8 + 0.8 x 0.6 = 0.96. This is why many systems normalise embeddings once and then use the cheaper dot product.

  3. Experienced (5+ years)Sampling and Temperature

    Logits are A = 3.0, B = 2.5, C = 0.5. At temperature 2.0, which token is most likely, and with what probability (rounded)?

    • A, about 0.59
    • A, about 0.48
    • B, about 0.48
    • C, about 0.33
    Show the answer

    Answer: A, about 0.48. Temperature divides every logit by the same positive number, so the order never changes and A stays on top. At T = 2 its probability falls from 0.59 to 0.48: the distribution flattens, it does not flip.

Take the full Generative AI and Prompt Engineering mock test: 15 to 30 questions and 15 to 30 minutes, by level.

How is the Generative AI and Prompt Engineering mock test scored?

A question counts as right only when you pick exactly the right option, or all the right options where it says so; a question left blank counts as wrong. Your score is the share of the test's questions you got right (15 to 30, by level). The result also scores every topic, so you know what to revise before the interview.

  • 75% or more in a topica strength
  • 50% to 74%worth a revision
  • Under 50%a topic to work on

Generative AI and Prompt Engineering mock test: questions people ask

Is the Generative AI and Prompt Engineering mock test free?

Yes. The Generative AI and Prompt Engineering mock test is free. You need a free CoreHRx Jobs account to start it, so your score and the topics to work on are saved.

How many questions are in the Generative AI and Prompt Engineering mock test?

It depends on the level: Fresher has 15 questions in 15 minutes, Intermediate has 20 questions in 20 minutes, Experienced has 30 questions in 30 minutes. They are multiple-choice questions picked at random from a larger bank of Generative AI and Prompt Engineering questions at your level, so every attempt is different.

Which Generative AI and Prompt Engineering topics does the test cover?

The questions cover Embeddings and Vector Search, Evaluation, Prompt Patterns, Retrieval-Augmented Generation, Safety and Prompt Injection, Cost and Latency, Hallucination and Grounding, LLM Basics, Tokens and Context Windows, Tool Use and Agents, Sampling and Temperature, Structured Output, Fine-tuning vs RAG vs Prompting. Your result shows how you did in each topic.

Which level should I choose?

Fresher if you are a student or have less than a year of experience, Intermediate for 1 to 5 years at work, and Experienced for 5 years or more.

Can employers see my Generative AI and Prompt Engineering score?

Only your best Generative AI and Prompt Engineering score, and only when it is 60% or more. It shows on the job applications you send on CoreHRx. Lower scores stay private.

Can I take the Generative AI and Prompt Engineering mock test again?

Yes, up to 10 tests a day. Each attempt picks questions you have not seen recently first.

All mock tests