MAD Study Hub

Home / MAD1 / Week 11 / Real questions

MAD1 week 11 - real exam questions

42 questions pulled from past papers whose wording matches this week's topics, newest first, duplicates removed. Pick your answers, then press Check answers. Figures and answer keys are the originals.

Elapsed 00:00
MAD1 Quiz 2 · 16 Aug 2026 · open the full paper
Practice 1MCQ2 marks
What does the following curl command do?
Text of the picture (copyable)
```
curl -X PUT -d "status=active&role=admin" https://api/users/update
```
  1. Sends a PUT request to update data using form format.
  2. Sends a PUT request using JSON encoding.
  3. Sends a GET request to retrieve user information.
  4. Sends a DELETE request to remove user data.
MAD1 Quiz 1 · 15 Mar 2026 · open the full paper
Practice 2MCQ3 marks
Consider the following code: app.py question figure You are running a Flask web application locally using the command: python app.py. On which URL will the application be accessible in the browser?
Text of the picture (copyable)
```python
from flask import Flask
app = Flask(__name__)

@app.route("/")
def port():
    return "This is the same port question. Yet again, for a reason."

if __name__ == "__main__":
    app.run(port=0007)
```
  1. https://127.0.0.1:5000/
  2. http://localhost:0007/
  3. http://0.0.0.0:0007/
  4. None of these
MAD1 Quiz 1 · 15 Mar 2026 · open the full paper
Practice 3MSQ2 marksselect all that apply
Which of the following statements about HTML, CSS, and character encoding is/are true?
  1. UTF-8 is a variable-length encoding that can represent all Unicode characters.
  2. In HTML, attribute names are case-insensitive.
  3. Inline CSS is preferred over external CSS for large-scale projects.
  4. UTF-32 is a fixed-length encoding where each character takes 4 bytes.
MAD1 End Term · 21 Dec 2025 · open the full paper
Practice 4MCQ2 marks
question figure
Text of the picture (copyable)
Consider the following HTML5 form:

```html
<form method="POST" action="/submit">
    <input type="email" name="email" required>
    <input type="password" name="password" required minlength="8">
    <input type="number" name="age" min="18" max="65" required>
    <button type="submit">Submit</button>
</form>
```

Which of the following attributes are HTML5 native validation features that work without JavaScript?
  1. required, minlength, and type="email"
  2. min, max, and minlength
  3. required, type="password", and action
  4. type="email", min, max, minlength, and required
MAD1 End Term · 21 Dec 2025 · open the full paper
Practice 5MSQ3 marksselect all that apply
Which statements about frontend and backend validation are TRUE?
  1. Frontend validation (HTML5/JavaScript) is sufficient for security
  2. Frontend validation improves user experience by providing immediate feedback
  3. Backend validation is mandatory for security because frontend can be bypassed
  4. Backend validation should validate the same constraints as frontend
MAD1 Quiz 1 · 26 Oct 2025 · open the full paper
Practice 6MCQ2 marks
question figure
Text of the picture (copyable)
Consider the following code:
app.py

```python
from flask import Flask
app = Flask(__name__)

@app.route("/")
def port():
    return "This is the port question."

if __name__ == "__main__":
    app.run(port=5008)
```

You are running a Flask web application locally using the command: python app.py. On which URL will the application be accessible on the browser?
  1. question figure
    text
    http://127.0.0.1:5000/
  2. question figure
    text
    http://localhost:0000/
  3. question figure
    text
    http://0.0.0.0:5000/
  4. question figure
    text
    http://localhost:5008/
MAD1 Quiz 1 · 26 Oct 2025 · open the full paper
Practice 7MSQ2 marksselect all that apply
question figure
Text of the picture (copyable)
Consider the following HTML snippet:

```html
<img src="logo.png" alt="Company Logo" />
```

Which of the following is true?
  1. question figure
    text
    If logo.png fails to load, the text "Company Logo" will be shown.
  2. question figure
    text
    If the image file is missing, browsers display it as a broken image.
  3. question figure
    text
    The alt attribute is mandatory in HTML5.
  4. question figure
    text
    Logo.png fails to load because the `<img>` tag only allows "jpeg/jpg" files.
