Recent questions without answers

385
views
0 answers
4 votes
Consider the following schema (primary keys are underlined):Which of the following queries returns the department numbers of those departments for which there are no cour...
1.0k
views
0 answers
4 votes
The grammar shown below is LL(k) for some value of k. What is the smallest value of k for which this grammar is LL(k)?
386
views
0 answers
3 votes
The logic circuit above is used to compare two unsigned 2-bit numbers, $X_1 X_0=X$ and $Y_1 Y_0=Y$, where $X_0$ and $Y_0$ are the least significant bits. (A small circle ...
676
views
0 answers
4 votes
Which of the following statements are true for every language $\mathrm{L} \subseteq\{0,1\}^*?$$L^{\star}$ is infinite.$L$ is accepted by some DFA if and only if $L$ is ac...
286
views
0 answers
0 votes
Consider a matrix \(M \in \mathbb{R}^{3 \times 3}\) and let \(U\) be a 2-dimensional subspace such that \(M\) is a projection onto \(U\). Which of the following statement...
254
views
0 answers
0 votes
Consider a dataset with a raw score \(x = 75\), a mean \(\mu = 70\), and a standard deviation \(\sigma = 5\). Calculate the Z-score using the formula \(z = \frac{x - \mu}...
241
views
0 answers
0 votes
Consider the following table:$$\begin{array}{cccc}& A & B & C \\Person 1 & 10,000 & 20,000 & 20,000 \\Person 2 & 20,000 & 15,000 & 15,000 \\& x \% & 15 \% & 15 \%\end{arr...
277
views
0 answers
2 votes
Consider the joint probability density function given by:$$f(x, y)=\begin{cases}    2xy & \text{if } 0 < x < 2 \text{ and } 0 < y < x \\    0 & \text{otherwise}\e...
240
views
0 answers
0 votes
Consider the following SQL query:\[\begin{aligned}&\text{SELECT * FROM Raider, Team} \\&\text{WHERE Raider.id = Team.id} \\&\text{AND City = 'Jaipur'} \\&\text{AND Raid_p...
162
views
0 answers
0 votes
Consider a directed acyclic graph (DAG) with vertices labeled as P, Q, R, S, T, U, and V. Which of the following sequences represents a possible topological sort of the g...
212
views
0 answers
1 votes
Consider the function \(f(n)\), which represents the maximum number of comparisons in binary search on a sorted array of size \(n\). Which of the following recursive rela...
155
views
0 answers
0 votes
Consider the following Python code:S = x = [6, 3, 5, 4, 10]for i in range(2, len(x)):    S[i] =     if x[i - 1]
124
views
0 answers
0 votes
What does the following Python code do?\begin{verbatim}def fun(D, S_1, S_2):    if S_1 < S_2:        D[S_1], D[S_2] = D[S_2], D[S_1]        fun(D, S_1...
182
views
0 answers
0 votes
Given the array \( [4, 3, 2, 1, 5] \), which of the following sorting algorithms can successfully sort the array in exactly two passes?Bubble SortInsertion Sort Selectio...
273
views
0 answers
0 votes
Consider performing Depth-First Search (DFS) on an undirected and unweighted graph $\bar{G}$ starting at vertex $S$. For any vertex $u$ in $G$, where $d[u]$ is the length...
245
views
0 answers
1 votes
Consider a function \(f\) with \(f^1(X^*) = 0\) and \(f^{1l}(X^*) 0\). Based on these conditions, determine the nature of the critical point \(X^*\) for the function \(f...
232
views
0 answers
0 votes
Consider two admissible heuristic functions, \(h_1\) and \(h_2\). Determine which of the following combinations are admissible:\(\frac{h_1}{h_2}\) \(\left(h_2 0\right)\)...
191
views
0 answers
0 votes
BFS DFS question asking the number of nodes expanded BFS = DFSBFS $$ DFSNone
209
views
0 answers
0 votes
Conditional probability\[\begin{aligned}    & \mathrm{P}(\mathrm{U}, \mathrm{V}, \mathrm{W}, \mathrm{X}, \mathrm{Y})    & = \mathrm{P}(\mathrm{U}) \cdot \mathrm{P...
308
views
0 answers
0 votes
In the context of K-Nearest Neighbors ($\mathrm{KNN}$), what is the minimum odd value of $\mathrm{K}$ such that the diamond ($\diamond$) shaped data point gets classified...
224
views
0 answers
0 votes
Consider the vectors:\[\begin{aligned}& X_1=\begin{bmatrix} 1 \\ 0 \end{bmatrix}, \quad X_2=\begin{bmatrix} 0 \\ 1 \end{bmatrix}, \quad X_3=\begin{bmatrix} 0 \\ -1 \end{b...
226
views
0 answers
0 votes
Consider a scenario with \(k\)-binary attributes for a two-class classification task using Naive Bayes. What is the total number of parameters needed?Choose the correct o...
155
views
0 answers
0 votes
Match the following:$$\begin{array}{|p{0.3\linewidth}|p{0.6\linewidth}|}    \hline    \textbf{Technique} & \textbf{Characteristic} \\    \hline    Princip...
242
views
0 answers
0 votes
Consider the statements below related to probability distributions:\textbf{(S1):} For a Poisson distribution, the mean and variance are equal.\textbf{(S2):} For a standar...
178
views
0 answers
0 votes
Consider a k-means clustering scenario with two vectors already present in Cluster 3: \(\mathbf{v_1} = [1,1]\) and \(\mathbf{v_2} = [-1,1]\). Which of the following vecto...
181
views
0 answers
0 votes
You are given three tables: team , table1 , and table2 . To find the names of all players in the team who are either present in table1 or table2 , consider the foll...
127
views
0 answers
1 votes
In adversarial search, the evaluation function assignsHigh and LowHigh and HighLow and LowLow and High
152
views
0 answers
0 votes
Consider the following Python code:def countchildren(l, i):    Some code    Given lists    if i 2:        return 1    ans = 1    for i in l.k...
185
views
0 answers
0 votes
You are provided with three images, each depicting a different face of a six-sided dice. Based on these images, determine the correct option.
369
views
0 answers
0 votes
"silly $\rightarrow$ \underline{\hspace{1.5cm}} $\rightarrow$ daft,"vienvainfrownfawn