MauryaHub PYQ Practice

Application Development Lab · Quiz 2 · May 2026

Application Development Lab · Quiz 2 · May 2026

← 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 / 16 published solutions

Question 2 MCQ · 4.5 marks

**Minimum Coin Change using Dynamic Programming** You are given an unlimited supply of coins of different denominations and a target amount. Your task is to determine the minimum number of coins required to make the target amount exactly. If it is not possible to form the target amount, the algorithm should report that no solution exists. A common Dynamic Programming approach solves this problem by computing the minimum number of coins required for all smaller amounts before calculating the answer for the target amount. Which of the following statements is NOT true about solving the Minimum Coin Change problem using Dynamic Programming?
6406537123202.
We can define each subproblem as finding the minimum number of coins required to make every amount from 0 up to the target amount.
6406537123203.
The minimum number of coins required for a larger amount can be computed using the optimal solutions already obtained for smaller amounts.
6406537123204.
A Dynamic Programming solution stores the minimum number of coins required for each intermediate amount so that these values can be reused instead of being recomputed.
6406537123205.
The order in which the Dynamic Programming table is filled (for example, solving larger amounts before smaller ones without already having their answers) does not affect the correctness of the algorithm.

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 4.5 marks

Consider the below express code.
Source diagram or notation
When a GET request is made to the route
Source diagram or notation
, what will be logged in the server logs?
6406537123230.
A B C
6406537123231.
A B
6406537123232.
B C
6406537123233.
A C

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 4.5 marks

Consider the below code.
Source diagram or notation
What will be returned in the response for the below request
Source diagram or notation
6406537123234.
20
6406537123235.
50
6406537123236.
undefined
6406537123237.
Runtime Error

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 4.5 marks

Consider the below code.
Source diagram or notation
Assume that bcrypt generates a unique random salt for every call, so the same salt is never reused. What will be the output of the above program?
6406537123258.
Runtime Error
6406537123259.
true
6406537123260.
false
6406537123261.
The behavior is unpredictable

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MSQ · 3.0 marks

Which of the following are valid ways to create a **shallow** copy of an array?
6406537123206.Source diagram or notation
6406537123207.Source diagram or notation
6406537123208.Source diagram or notation
6406537123209.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MSQ · 3.0 marks

Which of the following statements about Entity design is/are correct?
6406537123246.
Each entity generally represents one database table.
6406537123247.
Every entity must have exactly one string column.
6406537123248.
Primary keys uniquely identify each record.
6406537123249.
Entity decorators help ORM map classes to database tables.

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 3.0 marks

Consider the below javascript program.
Source diagram or notation
What will be the output of the above program?
6406537123210.
Runtime Error
6406537123211.
undefined
6406537123212.
2
6406537123213.
3

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 3.0 marks

Consider the below nodejs server code.
Source diagram or notation
Assume the server is running locally. What happens when a request is made to the URL
Source diagram or notation
?
6406537123218.
The response completes successfully.
6406537123219.
The client keeps waiting because the response never ends.
6406537123220.
The server crashes immediately.
6406537123221.
Node.js automatically calls
Source diagram or notation
.

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 3.0 marks

Consider the below nodejs server code.
Source diagram or notation
Assume the server is running locally. What will be returned when a request is made to the URL
Source diagram or notation
?
6406537123226.
Home (with status code 200)
6406537123227.
About (with status code 200)
6406537123228.
Page Not Found (with status code 404)
6406537123229.
Internal Server Error (with status code 500)

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 3.0 marks

Consider the following relation: **Product(product_id, product_name, category, price)** The following SQL query is executed:
Source diagram or notation
Which of the following best describes the output?
6406537123238.
The four most expensive products in the Electronics category.
6406537123239.
The 3rd, 4th, 5th and 6th most expensive products in the Electronics category.
6406537123240.
All Electronics products except the two most expensive ones.
6406537123241.
The 3rd, 4th, 5th and 6th cheapest products in the Electronics category.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 3.0 marks

Consider the below typeORM entity.
Source diagram or notation
Assume the corresponding table already exists. Which of the following operations will successfully insert a new record?
6406537123242.Source diagram or notation
6406537123243.Source diagram or notation
6406537123244.Source diagram or notation
6406537123245.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 3.0 marks

Consider the below middleware implementation.
Source diagram or notation
What is the potential issue in the above implementation?
6406537123262.
If
Source diagram or notation
throws an exception, the server may return an unhandled error.
6406537123263.
Missing Authorization header.
6406537123264.
JWT verification always returns false.
6406537123265.
There is no issue.

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 2.0 marks

Consider the following sequence of Git commands.
Source diagram or notation
Which of the following statements is true?
6406537123214.
The latest changes are already committed.
6406537123215.
The latest changes are staged.
6406537123216.
The latest changes exist only in the working directory.
6406537123217.
Git automatically creates another commit.

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 2.0 marks

Consider the below typeorm query operation.
Source diagram or notation
What is the potential issue in the above logic?
6406537123250.Source diagram or notation
always returns an array.
6406537123251.
If no matching record exists, accessing
Source diagram or notation
may cause a runtime error.
6406537123252.
TypeORM automatically creates a default user.
6406537123253.
There is no issue.

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 2.0 marks

Consider the below middleware implementation.
Source diagram or notation
What will be returned if a GET request is made to the route
Source diagram or notation
?
6406537123254.Source diagram or notation
6406537123255.Source diagram or notation
6406537123256.Source diagram or notation
6406537123257.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MSQ · 2.0 marks

Which of the following
Source diagram or notation
compiler options are correctly matched with their purpose?
6406537123222.Source diagram or notation
→ Specifies the source folder.
6406537123223.Source diagram or notation
→ Specifies where compiled JavaScript files are generated.
6406537123224.Source diagram or notation
→ Specifies the JavaScript version to generate.
6406537123225.Source diagram or notation
→ Ignore all TypeScript errors.

A published solution is not available for this question yet.

Report a correction for Q17