Quiz Space

Modern Application Development I · End Term · 3 Apr 2022 · January 2022 term

Question 13: Consider the following HTML and external CSS code. File …

Question 13

+3 marksOne correct option

Consider the following HTML and external CSS code.

File name: style.css

css
body{background-color: lavender; text-align: center;}
h2{font-style: normal; font-size: 30px; color: #f08080;}
p{font-size: 20px;}
.blue{color: green;}
.red{color: blue;}
.green{color: red;}

File name: index.html

html
<!DOCTYPE html>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h2>Welcome to IIT</h2>
<p class="blue">I am blue color </p>
<p class="red">I am red color </p>
<p class="green">I am green color </p>
</body>
</html>

How the heading and paragraph are printed in the output?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 13 of 32 in the IIT Madras BS Modern Application Development I (MAD 1) End Term paper sat on 3 Apr 2022, in the January 2022 term (IIT M FOUNDATION DIPLOMA ENDTERM FN1 3 Apr 2022). It carries 3 marks.

More questions from this paper

  1. Q1The hexadecimal representation of the number 3218 is _ .
  2. Q2Let L = {‘c’, ‘e’, ‘i’, ‘m’, ‘o’, ‘t’} be a complete character set (i.e., only these symbols need to be represented in …
  3. Q3Consider the HTML code below. What will be the color applied to the text in the paragraph tag?
  4. Q4Consider the following services provided by platform-as-a-service approach.\ A Power supply, network and hardware manag…
  5. Q5Identify the system that provides centralized control over distributed patches and provides a friendly interface for Gi…
  6. Q6Consider the code snippet given below. What will be the output of the above code?
  7. Q7Consider the code below. If the above flask application is running on URL “ http://127.0.0.1:5000/”, then which of the …
  8. Q8What will the output of the Python code given below?
  9. Q9Consider the code given below. Which of the following types of code coverage will be satisfied when the above code is r…
  10. Q10Consider the following JavaScript code. File name : index.html File name: script.js What will be the output for the giv…
  11. Q11Consider the following JavaScript code. File name: script.js File name: index.html How will the browser render the abov…
  12. Q12Consider the following table “employee” in SQLite database. What will be the output of the SQL query given below?
  13. Q14Which of the following is the valid Python code to create a login session for a user and delete the session when the us…
  14. Q15Consider the following code\ File name: app.py File name: index.html Suppose the application is running locally on the …
  15. Q16Consider the following JavaScript code. File name: index.html File name: script.js Suppose the script is running locall…
  16. Q17Consider the following Python code snippet.
  17. Q18Match the status codes responded by server on client request.
  18. Q19Consider the code snippet given below. Which of the following is the correct output of the above HTML code?
  19. Q20Consider the files given below. File 1: macros.py File 2: index_macros.html File 3: _macros.html Which of the following…
  20. Q21Suppose a client and the server are 1200 kilometers apart and the client want to access a web application that requires…
  21. Q22Consider the following Python code How will the browser render the HTML document created by the above code?
  22. Q23The sample tables “salesman” and “customer” in SQLite database are given below. Choose the correct SQL query to find ev…
  23. Q24Which of the following queries produces the below multi-column indexing?
  24. Q25What will be the output of code snippet given below.
  25. Q26Consider the below Python code to generate HTML code: Python code: Which of the below HTML code will be generated when …
  26. Q27Consider a flask application given below. File 1: main.py Which of the following statements is/are true, if the above f…
  27. Q28Which of the following statements is/are true about Sessions and Cookies?
  28. Q29Consider the following Python file and a templating file given below: Python file: main.py templates file: my_form.html…
  29. Q30A Python file and two HTML files are given below. File 1: main.py File 2: form.html File 3: index.html Which of the fol…
  30. Q31A certain internet connection is established such that its bandwidth reduces by half of its original value every hour. …
  31. Q32A sorting method employs O(nlog(n)) algorithmic complexity and to sort 100 data items it spends exactly 1 millisecond. …