MauryaHub PYQ Practice

Programming, Data Structures and Algorithms using Python · End Term · Jan 2024 · AN

Programming, Data Structures and Algorithms using Python · End Term · Jan 2024 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 25 published solutions

Question 227 MCQ · 4.0 marks

Here is a function to return the maximum value in a list of integers. There is a logical error in this function.
Source diagram or notation
A.Source diagram or notation
Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q227

Question 228 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q228

Question 229 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q229

Question 230 MCQ · 4.0 marks

The following sequence of stack operations is performed on a Stack:
Source diagram or notation
The sequence of values popped from the Stack is:
A.
10, 10, 20, 10, 20
B.
20, 10, 10, 20, 10
C.
20, 20, 10, 10, 10
D.
10, 20, 10, 20, 10

A published solution is not available for this question yet.

Report a correction for Q230

Question 231 MCQ · 4.0 marks

Source diagram or notation
A.
2
B.
3
C.
4
D.
5

A published solution is not available for this question yet.

Report a correction for Q231

Question 232 MCQ · 4.0 marks

You are given a social network with users and their friendships represented as a graph. You want to find the shortest chain of friends between User A and User B. Which of the following algorithm is best suited and efficient for solving this problem?
A.
Breadth-first search
B.
Depth-first search
C.
Dijkstra's Algorithm
D.
Bellman-Ford algorithm

A published solution is not available for this question yet.

Report a correction for Q232

Question 233 MCQ · 4.0 marks

Consider the graph given below
Source diagram or notation
Which of the following is the correct topological ordering of the given graph?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q233

Question 234 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q234

Question 235 MCQ · 4.0 marks

Source diagram or notation
A.
4
B.
6
C.
7
D.
8

A published solution is not available for this question yet.

Report a correction for Q235

Question 236 MCQ · 4.0 marks

Consider the elements **71, 65, 84, 69, 66, 81, and 62** inserted into empty binary search tree in the same sequence. Which element will be inserted in the lowest level?
A.
62
B.
69
C.
66
D.
81

A published solution is not available for this question yet.

Report a correction for Q236

Question 237 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q237

Question 238 MCQ · 4.0 marks

Source diagram or notation
A.
4
B.
5
C.
3
D.
7

A published solution is not available for this question yet.

Report a correction for Q238

Question 239 MSQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation
E.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q239

Question 240 MSQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q240

Question 241 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q241

Question 242 NAT · 4.0 marks

Consider a complete binary tree **T** with **19** nodes. The number of leaf nodes in **T** is ____.

A published solution is not available for this question yet.

Report a correction for Q242

Question 243 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q243

Question 244 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q244

Question 245 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q245

Question 246 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q246

Question 247 NAT · 4.0 marks

Let G be a simple graph with 25 vertices. The size of the maximum independent set of graph G is 15. What is the size of the minimum vertex cover of G?

A published solution is not available for this question yet.

Report a correction for Q247

Question 248 MCQ · 4.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q248

Question 249 MCQ · 4.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q249

Question 250 MCQ · 4.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
A.
TRUE
B.
FALSE

A published solution is not available for this question yet.

Report a correction for Q250

Question 251 MCQ · 4.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
A.
TRUE
B.
FALSE       **AppDev1** **Section Id :** 64065356694 **Section Number :** 9 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 32 **Number of Questions to be attempted :** 32 **Section Marks :** 100 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q251