0% found this document useful (0 votes)
27 views2 pages

Question Paper Answers PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

Question Paper Answers PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

## Answers for Question 1

### Q1. (a) Explain Virtual DOM in ReactJS.


The Virtual DOM is a lightweight JavaScript representation of the real DOM. React
uses it to optimize DOM updates by:
- Maintaining a virtual copy of the real DOM.
- Comparing the current virtual DOM with the previous version using a process
called "diffing."
- Updating only the changed parts in the real DOM, improving performance.

### Q1. (b) What is a container tag in HTML?


A container tag is an HTML tag that has both opening (``) and closing (``) elements
and can contain other content or nested tags.

**Examples:**
-`
...
`
-`

...

### Q1. (c) List CSS properties related to color and background.
- **Color properties:** `color`, `opacity`.
- **Background properties:** `background-color`, `background-image`,
`background-size`, `background-position`, `background-repeat`.

### Q1. (d) What is a scripting language? List its types.


A scripting language is a programming language designed for integrating and
communicating with other programming languages or systems.

**Types:**
- **Client-side scripting:** JavaScript, VBScript.
- **Server-side scripting:** PHP, Python, Ruby.

### Q1. (e) Which are the advantages of React Hooks?


React Hooks offer the following advantages:
- Simplify the use of state and lifecycle features in functional components.
- Reduce code complexity by removing the need for class components.
- Improve code readability and reuse with custom hooks.
- Eliminate the use of the `this` keyword.

### Q1. (f) List features of AJAX.


- Asynchronous communication between client and server.
- Partial page updates without full reloads.
- Improved user experience with faster responses.
- Cross-browser support using libraries like jQuery.

### Q1. (g) What do you mean by frontend technologies? Give examples.
Frontend technologies are tools and frameworks used for developing the client-side
of web applications, where users interact.

**Examples:**
- HTML, CSS, JavaScript.
- Frameworks: React, Angular, Vue.js.
### Q1. (h) What is jQuery selector?
A jQuery selector is used to select and manipulate HTML elements based on their
tags, classes, IDs, or attributes.

**Examples:**
- `$("p")`: Selects all `

` elements.
- `$(".class")`: Selects elements with the class `class`.

Let me know if you need answers for any other questions!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy