MauryaHub PYQ Practice

Application Development Lab · Quiz 2 · Jan 2026

Application Development Lab · Quiz 2 · Jan 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 MSQ · 4.5 marks

A network monitoring system records the packet loss percentage of a router every minute. During a congestion event, the packet loss first increases and after reaching a peak it decreases as the network stabilizes. Thus the array
Source diagram or notation
of packet loss values is bitonic (strictly increasing followed by strictly decreasing). The administrator wants to detect the minute when packet loss was maximum using an O(log n) algorithm based on binary search. Suppose we examine the middle element
Source diagram or notation
. Let,
Source diagram or notation
(left neighbor)
Source diagram or notation
(right neighbor) Which of the following facts allow us to correctly narrow the search space?
6406536642306.
If
Source diagram or notation
, then x is the peak congestion value.
6406536642307.
If
Source diagram or notation
, then the peak congestion lies in the right half of the array.
6406536642308.
If
Source diagram or notation
, then the peak congestion lies in the left half of the array.
6406536642309.
If
Source diagram or notation
, then the peak congestion lies in the left half of the array.
6406536642310.
If
Source diagram or notation
, then the peak congestion lies in the right half of the array.

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 4.5 marks

Source diagram or notation
6406536642311.Source diagram or notation
6406536642312.Source diagram or notation
6406536642313.Source diagram or notation
6406536642314.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 4.5 marks

Consider the following code snippet running in a browser. What will be the output on the console?
Source diagram or notation
6406536642324.
Shield 99 99 42
6406536642325.
Shield 10 99 42
6406536642326.
Sword 99 99 42
6406536642327.
Shield 99 42 42

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 4.5 marks

Consider the following code snippet running on a browser. What is the output on the console?
Source diagram or notation
6406536642328.
42 42 42
6406536642329.
42 undefined undefined
6406536642330.
42 undefined 42
6406536642331.
undefined undefined undefined

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

A developer runs the following commands starting from main. Which diagram correctly shows the repository's branch structure afterwards?
Source diagram or notation
6406536642315.Source diagram or notation
6406536642316.Source diagram or notation
6406536642317.Source diagram or notation
6406536642318.
None of these.

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 3.0 marks

Consider the below code:
Source diagram or notation
What will be the output of the above program, if executed?
6406536642336.
Start End File Read
6406536642337.
Start File Read End
6406536642338.
File Read Start End
6406536642339.
End Start File Read

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 3.0 marks

Consider the below code:
Source diagram or notation
What happens when a request is made to “/”?
6406536642344.
Middleware A runs first, then the route handler
6406536642345.
The route handler runs first
6406536642346.
Middleware is skipped
6406536642347.
Server crashes

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 3.0 marks

Consider the following relation Employee of a Company
Source diagram or notation
Which of the following options is correct?
6406536642348.
The query returns employees who earn less than the company-wide maximum salary and joined first in the company.
6406536642349.
The query returns employees who earn less than the highest salary in their department and joined earliest in their department.
6406536642350.
The query returns employees who earn the minimum salary in their department and joined earliest in their department.
6406536642351.
The query returns employees who earn less than the department’s maximum salary and joined before the latest hire in the department.

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 3.0 marks

Consider the below code:
Source diagram or notation
What will the above code fetch?
6406536642356.
All records with all columns from the table
6406536642357.
One record with all columns from the table
6406536642358.
Only the primary keys of the table
6406536642359.
Nothing

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 3.0 marks

Consider the middleware.
Source diagram or notation
What does the above middleware do?
6406536642368.
Generates JWT tokens
6406536642369.
Protects routes from unauthenticated access
6406536642370.
Encrypts passwords
6406536642371.
Connects to the database

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MSQ · 3.0 marks

Consider this repository structure and the .gitignore file shown below.
Source diagram or notation
Source diagram or notation
Which files will not be tracked by Git?
6406536642319.Source diagram or notation
6406536642320.Source diagram or notation
6406536642321.Source diagram or notation
6406536642322.Source diagram or notation
6406536642323.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MSQ · 3.0 marks

Consider the following relation Orders:
Source diagram or notation
Which of the following option(s) is/are correct?
6406536642352.
The query returns the 4 most recent orders in the database.
6406536642353.
The query first sorts orders by most recent order_date, and for orders on the same date by smallest amount first.
6406536642354.
The query returns orders ranked 7 to 10 after sorting by (order_date DESC, amount ASC).
6406536642355.
The query skips the 6 newest orders and returns the next 4 orders based on the sorting order.

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 2.0 marks

What is the primary purpose of Node.js?
6406536642332.
To run JavaScript in a browser
6406536642333.
To compile JavaScript into machine code
6406536642334.
To execute JavaScript on the server
6406536642335.
To replace HTTP servers completely

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 2.0 marks

Consider the below code:
Source diagram or notation
Which of the following HTTP methods will trigger this route?
6406536642340.
POST
6406536642341.
PUT
6406536642342.
GET
6406536642343.
DELETE

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 2.0 marks

Consider the below code:
Source diagram or notation
What does the **create()** do?
6406536642360.
Inserts the record directly into the database.
6406536642361.
Deletes an existing record.
6406536642362.
Opens a database connection.
6406536642363.
Creates a new entity instance.

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 statements about JWT are true?
6406536642364.
JWTs are stateless authentication tokens.
6406536642365.
They must be sent in request headers.
6406536642366.
They must always be stored in databases.
6406536642367.
They contain encoded payload information.

A published solution is not available for this question yet.

Report a correction for Q17