Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : DATA SCIENCE AND AI LAB
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
You have two DataFrames:
and
. You want to combine them so that the resulting DataFrame contains only the employees who belong to a department that exists in
table. Which of the arguments for the
parameter provided in the options should you use in
to achieve this?

Solution
You have a 'long' DataFrame df containing weather data for different cities:

You want to reshape this so that each City has its own column, with Date as the index. Which command will produce this wide-format table?
You want to reshape this so that each City has its own column, with Date as the index. Which command will produce this wide-format table?
Solution
What is the output of the following snippet of code?

Solution
A student is writing a training loop for a neural network. Consider the following code snippet, where three critical lines are missing:

Which of the following option correctly identifies the missing lines in the order they should appear to ensure the model trains correctly?
Which of the following option correctly identifies the missing lines in the order they should appear to ensure the model trains correctly?
Solution
Solution
Which of the following best describes the logic of Non-Maximum Suppression algorithm used in the YOLO (You Only Look Once) model?
Solution
Solution
Consider the following code:

Which of the following statements is TRUE regarding the output generated by the tokenizer?
Which of the following statements is TRUE regarding the output generated by the tokenizer?
Solution
Consider the following code and answer the following question.

which of the below option correctly describes the behavior of model with
which of the below option correctly describes the behavior of model with
Solution
Which of the following code snippets will run successfully given that you have all the required installation, no billing issue, API KEYS are configured correctly, access of all mentioned models is present?
Solution
A legal chatbot must answer strictly based on internal case documents and should minimize hallucination.
Which of the following approaches is MOST suitable?
Which of the following approaches is MOST suitable?
Solution
Which analogy best describes RAG vs Fine-Tuning?
Solution
A developer wants only the top 2 most relevant chunks retrieved. Which of the following correctly achieves this?
Solution
You accidentally wrote:

But your state schema expects:

What is the most likely result?
But your state schema expects:
What is the most likely result?
Solution
Which of the following statements are true regarding regularization?
Solution
A student is building a linear regression model. Which of the following code snippets correctly prevents PyTorch from tracking gradients during the evaluation phase? Select all that apply.
Solution
When implementing a custom dataset by inheriting from 'torch.utils.data.Dataset', which of the following methods must be overridden to ensure compatibility with a 'DataLoader'?
Solution
An image "sample.jpg" with the shape
is processed using the following code:

Which of the following statements regarding the transformation are False?
Which of the following statements regarding the transformation are False?
Solution
Solution
Inscript
Consider the following code snippet for a multi-class classification problem with three classes: 0, 1, and 2. The ground-truth labels are stored in
, and the predicted labels are stored in
.

What is the recall score for class 1? (Round off to two decimal places)
Consider the following code snippet for a multi-class classification problem with three classes: 0, 1, and 2. The ground-truth labels are stored in
What is the recall score for class 1? (Round off to two decimal places)
Solution
Consider the following code snippet and select the true statements from the options provided.

Solution
Which of the following code snippets will produce the same output every time they are run? (Assume the model and its infrastructure remain unchanged.)
Solution
A RAG system answers direct factual questions well, but struggles when the answer requires piecing together information spread across multiple documents. A developer has the following setup:

Which single change would MOST directly improve performance on multi-document synthesis questions?
Which single change would MOST directly improve performance on multi-document synthesis questions?
Solution
You are building a simple LangGraph agent that:
1. Starts at the agent node
2. If the LLM response contains a tool call, go to tool
3. Otherwise, end the workflow
Fill in the missing line.

Which line correctly adds conditional routing?
1. Starts at the agent node
2. If the LLM response contains a tool call, go to tool
3. Otherwise, end the workflow
Fill in the missing line.
Which line correctly adds conditional routing?
Solution
You are building a ReAct style agent using LangGraph.

What happens on
What happens on
Solution
Shape
Thickness [ / ]
3
All colors