CS202 FINAL TERM SOLVE PAPER


1: write three different atribute of JSON from XML. 


JSON: In JSON, attribute names are represented as strings enclosed in double quotes

JSON: JSON supports various data types, including strings, numbers, booleans, arrays, objects, and null.

JSON: Arrays are represented using square brackets and can contain elements of different types.


2: write backround image 

background-image: url('background.jpg');


3: JQuery three method for css manipulation.


.css() Method

.addClass() Method

.animate() Method


4: html 5 and html 4 necessary for proper web page. 

HTML5 is necessary for modern web pages, offering advanced features 

and better compatibility. While HTML4 can still render basic content,

using HTML5 is recommended for optimal functionality and adherence to

current web standards. Transitioning from HTML4 to HTML5 is advised for 

improved development capabilities.


5: wraper class

A "wrapper" class in web development typically refers to a CSS class 

used to define a container or wrapping element that encompasses other 

content. It is commonly used for styling and layout purposes, providing 

a way to group and apply styles to a specific section of a webpage.


6:Three Useful method of jQuery for traversing up DOM tree

.parent() Method

.parents() Method

.closest() Method



7: RWD(responsive web design) or grid view

Responsive Web Design (RWD) is crucial for adapting layouts to different 

devices, ensuring optimal user experiences. Grid View is often integrated

within RWD strategies, providing a structured framework for organizing content 

and maintaining visual consistency across various screen sizes. 

Both concepts work together to create modern and adaptive web designs.



8: What is meant by <!DOCTYPE html>

<!DOCTYPE html> is a declaration that specifies the document 

type and version of HTML being used in a web page. It is placed 

at the very beginning of an HTML document, before the <html> tag. 

This declaration helps browsers render the page correctly by indicating 

the version of HTML and the rules that should be followed.


9: Write code to generate RWD Which have two column

<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <style>

    body {

      font-family: Arial, sans-serif;

      margin: 0;

      padding: 0;

      box-sizing: border-box;

    }


    .container {

      width: 100%;

      max-width: 1200px;

      margin: 0 auto;

      padding: 20px;

    }


    .row {

      display: flex;

      flex-wrap: wrap;

      justify-content: space-between;

    }


    .column {

      width: 100%;

      padding: 10px;

      box-sizing: border-box;

    }


    @media (min-width: 768px) {

      .column {

        width: 48%; /* Two columns on larger screens */

      }

    }

  </style>

  <title>Responsive Two Column Layout</title>

</head>

<body>


  <div class="container">

    <div class="row">

      <div class="column">

        <h2>Column 1</h2>

        <p>This is the content of column 1.</p>

      </div>

      <div class="column">

        <h2>Column 2</h2>

        <p>This is the content of column 2.</p>

      </div>

    </div>

  </div>


</body>

</html>



10: Types of gradients in css3

Linear Gradients:

Radial Gradients:

Conic Gradients:

Repeating Gradients:



11: JQuery methods to manipulate css

.css()

.addClass()

.removeClass()

.toggleClass()



12: Problems of using attributes in XML

1. **Limited Semantics**

2. **Reduced Readability**

3. **Complexity in Querying**

4. **Difficulty in Validation**

5. **Inability to Represent Hierarchy**


13: Difference b/w SVG and carnavs

14: 5 methods of jQuery to traverse siblings in DOM tre