MAD1 Quiz 2 · 03 Aug 2025 · open the full paper
Practice 8SA3 marks
question figure
Text of the picture (copyable)
Consider a document of 2000 characters written using only the characters from the character set L1 = {'x', 'y', 'z', 'w', 'v', 'u', 't', 's'}. If the character set L1 is to be upgraded by adding all the characters from the set L2 = {'1', '2', '3', '4', '5'}, by how many bits will the size of the original document increase?(assume an optimal number of bits are used for representing each character).
MAD1 End Term · 13 Apr 2025 · open the full paper
Practice 9MCQ3 marks
question figure
Text of the picture (copyable)
Consider the following example:

```html
<form>
    <label for="search-input">Search for a word:</label>
    <input
        type="text"
        id="search-input"
        placeholder="Type a word to search"
        aria-describedby="search-help"
        required
    />
    <small id="search-help">Enter a word to find relevant results.</small>
    <button type="submit">Start Search</button>
</form>
```

Which of the following accessibility principles is followed in this example?
  1. Perceivable
  2. Operable
  3. Understandable
  4. Robust
MAD1 End Term · 13 Apr 2025 · open the full paper
Practice 10MCQ3 marks
question figure
Text of the picture (copyable)
Consider the following HTML code below.

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <style>
        body{text-align: center;}
        p{font-size: 30px;color: black;}
        .blue{color: red;}
        .red{color: green !important;}
        .green{color: blue;}
        #myId{color: grey;}
    </style>
</head>
<body>
    <div>
        <p class="blue">Text1</p>
        <p class="red" id="myId">Text2</p>
        <p class="green" id="myId">Text3</p>
        <p class="green">Text4</p>
    </div>
</body>
</html>
```

How will the browser render the above HTML file?
Match the rendered color for the text.

| 1. Text1 | a. green |
|---|---|
| 2. Text2 | b. blue |
| 3. Text3 | c. red |
| 4. Text4 | d. grey |
  1. 1- b, 2 - a, 3- d, 4 - c
  2. 1- c, 2 - d, 3- d, 4 - b
  3. 1- c, 2 - a, 3- d, 4 - b
  4. 1- a, 2 - c, 3- b, 4 - d
MAD1 End Term · 13 Apr 2025 · open the full paper
Practice 11MCQ3 marks
question figure
Text of the picture (copyable)
Let L = { 'a', 'b', 'c', 'd', 'A', 'B', 'C', 'D', '^', '*', '#', '!', '$' } be a complete character set (i.e., only these characters can be used to represent text in the document). If a document that uses fixed encoding with optimal number of bits for all characters is created using the character set L and has a disk size of 3 Kilobytes, the number of characters in the documents would be _____. [Take 1 Byte = 8 bits, 1 KB = 1000 Bytes, 1 MB = 1000 Kilobytes and so on.]
  1. 3000
  2. 6000
  3. 9000
  4. 12000
MAD1 End Term · 13 Apr 2025 · open the full paper
Practice 12MCQ4.5 marks
question figure
Text of the picture (copyable)
Consider a flask app "app.py" and a template file "doc.html" given below:

Python file: app.py

```python
from flask import Flask, render_template

app = Flask(__name__)

itemlist = [
    {'value': '0', 'content': 'zero'},
    {'value': '1', 'content': 'one'},
    {'value': '2', 'content': 'two'},
    {'value': '3', 'content': 'three'},
]

@app.route('/')
def func():
    return render_template('doc.html', itemlist = itemlist)

app.run()
```

Template file: doc.html

```html
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"></head>
<body>
    {% macro render_field(value='field value', content='content value') %}
        <option value="{{value}}">{{content}}</option>
    {% endmacro %}

    {% for item in itemlist %}
        {{ render_field(item.content) }}
    {% endfor %}
