Modern Application Development I, Quiz 2
A client sends a signal to a satellite 36,000 km above Earth. Speed of electromagnetic waves in vacuum = 3 × 10⁸ m/s. Compute RTT for client ↔ satellite.
A client sends a signal to a satellite 36,000 km above Earth. Speed of electromagnetic waves in vacuum = 3 × 10⁸ m/s. Compute RTT for client ↔ satellite. Consider the following flask app. from flask import Flask app = Flask(__name__) @app.route('/') def home(): return "Home" @app.route('/hello') @app.route('/hi') def greet(): return "Hello World!" @app.route('/hello/<name>') def greet_name(name): return f"Hello {name}" if __name__ == "__main__": app.run() What will be the output if you visit **127.0.0.1:5000/hello** ? Consider the following flask app. from flask import Flask app = Flask(__name__) @app.route('/data') def data_get(): return "GET Data" @app.route('/data/<int:id>') def data_id(id): return f"Data ID: {id}" if __name__ == "__main__": app.run() If a POST request is sent to **127.0.0.1:5000/data/5**, what will be the output on the browser?