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)
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 following flask app and Jinja2 template.

If the flask app is running locally on http://127.0.0.1:5000. What will be the output on the browser for the base URL?
If the flask app is running locally on http://127.0.0.1:5000. What will be the output on the browser for the base URL?
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
Comprehension Passage
Based on the above data, answer the given subquestions.
Which of the following statements is/are correct ?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Which of the following commands will give the terminal output as:

Solution
Consider the following function to be tested and test functions given in the Python code snippet below.


Solution
Consider the following SQL create statement.

Which of the following flask_sqlalchemy models will create exactly the same table as created by the above SQL command?
Which of the following flask_sqlalchemy models will create exactly the same table as created by the above SQL command?
Solution
Consider the following python code snippet. What will be the rendered output forthe terminal output?

Solution
Comprehension Passage
Consider the following flask application and html template. Assume that the Flask app is running at http://127.0.0.1:5000.


Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
What will be the final styling applied to the element inside the div for the URL: http://127.0.0.1:5000/?color=green&size=30&msg=welcome+user
Solution
Comprehension Passage
Consider the following flask application and html template. Assume that the Flask app is running at http://127.0.0.1:5000.


Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
What will be the rendered output on the browser for the URL:
http://127.0.0.1:5000/?color=green&size=30&msg=welcome+user
http://127.0.0.1:5000/?color=green&size=30&msg=welcome+user
Solution
Which of the following statements correctly differentiates between synchronous and asynchronous updates in frontend development?
Solution
Solution
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If the correct if-else block is used, what will be the output of the program for the sequence [2, 5, 8]?
Solution
Comprehension Passage
AHousehold Services Applicationmaintains the followingthree tables:



TheRequeststable represents service bookings made by customers.
Based on the above data, answer the given subquestions.
TheRequeststable represents service bookings made by customers.
Based on the above data, answer the given subquestions.
Which SQL query correctly retrieves thecustomer names and the services they requested?
Solution
Comprehension Passage
AHousehold Services Applicationmaintains the followingthree tables:



TheRequeststable represents service bookings made by customers.
Based on the above data, answer the given subquestions.
TheRequeststable represents service bookings made by customers.
Based on the above data, answer the given subquestions.
Which query finds thenumber of service requests made by each customer?
Solution
Comprehension Passage
AHousehold Services Applicationmaintains the followingthree tables:



TheRequeststable represents service bookings made by customers.
Based on the above data, answer the given subquestions.
TheRequeststable represents service bookings made by customers.
Based on the above data, answer the given subquestions.
If the given tables are mapped to Flask-SQLAlchemy models (Customer, Service, Request), which query correctly retrieves all services requested by customer with id=1?
Solution
Which of the following is the correct way to add a click event listener to a button with id="myBtn" in JavaScript?
Solution
Solution
Solution
Consider the data table below in SQLite database.

Solution
Which of the following commands is/are valid to run pytest from the command line?
Solution
Consider the following Python code.

Which of the following assertion test case throws the exception?
Which of the following assertion test case throws the exception?
Solution
What does the followingcurlcommand do?

Solution
Solution
Solution
Which statements about frontend and backend validation are TRUE?
Solution
Solution
Solution
Solution
You are on the main branch and want to merge feature1 and feature2 branches. What is the correct command sequence?
Solution
Solution
Shape
Thickness [ / ]
3
All colors