</body>
</html>
```

If the application is running locally on http://127.0.0.1:5000. What will be the raw HTML body of the file rendered by the flask app for base url?
  1. question figure
    text
    ```html
    <body>
    
        <option value="field value">zero</option>
        <option value="field value">one</option>
        <option value="field value">two</option>
        <option value="field value">three</option>
    
    </body>
    ```
  2. question figure
    text
    ```html
    <body>
        <option value="zero">content value</option>
        <option value="one">content value</option>
        <option value="two">content value</option>
        <option value="three">content value</option>
    </body>
    ```
  3. question figure
    text
    ```html
    <body>
        <option value="0">zero</option>
        <option value="1">one</option>
        <option value="2">two</option>
        <option value="3">three</option>
    </body>
    ```
  4. question figure
    text
    ```html
    <body>
    
        <option value="zero">0</option>
        <option value="one">1</option>
        <option value="two">2</option>
        <option value="three">3</option>
    
    </body>
    ```
MAD1 End Term · 13 Apr 2025 · open the full paper
Practice 13MCQ2 marks
A certain text document consisting of only alphanumeric characters (including spaces) takes 320000 bits, when encoded with UCS-2 encoding. How many bits will the same document take if encoded with ASCII 7-bit encoding?
  1. 20000 bits
  2. 1,40,000 bits
  3. 22,40,000 bits
  4. 320000 bits
MAD1 End Term · 13 Apr 2025 · open the full paper
Practice 14MCQ3 marks
Consider the following statements and choose the correct option Statement 1: It is always mandatory to implement server-side validations and client-side validations to create web applications. Statement 2: Server-side validations can be implemented using HTML5.
  1. Statement 1 is false, while statement 2 is true
  2. Statement 1 is true, while statement 2 is false
  3. Both statements are false
  4. Both statements are true
MAD1 End Term · 13 Apr 2025 · open the full paper
Practice 15MCQ3 marks
Consider the following example: question figure Consider the following example:
Text of the picture (copyable)
```html
<form>
    <label for="search-input">Search for a word:</label>
    <input
        type="text"
        id="search-input"
        placeholder="Type a word to search"
        aria-describedby="search-help"
        required
    />
    <small id="search-help">Enter a word to find relevant results.</small>
    <button type="submit">Start Search</button>
</form>
```
Which of the following accessibility principles is followed in this example?
  1. Perceivable
  2. Operable
  3. Robust
  4. Understandable
MAD1 End Term · 22 Dec 2024 · open the full paper
Practice 16MCQ3 marks
Consider the following HTML document. question figure Consider the following HTML document.
Text of the picture (copyable)
```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function makeBold(){
            //MISSING JS CODE
        }
    </script>
</head>
<body>
    Enter your name : <input type="text" id="txt1" name="txt1">
    <br>
    <input type="button" onclick="makeBold();" value="Click Me">
</body>
</html>
```
Replace the **MISSING JS CODE** part with the correct JS code that will change the text box content to bold?
  1. question figure
    text
    ```javascript
    t=document.getElementsByName("txt1").value;
    t.style.fontWeight="bold";
    ```
  2. question figure
    text
    ```javascript
    t=document.getElementById("txt1").value;
    t.style.fontWeight="bold";
    ```
  3. question figure
    text
    ```javascript
    t=document.getElementById("txt1");
    t.style.fontWeight="bold";
    ```
  4. question figure
    text
    ```javascript
    t=document.getElementById("txt1");
    t.style.fontWeight="bold";
    ```
MAD1 End Term · 22 Dec 2024 · open the full paper
Practice 17MSQ2 marksselect all that apply
Consider the following HTML document. question figure Consider the following HTML document. Which of the following statements is/are correct about the above code snippet?
Text of the picture (copyable)
```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>IITM</title>
</head>
<body>
    <h2>Welcome to IITM </h2>
    <h3>Online Degree</h3>
    Courses offered
    <ol>
        <li>Foundation</li>
        <ul>
            <li>CT</li>
            <li>Python</li>
            <li>Maths-I</li>
        </ul>
        <li>Diploma</li>
        <ul>
            <li>PDSA</li>
            <li>MAD-I</li>
            <li>MAD-II</li>
        </ul>
    </ol>
