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?
- Linear Logic Machine
- Large Language Model
- Layered Learning Matrix
- 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?
- A compressed ZIP copy of the text
- An image generated from the text
- A numeric vector that represents the meaning of the text, so that similar texts have nearby vectors
- 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?
- It stores the training data so that the model can look it up later
- It lets each token weigh how relevant every other token in the sequence is when building its own representation
- It converts text into audio
- 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
- In generative AI, what does LLM stand for?
- What does it mean when an LLM "hallucinates"?
- In the context of LLMs, what is a token?
- The instructions and input text that a user gives an LLM to get a response are…
- What is few-shot prompting?
- What is a text embedding?
- What is the cosine similarity between the vectors (3, 4) and (6, 8)?
- What does Retrieval-Augmented Generation (RAG) do?
- Setting the sampling temperature of an LLM close to 0 typically makes its…
- What is an LLM's context window?
- A company's product price list changes every day, and its chatbot must answer…
- In a transformer model, what does the self-attention mechanism do?
- Which order of steps is correct for answering a user question with a typical…
- A model has a context window of 8,000 tokens, shared by the input and the…
- What is the main pre-training objective of decoder-only (GPT-style) large…
- Asking an LLM to perform a task with only an instruction and no examples in…
- What mainly distinguishes generative AI from traditional predictive…
- In the model family name GPT, what does GPT stand for?
- Further training an already pre-trained model on a smaller, task-specific…
- A model that can accept both an image and a text question about that image…
- How do diffusion models, widely used for text-to-image generation, generate an…
- What does top-p (nucleus) sampling do when choosing the next token?
- Assume that, on average, one token corresponds to about 0.75 English words…
- What is chain-of-thought prompting?
- An AI email assistant summarises incoming emails. One email contains hidden…
- In a RAG system, what is the main purpose of a vector database?
- A query embedding is q = (1, 2, 2). Four document embeddings are: D1 = (2, 1…
- A model's two candidate next tokens have logits 2 and 0. With softmax at…
- In Reinforcement Learning from Human Feedback (RLHF), what is the reward model…
- Why do transformer models add positional encodings (or positional embeddings)…
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
- Pseudo-code: Trace loops, recursion and bitwise logic.
- C Programming: Output prediction, pointers and operators.
- Java: OOP, strings, collections and exceptions.
- Python: Data types, comprehensions and mutability.
- Data Structures: Arrays, stacks, queues, trees, graphs and hashing.
- Algorithms: Complexity, sorting, searching, recursion and DP.
- Object-Oriented Programming: Encapsulation, inheritance, polymorphism, abstraction.
- DBMS: Keys, normalisation, transactions and indexing.
- SQL: Joins, grouping, subqueries and query output.
- Operating Systems: Processes, scheduling, memory and deadlocks.
- Computer Networks: OSI/TCP-IP, protocols, addressing and ports.
- Software Engineering: SDLC, testing, agile and version control.
- Cloud & DevOps: Service models, containers, CI/CD and Linux.
Other subjects
- Quantitative Aptitude: Arithmetic, percentages, time and work, speed, probability and data interpretation: the numerical section of every fresher test.
- Logical Reasoning: Series, coding-decoding, arrangements, syllogisms and puzzles: the section that separates prepared candidates from the rest.
- Verbal Ability: Vocabulary, grammar, reading comprehension and sentence order: tested in nearly every IT services hiring exam.
- Python: Python quizzes by topic, from types and strings to classes and generators: output prediction and interview concepts.
- SQL: SQL quizzes by topic, from SELECT and joins to window functions: query output and concepts for analyst and developer roles.
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