Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged barc2026-cs-memorybased
2
2 votes
0
0 answers
415
415 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 1
Consider the following C program:#include <stdio.h void func(int *a, int *b) { int i = (*a) * (*b); int *j = b; for (;;) { if (i 20) ...
GO Classes
415
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
programming-in-c
three-marks
+
–
0
0 votes
0
0 answers
317
317 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 2
Consider a hash table with $100$ slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is the probability that the first $3$ slots are unfi...
GO Classes
317
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
2
2 votes
1
1 answer
377
377 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 3
Size of $\verb|int|$ is $\mathrm{2~B}$ and size of $\verb|float|$ is $\mathrm{4~B}$Consider the following C++ program:#include<iostream using namespace std; int main() { ...
GO Classes
377
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
programming
three-marks
+
–
1
1 vote
1
1 answer
288
288 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 4
Consider the following C declarations and their interpretations:$\verb|void * foo(void *)| : \verb|foo|$ is a function that takes an argument of type $\verb|void|$ and re...
GO Classes
288
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
programming-in-c
three-marks
+
–
1
1 vote
1
1 answer
282
282 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 5
Consider the following function that reverses a singly linked list.Node* reverseList(Node* head) { Node* prev = NULL; Node* current = head; Node* next = NULL;...
GO Classes
282
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
0
0 votes
1
1 answer
287
287 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 6
Consider the following function:void f(stack S) { int x ; if (!isEmpty(S)) { x = pop(S); f(S); push(S, x); } }What operation is performed by t...
GO Classes
287
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
1
1 vote
1
1 answer
278
278 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 7
Consider inserting the following sequence of keys into an initially empty AVL tree:$$38,53,42,26,33,60,79,21,20$$During the construction of the AVL tree, rotations are pe...
GO Classes
278
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
1
1 vote
1
1 answer
285
285 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 8
A queue initially contains the elements (from front to rear):$$1~2~3~4~5~6$$An empty stack is also available. The following operations can be performed:Dequeue an element...
GO Classes
285
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
0
0 votes
1
1 answer
326
326 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 9
In the balanced binary search tree in the below figure, how many nodes will become unbalanced when a node with value $97$ is inserted?$1$ $2$ $3$ $4$
GO Classes
326
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
0
0 votes
1
1 answer
280
280 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 10
Consider the following function defined on a binary tree:int func(Node* root) { if (root == NULL) { return 0; } int l = func(root->left); int...
GO Classes
280
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
0
0 votes
1
1 answer
252
252 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 11
Consider the following C function:void foo (int n) { while (n < 100) { if (n = 5) { printf("Inside\n"); break; } ...
GO Classes
252
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
programming-in-c
three-marks
+
–
0
0 votes
0
0 answers
254
254 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 12
Consider the following C program.#include <stdio.h union p { char a; char b; int c; }; int main() { union p s; s.a = 20; s.b = 20; s.c = ...
GO Classes
254
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
0
0 votes
1
1 answer
283
283 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 13
Consider a Binary Search Tree (BST) containing $n$ nodes. The task is to find the median element of the BST and then delete that node from the tree.What is the time compl...
GO Classes
283
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
data-structures
three-marks
+
–
1
1 vote
0
0 answers
227
227 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 14
A new sorting algorithm is proposed to arrange an array in descending order. The algorithm scans the elements of the array sequentially. If an element is found to be out ...
GO Classes
227
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
three-marks
+
–
0
0 votes
0
0 answers
215
215 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 15
An array of size $n$ is given in sorted order. We want to find the ceiling of a given value $x$ in the array.The ceiling of $x$ is defined as the smallest element in the ...
GO Classes
215
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
three-marks
+
–
0
0 votes
2
2 answers
302
302 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 16
Consider the directed weighted graph shown in the figure. Assume that Dijkstra's shortest path algorithm is executed with node $A$ as the source. For which of the nodes d...
GO Classes
302
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
three-marks
+
–
0
0 votes
0
0 answers
194
194 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 17
Consider the graph shown in the figure.Breadth-First Search (BFS) traversal is performed starting from node $D$. Which of the following sequences could be a valid BFS tra...
GO Classes
194
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
multiple-selects
three-marks
+
–
1
1 vote
1
1 answer
246
246 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 18
Let $f(n)$ and $g(n)$ be two functions. Recall that $f(n)=O(g(n))$ if there exist positive constants $c$ and $n_{0}$ such that for all $n \geq n_{0}$,$$f(n) \leq c \cdot ...
GO Classes
246
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
three-marks
+
–
1
1 vote
2
2 answers
265
265 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 19
Consider the weighted undirected graph shown in the figure.Which of the following edges can never be part of any Minimum Spanning Tree of this graph?$(C, E)$ $(B, C)$ $(F...
GO Classes
265
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
three-marks
+
–
1
1 vote
1
1 answer
212
212 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 20
Consider the directed graph shown in the figure.Which of the following sequences of vertices is (are) a valid topological ordering of the given graph?$V_{2}, V_{1}, V_{3}...
GO Classes
212
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
three-marks
+
–
0
0 votes
0
0 answers
191
191 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 21
Insertion Sort is used to sort an array of distinct integers in descending order (largest element first).For which of the following input arrays will the algorithm perfor...
GO Classes
191
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
algorithms
three-marks
+
–
1
1 vote
1
1 answer
235
235 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 22
In the network shown in the figure, the cost of each link between routers is given. Assume that a routing algorithm is used and the routing tables have already converged....
GO Classes
235
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
1
1 vote
2
2 answers
286
286 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 23
Consider the different activities related to email.$\text{m1}:$ Send an email from mail client to mail server $\text{m2}:$ Download an email from mailbox server to a mail...
GO Classes
286
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
0
0 votes
0
0 answers
198
198 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 24
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: $245.248.128.0/20$. The ISP wants to give half of this chunk of a...
GO Classes
198
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
1
1 vote
0
0 answers
208
208 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 25
Note: 4 statements were given.Consider the following statements related to TCP congestion control mechanisms.The Slow Start phase helps prevent queue overflow by graduall...
GO Classes
208
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
1
1 vote
1
1 answer
238
238 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 26
A long-distance remote connection is established between two nodes. The following parameters are given:Data size $=1024 ~\mathrm{Bytes}$ Bandwidth $=1 \mathrm{~Gb} / \mat...
GO Classes
238
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
1
1 vote
1
1 answer
287
287 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 27
Consider the following statements related to the Time-To-Live (TTL) or hop-count field in IP networking.A router decrements the hop-count of a packet and accepts the pack...
GO Classes
287
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
0
0 votes
1
1 answer
229
229 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 28
Consider the following statements about routing algorithms in computer networks.In Distance Vector Routing (DVR), the count-to-infinity problem occurs when a new node ent...
GO Classes
229
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
1
1 vote
1
1 answer
222
222 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 29
Consider the following statements related to IPv4 and IPv6 networking.The minimum MTU size required for IPv6 is smaller than the minimum allowable MTU size in IPv4. ARP c...
GO Classes
222
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
1
1 vote
1
1 answer
193
193 views
BARC 2026 CS | Memory Based Questions | GO Classes | Question: 30
A network uses a Token Bucket traffic shaping mechanism.The bucket capacity is $8 \mathrm{~Mb}$ and tokens are generated at a rate of $1 \mathrm{Mb} / \mathrm{s}$. Assume...
GO Classes
193
views
asked
Mar 17
BARC
barc2026-cs-memorybased
goclasses
computer-networks
three-marks
+
–
Page:
1
2
3
next »