Quiz Space

Modern Application Development I · Quiz 2 · 6 Aug 2023 · May 2023 term

Question 6: Consider the following HTML Document file given below. in…

Question 6

+3 marksOne correct option

Consider the following HTML Document file given below.

index.html

html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
<style>
input:invalid {
background: red;
}
input:valid {
background: green;
}
</style>
</head>
<body>
<form>
<label for="uname">Enter a valid e-mail:</label>
<input type="text" name="uname" minlength="8">
</form>
</body>
</html>

Suppose the index.html is rendered on the browser. What will be the background color of the input box when the user enters the name “madcourse.mail.com”?

  1. A

    red

  2. B

    white

  3. C

    green

  4. D

    insufficient information

Show answer

Correct answer

  • C

    green

Question 6 of 16 in the IIT Madras BS Modern Application Development I (MAD 1) Quiz 2 paper sat on 6 Aug 2023, in the May 2023 term (IIT M FOUNDATION AN2 EXAM QPF2 06 Aug 2023). It carries 3 marks.

More questions from this paper

  1. Q1Consider the following flask application and select the correct option if the application is running locally on http://…
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Consider the following view function. If this flask app is running locally on <u>http://127.0.0.1:5000</u>, which of th…
  5. Q5What will be the output of the following Python code snippet on the terminal?
  6. Q7Consider the following Python code snippet. If this application is running locally on http://127.0.0.1:5000, which of t…
  7. Q8Consider the following code. If the flask application is running on <u>http://127.0.0.1:5000</u>, what will browser ren…
  8. Q9In the code snippet given below, what should come in place of code 1 and code 2 such that one parent can have multiple …
  9. Q10Consider the following models Brand and Cellphone corresponding to tables brand and cellphone in SQLite database. Based…
  10. Q11Consider the schema for the Class Student. What will be the output of the flask_sqlalchemy command given below?
  11. Q12Consider the following route in the flask for a signup page and select the correct option.
  12. Q13Consider the following flask app. Given that test_request_context() allows text to be printed on the terminal, which of…
  13. Q14Which of the following is/are valid JSON format.
  14. Q15Consider the following flask application. If this flask app is running locally on http://localhost:5000, then which of …
  15. Q16Consider the following flask application. If this flask app is running locally on <u>http://localhost:5000</u>, what is…