Foundations of Generative AI (CS3234) Midterm 2025 Question Paper
RV University Midterm exam for Foundations of Generative AI (CS3234), held 2025, semester 5, with 9 questions. Also searched as GENAI, GAI. Last updated 2026-11-14.
Questions
1. Mark the correct statement regarding feedforward neural networksa) Feedforward neural networks do not use backpropagation for trainingb) Feedforward neural networks only use backpropagation for testingc) Feedforward neural networks use backpropagation to adjust weights during tra
2. The technique that allows control over the style and tone of generated text is?a) Chain of Thoughtb) Prompt Persona Patternc) Denoising Techniquesd) LSTMAnswer: B
3. The role of the "Attention Mechanism" in transformer architectures is?a) To filter noise from input datab) To focus on specific parts of input datac) To store memory for long sequenced) To handle data embeddingsAnswer: B
4. The following is NOT a characteristic of vector databases?a) Support for multi-dimensional indexing
5. The main challenge in training the reverse process of diffusion models is?a) Predicting the noise correctly at each stepb) Generating the final output in one stepc) Reducing the model's complexityd) Controlling the learning rateAnswer: A
6. a. Calculate the output size of a convolutional layer if the input image is of size 32x32, and the filter size is 5x5 with a stride of 1 and padding of 2. (2 Marks)Answer: Output size: 32x32The formula for calculating output size of a convolutional layer is:Output size=(W-F+2P)/S
7. a. Explain the Attention Mechanism used in Transformer architectures.How does it improve upon traditional RNNs? (2 Marks)Answer: This is brief answer for your referenceAttention Mechanism: In Transformer models, attention allows the model to focus on specific parts of the input s
8. a. Explain how Variational Autoencoders (VAEs) can be used to perform data augmentation for image datasets. Provide a scenario where this could be useful (3 Marks)Answer: This is brief answer for your reference, detailed answer should use diagram, other detailsVAEs for Data Augme
9. a. Given the query Q=[1, 2], the key K=[2, 1], and d(model) =4, calculate the scaled dot-product attention score (2 Marks)Answer:Dot product:Q·K=(12) + (21) =4Scaled dot-product attention score: Dot Product/sqrt(d (model)) = 4/2 = 2Final Answer: 2b. In a transformer model, if d (