Recent questions tagged goclasses-da-dpp-day-74

0 0 votes
1 1 answer
256
256 views
Consider the following undirected, unweighted graph with vertices$\verb|V = {A, B, C, D, E, F}|$ and edges:(A, B), (A, C), (B, D), (C, D), (C, E), (D, F), (E, F)A Breadth...
0 0 votes
1 1 answer
199
199 views
A queue is implemented using an array of size $6$ with two indices $\verb|front|$ and $\verb|rear|$.Initially, $\verb|front = rear = -1|$.The following operations are per...
0 0 votes
1 1 answer
222
222 views
Consider the following Python code: def make_funcs(): funcs = [] for i in range(3): funcs.append(lambda x: x + i) return funcs f1, f2, f3 = make_f...
1 1 vote
1 1 answer
224
224 views
Consider the following Python code: A={i: i*i for i in range(3)} B = A C = A.copy() A[3] = 9 B[4] = 16 C[5] = 25 print(len(A), len(B), len(C))}What will be printed by the...
0 0 votes
1 1 answer
250
250 views
Consider the following Python program: x = [1, 2, 3] def g(y): y = y + [4] return y def h(y): y.append(4) return y p = g(x) q = h(x) print(x, p, q...
To see more, click for the full list of questions or popular tags.