Data Science and Artificial Intelligence
2025 · Paper 1
Take it one question at a time. Try an answer, then check your understanding.
Complete GATE DA 2025 Paper 1 overview, original pages and practice · Timed previous-paper practice
Questions 61–63 of 65. Imported answers require review unless explicitly marked reviewed.
Question 61
Open questiondaNAT2 marksNeeds review
A bag contains 5 white balls and 10 black balls. In a random experiment,
balls are drawn from the bag one at a time with replacement. Let
denote the total number of black balls drawn in the experiment.The expectation of
denoted by
______
(Round off to one decimal place)Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 62
Open questiondaNAT2 marksNeeds review
Consider the following tables, Loan and Borrower, of a bank.
Loan:
loan_num | branch_name | amount |
|---|---|---|
L11 | Banjara Hills | 9000 |
L14 | Kondapur | 5000 |
L15 | SR Nagar | 4000 |
L22 | SR Nagar | 2500 |
L23 | Balanagar | 8000 |
L25 | Kondapur | 7000 |
L19 | SR Nagar | 6500 |
Borrower:
customer_name | loan_num |
|---|---|
And | L11 |
Karteek | L11 |
Karteek | L14 |
Ankita | L15 |
Gopal | L19 |
Karteek | L22 |
Karteek | L23 |
Sunil | L23 |
Sunil | L25 |
Query:
where
denotes natural join.The number of tuples returned by the above relational algebra query is ______
(Answer in integer)
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 63
Open questiondaNAT2 marksNeeds review
Consider the following Python code snippet.
def f(a,b):
if (a==0):
return b
if (a%2==1):
return 2*f((a-1)/2,b)
return b+f(a-1,b)
print(f(15,10))
The value printed by the code snippet is ______ (Answer in integer)
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer