Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : APPLICATION DEVELOPMENT
LAB (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
LAB (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
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?
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?
Solution
Consider the below express code.

When a GET request is made to the route
, what will be logged in the server logs?
When a GET request is made to the route
Solution
Consider the below code.

What will be returned in the response for the below request

What will be returned in the response for the below request
Solution
Consider the below code.

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?
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?
Solution
Which of the following are valid ways to create a shallow copy of an array?
Solution
Which of the following statements about Entity design is/are correct?
Solution
Consider the below javascript program.

What will be the output of the above program?
What will be the output of the above program?
Solution
Consider the below nodejs server code.

Assume the server is running locally. What happens when a request is made to the URL
?
Assume the server is running locally. What happens when a request is made to the URL
Solution
Consider the below nodejs server code.

Assume the server is running locally. What will be returned when a request is made to the URL
?
Assume the server is running locally. What will be returned when a request is made to the URL
Solution
Consider the following relation:
Product(product_id, product_name, category, price)
The following SQL query is executed:

Which of the following best describes the output?
Product(product_id, product_name, category, price)
The following SQL query is executed:
Which of the following best describes the output?
Solution
Consider the below typeORM entity.

Assume the corresponding table already exists. Which of the following operations will successfully insert a new record?
Assume the corresponding table already exists. Which of the following operations will successfully insert a new record?
Solution
Consider the below middleware implementation.

What is the potential issue in the above implementation?
What is the potential issue in the above implementation?
Solution
Consider the following sequence of Git commands.

Which of the following statements is true?
Which of the following statements is true?
Solution
Consider the below typeorm query operation.

What is the potential issue in the above logic?
What is the potential issue in the above logic?
Solution
Consider the below middleware implementation.

What will be returned if a GET request is made to the route
?
What will be returned if a GET request is made to the route
Solution
Which of the following
compiler options are correctly matched with their purpose?
Solution
Shape
Thickness [ / ]
3
All colors