Question 1 | MCQ
Solution
Consider the Python file and a template given below.
Python file: app.py

Template file: index.html

If the above flask application is running locally on the URL ‘http://127.0.0.1:5000’, which of the following statements is/are true about the above code snippet?
Python file: app.py
Template file: index.html
If the above flask application is running locally on the URL ‘http://127.0.0.1:5000’, which of the following statements is/are true about the above code snippet?
Solution
A flask application is given below.

If the above flask application is running locally on the URL ‘http://127.0.0.1:5000’, which of the following statement is true about the above flask application?
If the above flask application is running locally on the URL ‘http://127.0.0.1:5000’, which of the following statement is true about the above flask application?
Solution
Consider the table “production” in SQLite database given below:

Solution
Consider the table “employee” given below. The model class “Employee” corresponds to table “employee” in the database.

Solution
Which of the following is the correct Python object representation of the given SQL query with declarative_base() class.

Solution
If the below flask application is running locally on the URL: ‘http://127.0.0.1:5000’, what will be rendered by the browser?
Python file: main.py

Template: index.html

Python file: main.py
Template: index.html
Solution
Consider the following table “table_A” in SQLite database.

Solution
Consider the following HTML file with embedded JavaScript.
Filename: index.html

How will the browser render the above HTML file?
Filename: index.html
How will the browser render the above HTML file?
Solution
Consider the statements given below.
Statement 1:APIs usually contain SDKs, but SDKs do not contain APIs.
Statement 2:The SDKs contains the group of tools that help developers to use a different product or services.
Which of the following is correct in the context of statements given above?
Statement 1:APIs usually contain SDKs, but SDKs do not contain APIs.
Statement 2:The SDKs contains the group of tools that help developers to use a different product or services.
Which of the following is correct in the context of statements given above?
Solution
Consider a situation, where a developer wants to create his own customized application and wants to deploy it for the end users. For that, he wants a development environment that consists of some programming language execution environment, an operating system, a web server and a database, such that he can build, compile and run his programs without worrying about the servers, storage, and networking. Which of the following service models he would prefer in order to do so?
Solution
Consider the following table ‘flowers’ in SQLite database.

Solution
Match the following based on the memory hierarchy of computer.

Solution
Consider the HTML document given below:

Which of the following statements is true for the above HTML document when rendered by the
browser?
Which of the following statements is true for the above HTML document when rendered by the
browser?
Solution
Consider the following PyHTML program. Identify the corresponding HTML file which will be generated on running the PyHTML code.

Solution
Solution
Consider the following Python code snippet:

Solution
Shape
Thickness [ / ]
3
All colors