Generative AI MCQs with answers are essential for computer science students, artificial intelligence developers, and competitive exam preparation (PPSC, FPSC, NTS). If you are looking for reliable Generative AI MCQs, this comprehensive set of Generative AI MCQs covers Large Language Models (LLMs), Transformer architecture (Attention mechanism), Generative Adversarial Networks (GANs), prompt engineering, and model fine-tuning. Mastering these Generative AI MCQs helps build core modern AI foundations and achieve high test scores in every technical assessment.
Table of Contents
Part 1: Generative AI Basics, GANs & Transformer Architecture
Question 1: What is Generative Artificial Intelligence (Generative AI)?
- A) A type of AI focused strictly on sorting local database spreadsheets
- B) A branch of artificial intelligence capable of generating new content (text, images, audio, video, code) based on trained data patterns
- C) A hardware router configuration script
- D) A static antivirus scanning system
Correct Answer: B) A branch of artificial intelligence capable of generating new content (text, images, audio, video, code) based on trained data patterns
Question 2: What is a Large Language Model (LLM)?
- A) A programming language like C++ or Python
- B) An advanced deep learning model trained on massive text corpora to understand, summarize, generate, and translate human languages
- C) A database management system table
- D) A web browser extension tool
Correct Answer: B) An advanced deep learning model trained on massive text corpora to understand, summarize, generate, and translate human languages
Question 3: What is the Transformer Architecture introduced in the landmark 2017 paper “Attention Is All You Need”?
- A) A hardware power supply unit for computer servers
- B) A deep learning architecture based on self-attention mechanisms, replacing older recurrent neural networks (RNNs) for sequence modeling
- C) A network firewall security rule
- D) A database indexing tree structure
Correct Answer: B) A deep learning architecture based on self-attention mechanisms, replacing older recurrent neural networks (RNNs) for sequence modeling
Question 4: What is the primary role of the “Self-Attention” mechanism in Transformers?
- A) Compressing image file sizes into zip archives
- B) Allowing the model to weigh the importance of different words in a sentence relative to each other, regardless of their positional distance
- C) Deleting unwanted temporary cache files
- D) Encrypting user passwords with SHA-256
Correct Answer: B) Allowing the model to weigh the importance of different words in a sentence relative to each other, regardless of their positional distance
Question 5: What is a Generative Adversarial Network (GAN)?
- A) A single neural network training on text files
- B) A machine learning framework consisting of two competing neural networks: a Generator (creates fake data) and a Discriminator (evaluates data authenticity)
- C) A cloud database storage server
- D) A network switch router
Correct Answer: B) A machine learning framework consisting of two competing neural networks: a Generator (creates fake data) and a Discriminator (evaluates data authenticity)
Note: Explore foundational concepts in these Generative AI MCQs along with our guide on Big Data MCQs.
Question 6: In a GAN, what is the job of the Generator network?
- A) To detect fake images and ban users
- B) To capture data distribution and generate new, synthetic data instances that mimic real training data
- C) To compress database tables
- D) To scan computer RAM for viruses
Correct Answer: B) To capture data distribution and generate new, synthetic data instances that mimic real training data
Question 7: In a GAN, what is the job of the Discriminator network?
- A) To generate high-resolution audio files
- B) To evaluate inputs and determine whether they are genuine samples from the real training dataset or fake samples produced by the generator
- C) To compile C++ source code
- D) To manage network routing tables
Correct Answer: B) To evaluate inputs and determine whether they are genuine samples from the real training dataset or fake samples produced by the generator
Question 8: What is Tokenization in Natural Language Processing (NLP) and LLMs?
- A) Encrypting files with security tokens
- B) The process of breaking down raw text strings into smaller units called tokens (words, sub-words, or characters) for model processing
- C) Generating random numbers for cryptography
- D) Formatting hard disk partitions
Correct Answer: B) The process of breaking down raw text strings into smaller units called tokens (words, sub-words, or characters) for model processing
Question 9: What is Prompt Engineering?
- A) Assembling physical computer hardware components
- B) The practice of structuring, refining, and optimizing text prompts to effectively guide LLMs to produce accurate and desired outputs
- C) Compiling Java programming scripts
- D) Testing network firewall latency
Correct Answer: B) The practice of structuring, refining, and optimizing text prompts to effectively guide LLMs to produce accurate and desired outputs
Question 10: What is Model Fine-Tuning in machine learning?
- A) Deleting trained neural networks entirely
- B) Taking a pre-trained base model and further training it on a smaller, domain-specific dataset to adapt it for specialized tasks
- C) Adjusting physical monitor brightness settings
- D) Upgrading CPU RAM sticks
Correct Answer: B) Taking a pre-trained base model and further training it on a smaller, domain-specific dataset to adapt it for specialized tasks
Question 11: What is Few-Shot Prompting?
- A) Providing zero examples in the prompt
- B) Providing a few examples (demonstrations) of desired input-output pairs in the prompt to guide the LLM’s response format and behavior
- C) Running an AI model on a slow computer
- D) Deleting training data logs
Correct Answer: B) Providing a few examples (demonstrations) of desired input-output pairs in the prompt to guide the LLM’s response format and behavior
Question 12: What is Zero-Shot Prompting?
- A) Asking an LLM to perform a task without providing any prior examples or demonstrations in the prompt
- B) Providing zero tokens to the model
- C) Shutting down server power supplies
- D) Writing code without compilers
Correct Answer: A) Asking an LLM to perform a task without providing any prior examples or demonstrations in the prompt
Question 13: What is RAG (Retrieval-Augmented Generation)?
- A) A technique that combines an LLM with an external knowledge retrieval system (like a vector database) to fetch relevant factual data before generating a response
- B) Generating random text without training data
- C) Compressing image files into zip archives
- D) A network routing protocol
Correct Answer: A) A technique that combines an LLM with an external knowledge retrieval system (like a vector database) to fetch relevant factual data before generating a response
Question 14: What is a Vector Database used for in AI applications?
- A) Storing traditional SQL rows and columns
- B) Storing and indexing high-dimensional vector embeddings to enable fast similarity searches for AI and RAG systems
- C) Backing up operating system files
- D) Formatting hard disk partitions
Correct Answer: B) Storing and indexing high-dimensional vector embeddings to enable fast similarity searches for AI and RAG systems
Question 15: What are Embedding Vectors in machine learning?
- A) Encrypted passwords stored in databases
- B) Numerical representations of words, sentences, or images in a high-dimensional continuous vector space where semantic similarity is mapped to geometric proximity
- C) Physical microchip transistors
- D) Network router IP addresses
Correct Answer: B) Numerical representations of words, sentences, or images in a high-dimensional continuous vector space where semantic similarity is mapped to geometric proximity
Question 16: What is Hallucination in Large Language Models?
- A) A computer virus infecting local RAM
- B) A phenomenon where an LLM confidently generates incorrect, fabricated, or misleading information that is presented as factual truth
- C) The glowing light of computer monitors
- D) High-speed internet data transfer
Correct Answer: B) A phenomenon where an LLM confidently generates incorrect, fabricated, or misleading information that is presented as factual truth
Question 17: What is Temperature parameter in LLM text generation?
- A) The physical temperature of server room air conditioners
- B) A hyperparameter controlling randomness and creativity in model outputs (lower values make output deterministic/focused; higher values make it creative/random)
- C) The speed of internet fiber optic cables
- D) The voltage supplied to GPU cards
Correct Answer: B) A hyperparameter controlling randomness and creativity in model outputs (lower values make output deterministic/focused; higher values make it creative/random)
Question 18: What is Top-P (Nucleus) Sampling in text generation?
- A) Selecting the top physical server in a rack
- B) A sampling method that restricts token selection to a cumulative probability threshold ($P$), balancing diversity and coherence in LLM responses
- C) Deleting low-probability log files
- D) Compiling C++ source code
Correct Answer: B) A sampling method that restricts token selection to a cumulative probability threshold ($P$), balancing diversity and coherence in LLM responses
Question 19: What is Reinforcement Learning from Human Feedback (RLHF)?
- A) Training robots to walk using human supervisors
- B) A training methodology where an LLM is fine-tuned using reward signals derived from human preferences to align its behavior with helpfulness and safety guidelines
- C) Manually typing text into Word documents
- D) Testing firewall security rules
Correct Answer: B) A training methodology where an LLM is fine-tuned using reward signals derived from human preferences to align its behavior with helpfulness and safety guidelines
Question 20: What is LoRA (Low-Rank Adaptation)?
- A) A low-speed internet connection
- B) A parameter-efficient fine-tuning technique that freezes base model weights and trains low-rank decomposition matrices, greatly reducing computational memory requirements
- C) A database indexing method
- D) A virus removal tool
Correct Answer: B) A parameter-efficient fine-tuning technique that freezes base model weights and trains low-rank decomposition matrices, greatly reducing computational memory requirements
Question 21: What is a Diffusion Model in generative AI?
- A) A model that diffuses network traffic across routers
- B) A class of generative models (used in image generation like Stable Diffusion) that generates data by iteratively denoising a Gaussian noise distribution
- C) A database compression algorithm
- D) A CPU cooling fan regulator
Correct Answer: B) A class of generative models (used in image generation like Stable Diffusion) that generates data by iteratively denoising a Gaussian noise distribution
Question 22: What is Autoencoder in neural networks?
- A) A car manufacturing robot
- B) An unsupervised neural network trained to compress input data into a lower-dimensional latent space representation and then reconstruct it back
- C) A web browser automatic form filler
- D) A code compilation tool
Correct Answer: B) An unsupervised neural network trained to compress input data into a lower-dimensional latent space representation and then reconstruct it back
Question 23: What is Latent Space in generative models?
- A) Empty storage space on hard drives
- B) A compressed, multi-dimensional abstract vector space where meaningful characteristics and semantic features of trained data are encoded
- C) Network router buffer memory
- D) Computer RAM cache memory
Correct Answer: B) A compressed, multi-dimensional abstract vector space where meaningful characteristics and semantic features of trained data are encoded
Question 24: What is Multimodal Generative AI?
- A) An AI model that processes only one data type (text only)
- B) An artificial intelligence system capable of processing, understanding, and generating multiple data modalities simultaneously (text, images, audio, video)
- C) A computer with multiple monitors
- D) A network connecting multiple routers
Correct Answer: B) An artificial intelligence system capable of processing, understanding, and generating multiple data modalities simultaneously (text, images, audio, video)
Question 25: What is Prompt Injection Attack in LLM security?
- A) Injecting physical hardware chips into servers
- B) A security vulnerability where malicious users craft specific inputs to override system instructions and hijack the LLM’s intended behavior
- C) A computer virus deleting local hard drives
- D) A network DDoS attack
Correct Answer: B) A security vulnerability where malicious users craft specific inputs to override system instructions and hijack the LLM’s intended behavior
Part 2: Advanced LLMs, Fine-Tuning, Applications & Ethics
Practicing these Generative AI MCQs in Part 2 will strengthen your knowledge of model architectures, evaluation metrics, alignment, ethics, and deployment pipelines. These Generative AI MCQs prepare you for advanced AI examinations.
Question 26: What is Perplexity in language model evaluation?
- A) The confusion level of human users
- B) A measurement of how well a probabilistic language model predicts a sample; lower perplexity indicates better predictive performance and fluency
- C) The physical speed of computer CPUs
- D) Network routing latency
Correct Answer: B) A measurement of how well a probabilistic language model predicts a sample; lower perplexity indicates better predictive performance and fluency
Question 27: What is BLEU Score used for in AI text generation?
- A) Measuring computer network bandwidth speed
- B) Evaluating the quality of machine-translated or generated text by comparing it to human-reference translations
- C) Calculating hard disk read/write speeds
- D) Testing CPU core temperatures
Correct Answer: B) Evaluating the quality of machine-translated or generated text by comparing it to human-reference translations
Question 28: What is RLHF alternative DPO (Direct Preference Optimization)?
- A) Direct power off for servers
- B) A simpler, stable preference-tuning method for LLMs that optimizes policy directly on human preference data without training a separate reward model
- C) A database query optimization tool
- D) A network packet routing protocol
Correct Answer: B) A simpler, stable preference-tuning method for LLMs that optimizes policy directly on human preference data without training a separate reward model
Question 29: What is Quantization in LLM deployment?
- A) Converting analog audio into digital signals
- B) Reducing the precision of model weights (e.g., from 32-bit floating point to 8-bit or 4-bit integers) to decrease memory footprint and accelerate inference speed
- C) Increasing model parameter sizes
- D) Encrypting database tables
Correct Answer: B) Reducing the precision of model weights (e.g., from 32-bit floating point to 8-bit or 4-bit integers) to decrease memory footprint and accelerate inference speed
Question 30: What is Model Inference?
- A) Training a neural network on massive datasets from scratch
- B) The process of running a trained machine learning model on new, unseen input data to make predictions or generate outputs
- C) Deleting model weights permanently
- D) Compiling Python source code
Correct Answer: B) The process of running a trained machine learning model on new, unseen input data to make predictions or generate outputs
Question 31: What is Context Window in Large Language Models?
- A) The physical size of computer monitor screens
- B) The maximum number of tokens (input prompt plus generated output) that an LLM can process and retain in its working memory at one time
- C) The time taken to boot up a server
- D) The database table row limit
Correct Answer: B) The maximum number of tokens (input prompt plus generated output) that an LLM can process and retain in its working memory at one time
Question 32: What is Chain-of-Thought (CoT) Prompting?
- A) Linking multiple computers together with network cables
- B) A prompting technique that encourages LLMs to explain their reasoning step-by-step before arriving at the final answer, improving complex problem-solving accuracy
- C) Deleting temporary system files
- D) Encrypting files with passwords
Correct Answer: B) A prompting technique that encourages LLMs to explain their reasoning step-by-step before arriving at the final answer, improving complex problem-solving accuracy
Question 33: What is a Foundation Model?
- A) The concrete foundation of a data center building
- B) A large-scale pre-trained model trained on broad data that can be adapted (fine-tuned) to a wide range of downstream specialized tasks
- C) A basic computer operating system kernel
- D) A database schema template
Correct Answer: B) A large-scale pre-trained model trained on broad data that can be adapted (fine-tuned) to a wide range of downstream specialized tasks
Question 34: What is Generative Pre-trained Transformer (GPT)?
- A) A computer hardware testing tool
- B) A family of decoder-only Large Language Models developed by OpenAI utilizing transformer architecture and pre-trained on vast internet text
- C) A relational database system
- D) A network firewall security appliance
Correct Answer: B) A family of decoder-only Large Language Models developed by OpenAI utilizing transformer architecture and pre-trained on vast internet text
Question 35: What is Model Alignment in Artificial Intelligence?
- A) Aligning computer monitors on office desks
- B) Ensuring that AI models act in accordance with human intentions, values, ethical standards, and safety guidelines
- C) Formatting hard disk partitions
- D) Compiling C++ source code
Correct Answer: B) Ensuring that AI models act in accordance with human intentions, values, ethical standards, and safety guidelines
Question 36: What is Synthetic Data Generation using AI?
- A) Stealing data illegally from websites
- B) Using generative AI models to artificially create realistic training datasets when real-world data is scarce, private, or expensive
- C) Deleting old database records
- D) Formatting CSV spreadsheet files
Correct Answer: B) Using generative AI models to artificially create realistic training datasets when real-world data is scarce, private, or expensive
Question 37: What is Style Transfer in generative computer vision?
- A) Changing website CSS stylesheet designs
- B) A technique that applies the artistic visual style of one image to the content structure of another image using neural networks
- C) Compressing image file sizes
- D) Converting PNG images to JPG
Correct Answer: B) A technique that applies the artistic visual style of one image to the content structure of another image using neural networks
Question 38: What is Vision Transformer (ViT)?
- A) A device for testing computer monitor pixels
- B) An adaptation of the Transformer architecture applied directly to image patches for computer vision classification tasks
- C) A video streaming protocol
- D) A network router switch
Correct Answer: B) An adaptation of the Transformer architecture applied directly to image patches for computer vision classification tasks
Question 39: What is Text-to-Image Generation?
- A) Converting handwritten text into scanned PDF files
- B) Generating high-fidelity visual images from natural language text descriptions using models like DALL-E or Stable Diffusion
- C) Printing documents on paper printers
- D) Optical Character Recognition (OCR) scanning
Correct Answer: B) Generating high-fidelity visual images from natural language text descriptions using models like DALL-E or Stable Diffusion
Question 40: What is AI Model Red Teaming?
- A) Painting computer hardware red
- B) A rigorous security testing process where adversarial attacks are simulated against an AI model to uncover vulnerabilities, biases, and safety failures
- C) Designing website user interfaces
- D) Backing up database servers
Correct Answer: B) A rigorous security testing process where adversarial attacks are simulated against an AI model to uncover vulnerabilities, biases, and safety failures
Question 41: What is a Vector Embedding Search (Semantic Search)?
- A) Searching text files using exact keyword matching only
- B) Searching data based on conceptual and semantic meaning rather than exact keyword matches, using high-dimensional vector distances (e.g., Cosine Similarity)
- C) Deleting duplicate database rows
- D) Scanning network ports for viruses
Correct Answer: B) Searching data based on conceptual and semantic meaning rather than exact keyword matches, using high-dimensional vector distances (e.g., Cosine Similarity)
Question 42: What is Cosine Similarity in vector math?
- A) Measuring the physical distance between two computer servers
- B) A metric used to measure how similar two vector embeddings are by calculating the cosine of the angle between them
- C) A formula for calculating internet bandwidth
- D) A database table join condition
Correct Answer: B) A metric used to measure how similar two vector embeddings are by calculating the cosine of the angle between them
Question 43: What is Model Collapse in machine learning?
- A) Physical server hardware breakdown
- B) A degradation phenomenon where recursively training generative models on synthetic data generated by previous models causes loss of fidelity and diversity over generations
- C) Deleting training datasets permanently
- D) Compiling errors in Python scripts
Correct Answer: B) A degradation phenomenon where recursively training generative models on synthetic data generated by previous models causes loss of fidelity and diversity over generations
Question 44: What is Zero-Day exploit in AI systems?
- A) A software vulnerability in AI APIs or model frameworks exploited before developers release patches
- B) A model that takes zero seconds to train
- C) A free trial period for AI tools
- D) Deleting log files on day zero
Correct Answer: A) A software vulnerability in AI APIs or model frameworks exploited before developers release patches
Question 45: What is an AI Agent?
- A) A human customer support representative
- B) An autonomous software entity driven by an LLM that perceives its environment, formulates plans, uses tools, and takes actions to achieve specific goals
- C) A static web page server
- D) A database backup utility
Correct Answer: B) An autonomous software entity driven by an LLM that perceives its environment, formulates plans, uses tools, and takes actions to achieve specific goals
Question 46: What is Prompt Chaining?
- A) Linking physical computer cables together
- B) Breaking a complex task into a sequence of simpler prompts where the output of one LLM prompt serves as the input to the next
- C) Deleting temporary cache files
- D) Encrypting database records
Correct Answer: B) Breaking a complex task into a sequence of simpler prompts where the output of one LLM prompt serves as the input to the next
Question 47: What is Parameter Count in Large Language Models?
- A) The number of user accounts on a server
- B) The total number of adjustable weights and biases in a neural network architecture, representing model scale and capacity
- C) The number of CPU cores in a computer
- D) The file size of a PDF document
Correct Answer: B) The total number of adjustable weights and biases in a neural network architecture, representing model scale and capacity
Question 48: What is Mixture of Experts (MoE) architecture?
- A) A meeting room for expert software engineers
- B) A neural network architecture where multiple specialized sub-networks (“experts”) are utilized, and a gating network dynamically routes tokens to relevant experts, increasing scale efficiently
- C) A database management system table join
- D) A network router switch configuration
Correct Answer: B) A neural network architecture where multiple specialized sub-networks (“experts”) are utilized, and a gating network dynamically routes tokens to relevant experts, increasing scale efficiently
Question 49: What is Open Source vs Proprietary LLM?
- A) Open source models have weights and architecture publicly accessible for modification; proprietary models (like GPT-4) are restricted and managed by commercial vendors
- B) Open source models run without computer electricity
- C) Proprietary models are always free of charge
- D) There is no structural difference
Correct Answer: A) Open source models have weights and architecture publicly accessible for modification; proprietary models (like GPT-4) are restricted and managed by commercial vendors
Question 50: Why is mastering Generative AI & LLM MCQs essential for modern computer science professionals?
- A) Because generative artificial intelligence is revolutionizing software engineering, automation, data science, and intelligent application development worldwide
- B) Because traditional programming languages are banned in industry
- C) Because neural networks replace all computer hardware
- D) Because data storage costs have reached zero
Correct Answer: A) Because generative artificial intelligence is revolutionizing software engineering, automation, data science, and intelligent application development worldwide
Conclusion
Mastering these Generative AI MCQs builds strong artificial intelligence, Large Language Model (LLM), Transformer architecture, GAN, and prompt engineering knowledge. Practicing these Generative AI MCQs regularly ensures you fully understand self-attention, RAG systems, vector embeddings, fine-tuning, and AI ethics. Share these Generative AI MCQs with your peers to help them excel in university exams and professional AI job interviews through these curated Generative AI MCQs.

1 Comment