</body>
</html>
```
  1. List Items, Foundations and Diploma are numbered 1 and 2
  2. List Items, Foundations and Diploma are bulleted
  3. List Items, PDSA, MAD-I and MAD-II are numbered 1, 2 and 3
  4. List Items, PDSA, MAD-I and MAD-II are bulleted
MAD1 Quiz 2 · 01 Dec 2024 · open the full paper
Practice 18MSQ3 marksselect all that apply
Consider the following HTML document “form.html” and the flask route given in “app.py”. Assume all the required methods are imported, Which of the following statements is/are correct. question figure Consider the following HTML document “form.html” and the flask route given in “app.py”. Assume all the required methods are imported, Which of the following statements is/are correct.
Text of the picture (copyable)
Filename: form.html

```html
<!DOCTYPE html>
<html>
<head>
    <style>
        input:valid {border: 2px solid red;}
    </style>
</head>
<body>
    <form action="/submit_form" method="post">
        <label for="e-mail">Please enter your email address</label>
        <input id="e-mail" name="e-mail" required/>
        <button>Submit</button>
    </form>
</body>
</html>
```

Filename: app.py

```python
@app.route('/submit_form', methods = ['GET', 'POST'])
def form_on_submit():
    if request.method == 'POST':
        email = request.form.get('e-mail')
        if "@" in email:
            return "Form is validated"
    return render_template('form.html')
```
  1. The above HTML document has frontend validation incorporated, usingHTML5 form validation.
  2. The above HTML document has only backend validation incorporated.
  3. The above HTML document has both frontend and backend validationincorporated.
  4. If the e-mail input field is left blank, the border colour of the input field will bered.
MAD1 Quiz 2 · 01 Dec 2024 · open the full paper
Practice 19MCQ3 marks
Consider a character set Q, which consists of only those characters used in the sentence, "the five boxing wizards jump quickly" If this sentence is to be saved in a document with minimum encoding, what will be the size of the document given that no other information or context is to be saved?
  1. 175 bits
  2. 180 bits
  3. 252 bits
  4. 256 bits
MAD1 End Term · 01 Sep 2024 · open the full paper
Practice 20MCQ2 marks
A certain text document consisting of only alphanumeric characters (including spaces) takes 1,52,000 bits, when encoded with UCS-4 (32 bit) encoding. How many bits will the same document take if encoded with ASCII 7-bit encoding?
  1. 24000 bits
  2. 68000 bits
  3. 33250 bits
  4. 152000 bits
MAD1 End Term · 01 Sep 2024 · open the full paper
Practice 21MCQ2 marks
The ability of an application to work with different input modalities beyond keyboard highlights which of the following accessibility principle?
  1. Perceivable
  2. Robust
  3. Understandable
  4. Operable
MAD1 Quiz 2 · 04 Aug 2024 · open the full paper
Practice 22MSQ4.5 marksselect all that apply
Consider the following HTML Document and select the correct statement(s) from the following if a user types the password “mad1password” in the password field letter by letter. question figure Consider the following HTML Document and select the correct statement(s) from the following if a user types the password “mad1password” in the password field letter by letter.
Text of the picture (copyable)
```html
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Login Form</title>
    <style>
        input[type="password"]:valid{
            background-color: green;
        }
        input[type="password"]:invalid{
            background-color: red;
        }
    </style>
</head>
<body>
    <div class="login-form">
        <h2>Login</h2>
        <form>
            E-mail: <input type="email" id="email" name="email" required>
            Password: <input type="password" id="password" name="password"
            required minlength="5" maxlength="8">
            <input type="submit" value="Login">
        </form>
    </div>
