GATE 2026
65 questions
MCQ 33 · MSQ 14 · NAT 181-mark 30 · 2-mark 35
Questions 26–30 of 65
Consider two relations and defined on the relational schemas and , respectively. is the primary key of and is a foreign key of referencing in .
Which of the following operations will violate the foreign key constraint?
Which of the following operations will violate the foreign key constraint?
One or more options are correct.
Answer: (A), (B)
The foreign key rule says this: each value of in must match a value of that already exists in .
- Insert into : this only adds new valid primary-key values to . The references already in stay valid. No new invalid reference can appear this way. Never violates.
- Delete from : this only removes rows from the referencing side. It cannot create a dangling reference; it can only lower their number. Never violates.
- Delete from : this may remove an value that a row in still refers to through . That leaves a dangling foreign key. Can violate.
- Insert into : the value of the new row may not match any value that exists in . Can violate.
Answer: Inserting into r and deleting from s will NEVER violate the constraint.
- Insert into : this only adds new valid primary-key values to . The references already in stay valid. No new invalid reference can appear this way. Never violates.
- Delete from : this only removes rows from the referencing side. It cannot create a dangling reference; it can only lower their number. Never violates.
- Delete from : this may remove an value that a row in still refers to through . That leaves a dangling foreign key. Can violate.
- Insert into : the value of the new row may not match any value that exists in . Can violate.
Answer: Inserting into r and deleting from s will NEVER violate the constraint.
Let be a function defined on .
Which of the following statements is/are correct?
Which of the following statements is/are correct?
One or more options are correct.
Answer: (B), (D)
We have on . Differentiate: , so the critical points are at . Second derivative: . At 0 we get (local max at ). At 2 we get (local min at ).
Values: , . Now check the right endpoint, which is included: — this is the same value as ! So the maximum value is reached at both and . It is not reached at alone, so that claim is false.
is the only minimum. The left endpoint would give the same value , but is not in the domain, so the value is never reached there. So "minimum at only" is true.
Now look for roots in . is strictly increasing on this sub-interval, since for (both factors are negative). It goes from up to , so it crosses zero exactly once, not twice. That claim is false.
Check . So is indeed a root.
Answer: f has a minimum at 2 only; and f has a root at 1.
Values: , . Now check the right endpoint, which is included: — this is the same value as ! So the maximum value is reached at both and . It is not reached at alone, so that claim is false.
is the only minimum. The left endpoint would give the same value , but is not in the domain, so the value is never reached there. So "minimum at only" is true.
Now look for roots in . is strictly increasing on this sub-interval, since for (both factors are negative). It goes from up to , so it crosses zero exactly once, not twice. That claim is false.
Check . So is indeed a root.
Answer: f has a minimum at 2 only; and f has a root at 1.
Suppose a random variable follows distribution with probability density function and cumulative distribution function . Another random variable follows distribution with probability density function and cumulative distribution function . Let be the positive real number for which .
Which of the following statements is/are correct?
Which of the following statements is/are correct?
One or more options are correct.
Answer: (A), (C)
and (the density, which is the standard Cauchy). Both are symmetric about .
Compare the curves: . At it is . It rises a little, then falls to as , so it crosses only once for , at . So for and for .
(A): both are symmetric about , so . True.
(D): and . Not equal. False.
(B): both total areas are 1, so . Since for , this is positive, so . So (B) is false.
(C): by symmetry and . From , we get . True.
Answer: (A), (C)
Compare the curves: . At it is . It rises a little, then falls to as , so it crosses only once for , at . So for and for .
(A): both are symmetric about , so . True.
(D): and . Not equal. False.
(B): both total areas are 1, so . Since for , this is positive, so . So (B) is false.
(C): by symmetry and . From , we get . True.
Answer: (A), (C)
Consider that for a supervised learning task, the objective function being minimized is , where is the input and is the parameter. Stochastic Gradient Descent with learning rate of is used for parameter updates.
Suppose that at the end of iteration , the value of becomes .
Let be the input for iteration .
The value of at the end of iteration ( ) is ________. (Rounded off to two decimal places)
Suppose that at the end of iteration , the value of becomes .
Let be the input for iteration .
The value of at the end of iteration ( ) is ________. (Rounded off to two decimal places)
Answer: 8.9 to 9.1
The objective function is . Its gradient with respect to is just , because differentiated with respect to gives this.
The SGD update rule is: .
Here we have , learning rate , and for this update:
Answer: 9.00
The SGD update rule is: .
Here we have , learning rate , and for this update:
Answer: 9.00
Consider the game tree for a two-player turn-taking minimax game as shown in the figure. The value of a terminal node represents the utility of the game state if the game ends there. The numbers written next to the edges denote the strategies.
There are two players MAX and MIN. At any particular state of the game, MAX prefers to move to a state of maximum value. On the other hand, MIN prefers to move to a state of minimum value.
Suppose MAX starts the game at the root and has three strategies: and . Next, MIN plays and also has three strategies: and . The game ends there. Both players always take optimal strategies throughout the game.
At the root, the best strategy for MAX is ________. (Answer in integer)
There are two players MAX and MIN. At any particular state of the game, MAX prefers to move to a state of maximum value. On the other hand, MIN prefers to move to a state of minimum value.
Suppose MAX starts the game at the root and has three strategies: and . Next, MIN plays and also has three strategies: and . The game ends there. Both players always take optimal strategies throughout the game.
At the root, the best strategy for MAX is ________. (Answer in integer)
Answer: 2
This is plain minimax backward induction. The question asks for the strategy number MAX should pick (the edge label), not the game value.
First find the value of each MIN node. Each MIN node takes the smallest of its three leaf values:
Strategy (left MIN node):
Strategy (middle MIN node):
Strategy (right MIN node):
MAX moves first at the root and compares the three results: (strategy ), (strategy ) and (strategy ). MAX wants the largest value, and . So the best choice is strategy , which gives the value when both players play optimally.
Answer: 2
First find the value of each MIN node. Each MIN node takes the smallest of its three leaf values:
Strategy (left MIN node):
Strategy (middle MIN node):
Strategy (right MIN node):
MAX moves first at the root and compares the three results: (strategy ), (strategy ) and (strategy ). MAX wants the largest value, and . So the best choice is strategy , which gives the value when both players play optimally.
Answer: 2