Doubtly
@Doubtly · Joined Feb 2021
- Answers
- 3,792
- Questions
- 4,033
- Upvotes received
- 424
- Statistics for Ai&Ds sem 5 notes/study material (Ai&Ds/AiMl) Bhai IMP Topics ka list bhej raha hu photo me hai 2
- What are components in React? Create one class component “Car” in React and invoke it using index.js In React, components are the building blocks that allow you to split the user interface into reusable and independent pieces. Components can... 1
- Write a Javascript to change the background color of the web page to red color if button named “RED” <!DOCTYPE html> <html> <body> <button onclick="red()">red</button> <button onclick="green()">Green</button> <script> function red() { docume... 1
- List of Camparision and difference between Computer Network TCP vs. UDP: TCP UDP 1. Connection-oriented 1. Connectionless 2. Reliable data delivery with acknowledgments 2. Unreliable data delivery 3.... 1
- What is classful addressing? Classful addressing is an IPv4 addressing architecture that divides addresses into five groups. Classes A-C: unicast addresses Class D: mult... 1
- What is Subnetting? What is the use of Subnetting? Advantages of Subnetting What is Subnetting? Subnetting is a method of dividing a single physical network into logical sub-networks (subnets). Subnetting allows a bu... 1
- A pure ALOHA network transmits 200-bit frames on a shared channel of 200 kbps. To elaborate: Frame transmission time Tfr= 200/200 kbps or 1 ms. If the system creates 1000 frames per second, or 1 frame per millisecond, t... 1
- Explain the MVC architecture with a diagram. What are the advantages of using it? MVC stands for Model-View-Controller. It is an architecture or a software design pattern that makes creating huge applications easy. It does... 2
- When are the React components re-rendered? Explain giving examples. 05 import React, { useState } from 'react'; function Counter() { const [count, setCount] = useState(0); const increment = () => { setCount(coun... 2
- B Write a JavaScript code to set a cookie on the user's computer. 05 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title... 1
- A Demonstrate the routing of web pages using React Router. 05 // App.js import React from 'react'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; const Home = () => <h2>Home</h... 1
- What is NodeJs? What are the advantages of using it? Node.js is an open-source, cross-platform runtime environment that allows developers to run JavaScript code outside the browser. It is built... 2
- A Explain the Document Object Model using a diagram. Write a code in JavaScript for any one of the following: The Document Object Model (DOM) is a programming interface for web documents. It represents the structure of a document as a tree of objects... 1
- Write a code making use of React Hooks that displays four buttons namely, “Red”, “Blue”, “Green”, “Yellow”. React Hooks are functions that allow functional components to have state, lifecycle methods, and other React features. They were introduced... 1
- Explain Forms and their types with examples Forms are an integral part of any modern web application. It allows the users to interact with the application as well as gather information... 1
- Explain the Component Lifecycle with a neat Diagram Components are the building blocks of React application that represents a part of the user interface. Reusable The React component goes thro... 2
- Difference between Stateful and Stateless Component Feature Stateful Component Stateless Component State Management Maintains state data and can change it over time. Does not maintain state in... 1
- Explain Props. What do you mean by Default props? It is an object which stores the value of attributes of a tag to create reusable custom components. Props are arguments passed into React co... 2