Question 1 | MCQ
Solution
Which of the following correctly represents the components of the given URL?

Solution
Consider the following flask app and an HTML file in templates folder:


Solution
Consider the flask code given below.

Which of the following code snippets must be added in the given space of above application, in order to create a new shop in ‘my_shops’ list on the server side apart from the existing one?
Which of the following code snippets must be added in the given space of above application, in order to create a new shop in ‘my_shops’ list on the server side apart from the existing one?
Solution
A table ‘person’ is created in the database using model class “Person” with fields and their properties given in the table below.

Solution
A flask app and a template files are given below.

If the above flask application is running locally on “http://127.0.0.1:5000”, which of the following statement is true?
If the above flask application is running locally on “http://127.0.0.1:5000”, which of the following statement is true?
Solution
An HTML document is given below.

Suppose, if we want to give red color to the text within the heading element having id="id1” and green color to the text within the heading element having class="class1”, what will be the correct way to do that?
Suppose, if we want to give red color to the text within the heading element having id="id1” and green color to the text within the heading element having class="class1”, what will be the correct way to do that?
Solution
Consider the following HTML document with internal CSS.

How will the browser render the above HTML document?
How will the browser render the above HTML document?
Solution
Solution
How will the browser render the output of the following Python code snippet?

Solution
Solution
An internet connection with certain bandwidth is able to serve 10,000 requests of 150 Kilobytes each. What should be the increase in bandwidth (in Gbps) if this internet connection is to handle 12,500 requests of 180 Kilobytes each? (Use relations:1 Byte = 8 bits, 1 MB = 1000 B, 1 GB = 1000 M and so on)
Solution
Consider the code snippet given below.

Which of the following statement is true about the above code snippet?
Which of the following statement is true about the above code snippet?
Solution
Consider the Python code snippet given below.

Solution
Consider the Python code given below.

Which of the following statement is true?
Which of the following statement is true?
Solution
Consider the flask app given below.

Solution
Consider the following flask application.

suppose the application is running locally on the ‘http://127.0.0.1:5000', then what will be rendered by the browser?
suppose the application is running locally on the ‘http://127.0.0.1:5000', then what will be rendered by the browser?
Solution
Consider the following Python code snippets.

Solution
Consider a server that has an Intel i5 processor, 64 GB RAM, 1 TB Hard disk with 3 Gbps network connection. If a client accesses a web page, it requires 1.5 MB. Calculate the maximum number of
such requests per second the server can handle. (Use relations:1 Byte = 8 bits, 1 MB = 1000 B, 1 GB = 1000 M and so on).
such requests per second the server can handle. (Use relations:1 Byte = 8 bits, 1 MB = 1000 B, 1 GB = 1000 M and so on).
Solution
Consider the following Python code snippet.

Solution
Consider the code given below.

Solution
What will be the decimal representation of binary number 0101011000000112?
Solution
A machine takes a minimum of 100 seconds to sort 500 entries in a database. What will be the approximate minimum time taken by the machine to sort 1200 entries if the sorting method employs an algorithm with time complexity of O(nlog(n)). Where “n” is the number of entries?
Solution
The speed vs. throughput characteristics of a typical HDD is shown in the figure below. If this HDD is to be used as a replacement of an SSD whose read/write speed is 450 MB/s. At what speed (in RPM) should the disk of HDD rotate with to deliver the same performance as that of the SSD?

Solution
Consider the following Flask app and an HTML file.

Suppose the application is running locally on the ‘http://127.0.0.1:5000', then what will be rendered by the browser for ‘http://127.0.0.1:5000/?id=5', http://127.0.0.1:5000/?id=1’ and ‘http://127.0.0.1:5000/?id=4' respectively?
Suppose the application is running locally on the ‘http://127.0.0.1:5000', then what will be rendered by the browser for ‘http://127.0.0.1:5000/?id=5', http://127.0.0.1:5000/?id=1’ and ‘http://127.0.0.1:5000/?id=4' respectively?
Solution
Consider the following Python code snippet.

What will be the output of the above program?
What will be the output of the above program?
Solution
Consider the following table “newtable” in SQLite database.

Solution
Consider the following Python snippet.

Solution
Consider the HTML code given below.

To obtain the output as given in figure above, which of the following snippets of CSS code must be used?
To obtain the output as given in figure above, which of the following snippets of CSS code must be used?
Solution
Comprehension Passage
Consider the following model classes “State” and “City” corresponding to tables “state” and “city”
respectively in the SQLite database.

Based on the above data, answer the given subquestions.
respectively in the SQLite database.
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Consider the following model classes “State” and “City” corresponding to tables “state” and “city”
respectively in the SQLite database.

Based on the above data, answer the given subquestions.
respectively in the SQLite database.
Based on the above data, answer the given subquestions.
If “s1” and “c1” are existing objects in the tables “state” and “city” respectively where:

Which of the following statements is/are correct?
Which of the following statements is/are correct?
Solution
Comprehension Passage
Consider the following resource API for the employee information given below and answer the given subquestions.

Solution
Comprehension Passage
Consider the following resource API for the employee information given below and answer the given subquestions.

Solution
Shape
Thickness [ / ]
3
All colors