</body>
</html>
```
  1. The HTML form is integrated with backend validation.
  2. The HTML form is integrated with Frontend HTML5 validation.
  3. The background colour of the password field remains red for the first 4 letters,then turns green for the next 4 letters, and then again turns red for the remaining letters.
  4. The background colour of the password field remains red for the first 4 letters,then turns green for the next 4 letters, and then remains green for the remaining allowable letters.
MAD1 Quiz 1 · 07 Jul 2024 · open the full paper
Practice 23MCQ2 marks
Which of the following is not a correct perceivable accessibility principle?
  1. Provide text alternatives for non-text content.
  2. Provide captions and other alternatives for multimedia.
  3. Make it easier for users to see and hear content.
  4. Give users enough time to read and use content.
MAD1 Quiz 1 · 07 Jul 2024 · open the full paper
Practice 24MCQ3 marks
question figure
Text of the picture (copyable)
Consider a document of 1000 characters written using only the characters of the character set L1 = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'}. If the character set L1 is to be upgraded by adding all the characters of character set L2 = {'0', '1', '2', '3', '4', '5', '6'} in it, By how many bits will the size of the original document increase?
  1. 0 bits
  2. 1000 bits
  3. 4000 bits
  4. 5000 bits
MAD1 End Term · 28 Apr 2024 · open the full paper
Practice 25MSQ3 marksselect all that apply
Which of the statements are true?
  1. HTML5 is based on SGML
  2. XHTML is based on XML which in turn is based on SGML
  3. HTML5 is not backwards compatible with older versions of HTML
  4. XML is both human and machine readable
MAD1 Quiz 2 · 24 Mar 2024 · open the full paper
Practice 26MCQ3 marks
Consider a character set M, which consists of only those characters used in the statement, "sphinx of black quartz judge my vow" If this statement is to be saved in a document with minimum encoding, what will be the size of the document given that no other information or context is to be saved?
  1. 145 bits
  2. 245 bits
  3. 175 bits
  4. 256 bits
MAD1 Quiz 1 · 25 Feb 2024 · open the full paper
Practice 27MCQ2 marks
question figure
Text of the picture (copyable)
Consider the following example.
```html
<img src="example.jpg" alt="Gajendra Circle, IITM Campus">
```
Which of the following accessibility principle is followed in this example?
  1. Perceivable
  2. Operable
  3. Understandable
  4. Robust
MAD1 End Term · 24 Dec 2023 · open the full paper
Practice 28MCQ2 marks
Which of the following is not a web component?
  1. Custom Elements
  2. Shadow DOM
  3. HTML Templates
  4. Web Assembly
MAD1 End Term · 24 Dec 2023 · open the full paper
Practice 29MCQ2 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
Which part of the response indicates the MIME type of the response body?
  1. charset=utf-8
  2. server: gunicorn/19.9.0
  3. content-type: text/html;
  4. None of these
MAD1 End Term · 24 Dec 2023 · open the full paper
Practice 30MCQ2 marks
Which of the following helps us to create custom HTML elements?
  1. SVG
  2. Web Components
  3. Web API
  4. None of these
MAD1 Quiz 1 · 29 Oct 2023 · open the full paper
Practice 31MCQ3 marks
Consider a character set L, which consists of only those characters which are used in the statement, “pack my box with five dozen liquor jugs”. If this statement is to be saved in a document with minimum encoding, what will be the size of the document given that no other information or context is to be saved?
  1. 160 bits
  2. 320 bits
  3. 195 bits
  4. 390 bits
MAD1 End Term · 03 Sep 2023 · open the full paper
Practice 32MCQ2 marks
Consider the following statements and select the correct option. Statement 1: It is not necessary to implement server-side validation if client-side validation has been implemented. Statement 2: Client-side validation can be implemented with HTML5.
  1. Statement 1 is true while statement 2 is false
  2. Statement 2 is true while statement 1 is false
  3. Both statements are true
  4. Both statements are false
MAD1 Quiz 1 · 16 Jul 2023 · open the full paper
Practice 33MCQ3 marks
question figure
Text of the picture (copyable)
Let L = { 'a', 'b', 'c', 'd', 'A', 'B', 'C', 'D', '0', '1', ' ', ' '} be a complete character set (i.e., only these characters can be used to represent text in the document). If a document that uses fixed encoding for all characters is created using the character set L and has a disk size of 2 Kilobytes, the number of characters in the documents would be ______. [Take 1 Byte = 8 bits, 1 KB = 1000 Bytes, 1 MB = 1000 Kilobytes and so on.]
  1. 2000
  2. 4000
  3. 8000
  4. 16000
MAD1 Quiz 1 · 16 Jul 2023 · open the full paper
Practice 34MCQ3 marks
Consider the following HTML document. question figure Consider the following HTML document.
Text of the picture (copyable)
```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        p {
            background-color: yellow;
            color: red;
            display: inline-block;
        }
        #id {
            border: 2px solid purple;
            color:blue ;
        }
        .class {
            background-color: aqua;
            color: red;
        }
    </style>
