Consider the following relational schema: 
Which of the following options is/are correct SQL query/queries to retrieve the names of the students enrolled in course number (i.e., courseno) 1470?




EXISTS, which efficiently verifies if a student is enrolled. This is correct because the EXISTS clause checks for the existence of records that match the condition, in this case, enrollment in course 1470.SIZEOF, which is not a valid SQL function. This is incorrect because SIZEOF is not recognized in SQL; the correct function would be something like COUNT(*) or using EXISTS for verifying record existence.COUNT(*), which returns a positive value when a student is enrolled. Since it checks for a positive count of records, it is correct. This approach counts the number of rows where the student is enrolled in course 1470, and if the count is greater than zero, it confirms enrollment.NATURAL JOIN between Students and Enrolled, which implicitly joins on rollno and filters by courseno = 1470. This is also correct because a NATURAL JOIN automatically matches columns with the same name, and the query will filter students who are enrolled in the specified course.Each of these options uses a different SQL approach to achieve the same result, but only Options (A), (C), and (D) are correct, while Option (B) is incorrect due to the use of an invalid function.
| List-I | List-II |
|---|---|
| (A) SUBSTR() | (II) To extract a substring from a string. |
| (B) TRIM() | (IV) To remove spaces from both sides of the string. |
| (C) INSTR() | (I) To find the position of a substring in a string. |
| (D) LEFT() | (III) To extract characters from the left side of the string. |
Given the following table:
| ENO | SALARY |
|---|---|
| A101 | 4000 |
| B109 | NULL |
| C508 | 6000 |
| A305 | 2000 |
State the output of the following query:
SELECT COUNT(SALARY) FROM EMPLOYEE;
In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ______________. {(Answer in integer)}
Consider the following C code segment:
int x = 126, y = 105;
do {
if (x > y)
x = x - y;
else
y = y - x;
} while (x != y);
printf("%d", x);
The output of the given C code segment is ____________. (Answer in integer)
The following two signed 2’s complement numbers (multiplicand \( M \) and multiplier \( Q \)) are being multiplied using Booth’s algorithm:
| Multiplicand (\( M \)) | Multiplier (\( Q \)) |
|---|---|
| 1100 1101 1110 1101 | 1010 0100 1010 1010 |
The total number of addition and subtraction operations to be performed is __________. (Answer in integer)
The maximum value of \(x\) such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is __________ (answer in integer).
Consider the following C program
The value printed by the given C program is __________ (Answer in integer).