Question 1
Consider the following snippet of HTML and its output rendered on the browser:
GET
POST
PUT
DELETE
Consider the following snippet of HTML and its output rendered on the browser:
GET
POST
PUT
DELETE
A 6000 rpm magnetic disk is being used to store data. The disk can only spin in one direction and is operating at 6000 revolutions per minute. If the operating system sends a request to the disk controller to fetch data from the disk, but by the time the request reached the disk controller, the information had already moved 35 degrees passed the reader, what will be the latency (in milliseconds) before it can start retrieving data?
0.97
9.03
90.3
97
Consider the following flask resource created using flask_restful.
from flask import Flask, requestfrom flask_restful import Api, Resource, reqparse
app = Flask(__name__)api = Api(app)
parser = reqparse.RequestParser()parser.add_argument("val")
class RestApi(Resource): def post(self, val): arg1 = parser.parse_args() arg2 = request.args return { "value_1": arg1["val"], "value_2": arg2["val"], "value_3": val }
api.add_resource(RestApi, "/api/games/<val>")app.run(debug = True)If the application is running locally on http://127.0.0.1:5000, What will be the output on the terminal for the command:
curl http://127.0.0.1:5000/api/games/cricket?val=soccer -d "{\"val\":\"tennis\"}" -X POST -H "Content-Type: application/json"Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.
The IIT Madras BS Modern Application Development I (MAD 1) End Term paper sat on 3 Sept 2023, in the May 2023 term, set QPD1-S2: 32 questions for 100 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.
| Feature | MAD 1 End Term 3 Sept 2023 Set QPD1-S2 at a glance |
|---|---|
| Term | May 2023 term |
| Subject | Modern Application Development I |
| Course code | BSCS2003 |
| Questions | 32 |
| Marks | 100 |
| Duration | 180 min |
| MCQ | 24 |
| MSQ | 7 |
| Numerical | 1 |
| Official paper | IIT M DIPLOMA ET1 EXAM QPD1 S2 03 Sep |
| Negative marking | No negative marking. |
| Updated |