Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : MODERN APPLICATION
DEVELOPMENT I (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)
DEVELOPMENT I (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
Consider the Flask SQLAlchemy data model.

What is the output after the following Python code is executed ? (Assume all entries are successfully committed to the database)

What is the output after the following Python code is executed ? (Assume all entries are successfully committed to the database)
Solution
Consider the SQLAlchemy modelOrdermapped to the tableorders.

Solution
Consider the following models: Course and Enrollment corresponding to tables course and enrollment in SQLite database.

Based on the model schemas, what relationship do the classes Course and Enrollment share?
Based on the model schemas, what relationship do the classes Course and Enrollment share?
Solution
Consider the following Python code.
File name: decorator.py

What will be the output, when running the above code using the command "python decorator.py"?
File name: decorator.py
What will be the output, when running the above code using the command "python decorator.py"?
Solution
Which of the following statements is correct?
Statement 1: In Server-Side Rendering (SSR), the client's browser receives a nearly empty HTML skeleton and relies heavily on client-side JavaScript execution to fetch data and construct the Document Object Model (DOM).
Statement 2: Client-Side Rendering (CSR) reduces the immediate processing load on the web server by offloading UI layout rendering tasks to the user's browser engine.
Statement 1: In Server-Side Rendering (SSR), the client's browser receives a nearly empty HTML skeleton and relies heavily on client-side JavaScript execution to fetch data and construct the Document Object Model (DOM).
Statement 2: Client-Side Rendering (CSR) reduces the immediate processing load on the web server by offloading UI layout rendering tasks to the user's browser engine.
Solution
A recipe webpage needs to display two distinct sections:
1.A list of ingredients where theorder does not matter.
2.A sequence of cooking steps thatmust be followed in order.
Which combination of HTML list container tags is most appropriate for these sections?
1.A list of ingredients where theorder does not matter.
2.A sequence of cooking steps thatmust be followed in order.
Which combination of HTML list container tags is most appropriate for these sections?
Solution
Consider the following Python jinja2 templating code.

Solution
Consider the following flask app.

If the application is running locally on http://127.0.0.1:5000, select the correct options.
If the application is running locally on http://127.0.0.1:5000, select the correct options.
Solution
Consider the following Flask application structure and code.


Which of the following statements about the template rendering behavior is correct?
Which of the following statements about the template rendering behavior is correct?
Solution
What does the following curl command do?

Solution
In the context of asynchronous updates, which of the following statements is correct?
Solution
Consider the following Flask RESTful API code.

What will be the response?
What will be the response?
Solution
Inscript
A magnetic disk can spin only in one direction with a constant speed of 6000rpm. What is the maximum delay (worst-case latency) before data transfer starts (in milliseconds)?
A magnetic disk can spin only in one direction with a constant speed of 6000rpm. What is the maximum delay (worst-case latency) before data transfer starts (in milliseconds)?
Solution
Consider the following Flask app code.

The above flask app is running on "http://127.0.0.1:5000". Which of the following commands will return a runtime error?
The above flask app is running on "http://127.0.0.1:5000". Which of the following commands will return a runtime error?
Solution
Which of the following statements is/are true about Document Object Model (DOM)?
Solution
Inscript
An e-commerce web application stores user shopping cart information as server-side session state. Each active user session occupies an average of 4 KB of memory. During a flash sale, the application is expected to handle 1.5 million concurrent active sessions, all stored in a centralized Redis cache server. What is the minimum RAM capacity (in GB) required solely to store these session states? (Assume that 1000B=1KB, 1000KB=1MB and so on)
An e-commerce web application stores user shopping cart information as server-side session state. Each active user session occupies an average of 4 KB of memory. During a flash sale, the application is expected to handle 1.5 million concurrent active sessions, all stored in a centralized Redis cache server. What is the minimum RAM capacity (in GB) required solely to store these session states? (Assume that 1000B=1KB, 1000KB=1MB and so on)
Solution
Shape
Thickness [ / ]
3
All colors