GenAI Basics questions and answers

LLMs, tokens, prompting, embeddings and RAG. Practise genai basics questions from the technical & programming section of placement tests, with a worked explanation after every answer. Practice is free and needs no sign-up.

Sample genai basics questions with worked answers

Question 1

In generative AI, what does LLM stand for?

  1. Linear Logic Machine
  2. Large Language Model
  3. Layered Learning Matrix
  4. Long Latency Memory

Answer: B. Large Language Model

Explanation: An LLM is a Large Language Model: a neural network, usually transformer-based, trained on very large amounts of text to understand and generate language.

Question 2

What is a text embedding?

  1. A compressed ZIP copy of the text
  2. An image generated from the text
  3. A numeric vector that represents the meaning of the text, so that similar texts have nearby vectors
  4. A list of the words in the text in alphabetical order

Answer: C. A numeric vector that represents the meaning of the text, so that similar texts have nearby vectors

Explanation: Embedding models map text to dense vectors in a semantic space. Semantically similar texts end up close together, which enables semantic search and clustering.

Question 3

In a transformer model, what does the self-attention mechanism do?

  1. It stores the training data so that the model can look it up later
  2. It lets each token weigh how relevant every other token in the sequence is when building its own representation
  3. It converts text into audio
  4. It removes stop words before processing

Answer: B. It lets each token weigh how relevant every other token in the sequence is when building its own representation

Explanation: Self-attention computes, for every position, a weighted combination of all positions, with weights from query-key similarity. This captures context and long-range dependencies in parallel.

All 30 genai basics questions with answers

GenAI Basics: common questions

What are genai basics questions?

LLMs, tokens, prompting, embeddings and RAG. They appear in the technical & programming section of many placement tests.

Where can I practise genai basics questions with answers for free?

Right here on LogicWiz Exams. Every genai basics question has a worked explanation after you answer. Practice is free and needs no sign-up.

How should I practise genai basics?

Start with easy questions, then move to medium and hard. Read the explanation after each answer, and come back to the ones you missed.

Start practising

On this page you can start a fresh set of genai basics questions, choose easy, medium or hard, and time yourself if you want to. Or practise the whole subject: Technical & Programming practice.

More technical & programming topics

Other subjects

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge · Test from a job description · LogicWiz Open: free team quiz · Free interview prep