Modern Application Development I, End Term
Consider the following HTML document with script which is running at the URL
http://127.0.0.1:8000, then choose the correct output of the JSON object.
<!DOCTYPE html><html> <body>
<h2>Creating a JSON String</h2>
<p id="demo"></p>
<script> const txt = '{"name":"Balu", "age":30, "city":"New Delhi"}' const obj = JSON.parse(txt); document.getElementById("demo").innerHTML = "Hi\n" + obj.name +",\t" + obj.city + "," + obj.age*2; </script>
</body></html>Consider the following HTML document with script which is running at the URL\ http://127.0.0.1:8000, then choose the correct output of the JSON object. <!DOCTYPE html> <html> <body> <h2>Creating a JSON String</h2> <p id="demo"></p> <script> const txt = '{"name":"Balu", "age":30, "city":"New Delhi"}' const obj = JSON.parse(txt); document.getElementById("demo").innerHTML = "Hi\n" + obj.name + ",\t" + obj.city + "," + obj.age*2; </script> </body> </html> If the given python program is executed using pytest, then identify the status of the test code. File name: test1.py def dec(x): return x-1 def test_answer(): assert dec(3) == 2 Which of the following lines can be used in a template to inherit another **base.html** template that provides a basic, uniform layout?