</head>
<body>
    <p class="class" id="id">HTML</p>
    <p class="class" >HTML</p>
    <p>HTML</p>
</body>
</html>
```
How will the browser render above HTML file?
  1. question figure
    text
    The image displays three rectangular boxes stacked vertically, each containing the text "HTML".
    
    1.  **Top box:** Cyan background, blue text, purple border.
    2.  **Middle box:** Cyan background, red text, no visible border.
    3.  **Bottom box:** Yellow background, red text, no visible border.
  2. question figure
    text
    The image displays three rectangular boxes, each containing the text "HTML".
    
    1.  **Left Box:** A light blue rectangle with the text "HTML" in red. The text appears slightly blurred.
    2.  **Middle Box:** A light blue rectangle with a purple border. The text "HTML" is in blue.
    3.  **Right Box:** A yellow rectangle with the text "HTML" in red, with a gradient effect making it appear orange/yellow in some parts. The text also appears slightly blurred.
  3. question figure
    text
    The image displays three rectangular blocks, each containing the text "HTML".
    
    1.  **Left Block:** A cyan rectangle with a purple border. The text "HTML" is in blue.
    2.  **Middle Block:** A cyan rectangle with no border. The text "HTML" is in red.
    3.  **Right Block:** A yellow rectangle with no border. The text "HTML" is in red.
  4. question figure
    text
    The image displays three rectangular blocks, each containing the text "HTML".
    
    1.  **Left block:** A cyan-colored rectangle with the text "HTML" in red. The text has a slight shadow effect.
    2.  **Middle block:** A yellow-colored rectangle with the text "HTML" in red. The text also has a slight shadow effect.
    3.  **Right block:** A cyan-colored rectangle with a purple border. The text "HTML" is in blue and has a slight shadow effect.
MAD1 End Term · 30 Apr 2023 · open the full paper
Practice 35MCQ2 marks
Consider the following statements about HTML4 and HTML5 and select the correct option. Statement 1: The HTML gets separated out from SGML from its fourth version, HTML4. Statement 2: HTML5 has additional support for latest features like multimedia support, canvases etc. and it has its own parsing rules.
  1. Both statements 1 and 2 are correct.
  2. Both statements 1 and 2 are incorrect.
  3. Statement 1 is correct but statement 2 is incorrect.
  4. Statement 2 is correct but statement 1 is incorrect.
MAD1 End Term · 30 Apr 2023 · open the full paper
Practice 36MCQ2 marks
Read the following statements regarding web accessibility principles and choose the correct option. Statement 1: Understandable information and users interface helps developers to avoid and correct mistakes in their content. Statement 2: Perceivable information ensures that the content does not cause any seizures and physical reaction to its users.
  1. Both statement 1 and statement 2 are correct.
  2. Both statement 1 and statement 2 are incorrect
  3. Statement 1 is correct but statement 2 is incorrect
  4. Statement 1 is incorrect but statement 2 is correct
MAD1 End Term · 30 Apr 2023 · open the full paper
Practice 37MCQ2 marks
question figure
Text of the picture (copyable)
Match the first column with the second.

| 1 | HTTPS | A | must be sent with each request |
|---|---|---|---|
| 2 | Cookies | B | base64 encoding |
| 3 | Digest Authentication | C | encrypted channel |
| 4 | HTTP Basic Authentication | D | hash function |
  1. 1-C, 2-D, 3-A, 4-B
  2. 1-C, 2-A, 3-D, 4-B
  3. 1-B, 2-A, 3-D, 4-C
  4. 1-A, 2-D, 3-B, 4-C
MAD1 End Term · 30 Apr 2023 · open the full paper
Practice 38MCQ3 marks
question figure
Text of the picture (copyable)
Read the following statements regarding web accessibility principles and choose the correct option.

**Statement 1:** The command `git merge <branch_name>` merges all the change done to currently active branch.

**Statement 2:** The command `git merge <branch_name>` merges all the change done to master branch.
  1. Both statement 1 and statement 2 are correct
  2. Both statement 1 and statement 2 are incorrect
  3. Statement 1 is correct but statement 2 is incorrect
  4. Statement 1 is incorrect but statement 2 is correct
MAD1 Quiz 1 · 16 Oct 2022 · open the full paper
Practice 39MCQ2 marks
question figure
Text of the picture (copyable)
A certain text document consisting of only alphanumeric characters (including
spaces) takes 1,36,000 bits, when encoded with UCS-4 (32 bit) encoding. How many
bits will the same document take if encoded with ASCII 7 bit encoding?
(Concept: Encoding efficiency)
  1. question figure
    text
    34000 bits
  2. question figure
    text
    68000 bits
  3. question figure
    text
    29750 bits
  4. question figure
    text
    136000 bits
MAD1 Quiz 1 · 16 Oct 2022 · open the full paper
Practice 40MCQ3 marks
question figure
Text of the picture (copyable)
Consider the following HTML code below.

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<style>
body{text-align: center;}
p{font-size: 30px;font-style: italic;color: black;}
.blue{color: green;}
.red{color: blue;}
.green{color: red;}
#myId{color: grey;}
</style>
</head>
<body>

<div>
<h2 class="red">Happy Coding</h2>
<p class="blue">1st class</p>
<p class="red" id="myId">2nd class</p>
<p class="green">3rd class </p>
</div>
</body>
</html>
```

