All questions
- 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
- Anonymous and Arrow Function Examples in ES6 An anonymous function is a function without a name (usually stored in a variable or passed as a callback); an arrow function is the shorter... 1
- Web computing important Questions? (Aids/Aiml) Module 1 1. HTTP and HTTPS Working 2. DNS Working with Diagram and Steps 3. Document Object Model (DOM) Explained with Diagram 4. REST API 5... 1
- Write a short note on Openflow messages OpenFlow messages are exchanged between an SDN controller and an OpenFlow switch over a (usually TLS-secured) TCP channel, and fall into thr... 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
- Important questions for computer network ai-ds branch T.E sem V 1. Channel allocation problem Slotted & pure aloha 2. Different guided transmission medias 3. OSI reference model 4. Sliding window protocol... 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
- What are the criteria for an API to be a RESTful API? An API is RESTful when it follows the REST architectural constraints: client–server, statelessness, cacheability, a uniform interface, a lay... 1
- 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
- Q4 B) Explain the architecture of NodeJs with a neat diagram. Node.js uses a single-threaded, event-driven, non-blocking I/O architecture: one main thread runs JavaScript on the V8 engine, while the lib... 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
- Explain the class components in React. What are the advantages of using them? A class component is an ES6 class that extends React.Component, keeps its data in this.state, updates it with this.setState(), and returns i... 1
- 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