How will the browser render the above HTML file?
Match the rendered colour for the text.

| | | |
|---|---|---|
| 1. | Happy Coding | a. green |
| 2. | 1st Class | b. blue |
| 3. | 2nd Class | c. red |
| 4. | 3rd Class | d. grey |
  1. question figure
    text
    1- b, 2 - a, 3- d, 4 - c
  2. question figure
    text
    1 - a, 2 - c, 3 - d, 4 - b
  3. question figure
    text
    1- b, 2 - a, 3- c, 4 - d
  4. question figure
    text
    1- a, 2 - c, 3- b, 4 - d
MAD1 Quiz 1 · 16 Oct 2022 · open the full paper
Practice 41MSQ2 marksselect all that apply
question figure
Text of the picture (copyable)
Which of the following statement(s) is/are true regarding HTML and encodings?
Concepts Covered: Encoding Standards, HTML & CSS
  1. question figure
    text
    Both UTF-8 and UTF-32 are variable length encodings.
  2. question figure
    text
    The UTF-8 can only be used for encoding (2^16 + 1) characters.
  3. question figure
    text
    The HTML tags are case-insensitive.
  4. question figure
    text
    The External CSS is preferred over internal and inline CSS for developing large websites.
MAD1 Quiz 1 · 16 Oct 2022 · open the full paper
Practice 42MCQ2 marks
question figure
Text of the picture (copyable)
A certain text document consisting of only alphanumeric characters (including spaces) takes 35,552 bits, when encoded with UCS-4 (32 bit) encoding. How many bits will the same document take if encoded with ASCII 7 bit encoding?
(Concept: Encoding efficiency)
  1. question figure
    text
    6666 bits
  2. question figure
    text
    7777 bits
  3. question figure
    text
    8888 bits
  4. question figure
    text
    17,776 bits