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

Full Stack Development Exam Dec 2022

This document outlines the examination structure for the Full Stack Development course at Chaitanya Bharathi Institute of Technology, including details on the types of questions and marks distribution. It consists of two parts: Part A with five short answer questions and Part B with five longer questions, each with internal choices. Topics covered include CSS, ReactJS, HTML, JavaScript, Bootstrap, Node.js, and MongoDB.

Uploaded by

sowmyadell680
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)
19 views2 pages

Full Stack Development Exam Dec 2022

This document outlines the examination structure for the Full Stack Development course at Chaitanya Bharathi Institute of Technology, including details on the types of questions and marks distribution. It consists of two parts: Part A with five short answer questions and Part B with five longer questions, each with internal choices. Topics covered include CSS, ReactJS, HTML, JavaScript, Bootstrap, Node.js, and MongoDB.

Uploaded by

sowmyadell680
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

Code No.

: 20ADC07
CHAITANYA BHARATHI INSTITUTE OF TECHNOLOGY (Autonomous)
B.E. (IT, AI&DS) V Sem (Main) Examination Dec 2022 / Jan 2023
Full Stack Development
Time: 3 Hours Max Marks: 60
Note: Answer ALL questions from Part-A & Part –B (Internal Choice) at one place in the
same order
Part - A
(5Q X 3M = 15 Marks)
M CO BT
1 What are the different types of Selectors in CSS. (3) 1 1
2 Differentiate between visibility : none and visibility : hidden in CSS. (3) 2 2
3 What are the portals in ReactJS. (3) 3 3
4 Explain Node Package Manager. (3) 4 2
5 Write the features of MangoDB. (3) 5 2

Part – B
(5Q X 9M = 45 Marks)
M CO BT
6 (a) Illustrate how basic and nested tables are created using HTML. (5) 1 2
(b) Demonstrate CSS Grid Layout Properties and mention advantages and (4) 1 2
Disadvantages of using CSS Grid.
(OR)
7 (a) Design an application form of name, password, age, mobile no, email- (5) 1 4
id, address, reset and submit button using HTML.
(b) Explain the CSS box model and its components with an example. (4) 1 1

8 (a) What is Document Object Model (DOM)? Explain how it works in (5) 2 1
React JS.
(b) Write a JavaScript function that validates the Email id using the (4) 2 3
regular expression.
(OR)
9 (a) Summarize the uses of Jumbotron in Bootstrap. (5) 2 2
(b) Explain Bootstrap collapsing elements. Write the steps to create Nav (4) 2 2
elements in Bootstrap.

10 (a) Describe Class Components in ReactJS using suitable code snippet. (5) 3 2
(b) Demonstrate Configuring Express to use EJS. (4) 3 2
(OR)
11 (a) Illustrate the main benefits of using React router. (5) 3 3
(b) How to read POST data in Express JS. (4) 3 2

12 (a) Explain concepts of Events in [Link] with program? (5) 4 2


(b) How to create Web Server? Write the steps for sending and handling (4) 4 2
HTTP request.
(OR)
Page 1 of 2
Code No.: 20ADC07
13 (a) What are the different modules supported by [Link]. (5) 4 2
(b) Describe the file system operations supported by [Link]. (4) 4 2

14 (a) Explain the MongoDB CRUD operations with an example. (5) 5 4


(b) Explain indexing and aggregation in MongoDB. (4) 5 2
(OR)
15 (a) How to import and export a MongoDB Data Base. (5) 5 2
(b) What is aggregation pipeline in MongoDB? Give an example. (4) 5 2

******

Page 2 of 2

Common questions

Powered by AI

Node Package Manager (NPM) is pivotal in JavaScript project development, serving as the package manager for Node.js. It facilitates the sharing and reuse of packages (modules) across projects, aiding in project standardization and streamlining dependency management. NPM allows developers to easily install, update, or remove packages and their dependencies, maintaining version consistency and reducing the complexity of manual package configuration. It is essential for modern web development due to its extensive repository of packages, enabling rapid development, robust project maintenance, and the ability to leverage community-contributed modules for various functionalities .

Creating a basic web server in Node.js involves using the `http` module. First, require the module using `const http = require('http');`. Next, create a server with `http.createServer((req, res) => { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); });`. The server responds with 'Hello World' for any incoming request. Finally, make the server listen on a port, e.g., `server.listen(3000, '127.0.0.1');`, where '127.0.0.1' is the hostname and 3000 is the port. This setup handles incoming HTTP requests and responses, serving content based on the request URL or method .

Express.js is significant for handling HTTP requests as it simplifies the routing and middleware functionalities of Node.js, allowing developers to build scalable web applications effectively. It's known for its minimalistic framework approach which provides flexibility in designing web applications. In Express.js, to read POST request data, the body-parser middleware is typically used. It parses incoming request bodies before handlers, making it accessible via req.body. For example, in setting up middleware: `app.use(express.json());` this would allow handling JSON payloads from POST requests .

The Document Object Model (DOM) in ReactJS is a programming interface for HTML and XML documents, representing the page so that programs can change the document structure, style, and content. In React, a virtual DOM is used for efficient updates and rendering of user interface (UI) components. When a component's state changes, React updates the virtual DOM, performs a comparison with the previous state, and calculates the minimum number of updates needed to the real DOM, improving performance. Benefits include enhanced efficiency, ease of state management, and improved user experience due to faster UI updates .

In Node.js, events are central to the non-blocking I/O paradigm, functioning through the EventEmitter module, which facilitates emitting and handling custom events. Real-time applications benefit significantly from events as they allow for asynchronous, real-time data interaction without needing to wait for a task to complete. This is achieved by utilizing callbacks and the event loop, allowing multiple operations to progress without bottlenecking each other. Consequently, real-time experiences such as chat applications or live updates are enhanced through continuous data flow and prompt, effective responses .

In MongoDB, an aggregation pipeline is a powerful framework for data aggregation operations. It involves processing data records and returning computed results, streamlining the process through a pipeline of stages that modifies the input documents. Each stage performs an operation, such as filtering, grouping, and transforming data. For example, consider an aggregation to find the total sales per customer from a 'sales' collection: `db.sales.aggregate([{ $group: { _id: "$customerId", totalSales: { $sum: "$amount" } }}])`. Here, the `$group` stage aggregates documents by customerId, summing up the sales amount .

CRUD operations in MongoDB stand for Create, Read, Update, and Delete—fundamental operations for database manipulation. Create operations involve adding new documents to a collection, as in `db.collection.insertOne({ name: "John", age: 30 })`. Read operations query the database to retrieve data, such as `db.collection.find({})` to return all documents. Update operations modify existing documents, like `db.collection.updateOne({ name: "John" }, { $set: { age: 31 }})`. Delete operations remove documents, demonstrated by `db.collection.deleteOne({ name: "John" })`. Together, these operations enable comprehensive data management within a MongoDB database .

The CSS Box Model is a fundamental concept for web page layout, describing the structure of web elements in terms of the space they occupy. It consists of four components: content, padding, border, and margin. Each component serves a purpose: the content box holds the actual content, padding surrounds the content, the border wraps around the padding, and the margin is the space outside the border. For example, consider a CSS rule: `div { width: 100px; padding: 10px; border: 5px solid black; margin: 20px; }`. Here, the total width is 150px (100px content + 10px padding on each side + 5px border on each side).

React Router is essential for building Single Page Applications (SPAs) as it provides dynamic routing capabilities that enable navigation within an app without disrupting the page. Key benefits include allowing the application to navigate between views while keeping in sync with the URL, enabling browser history manipulation, and facilitating code splitting for better performance. It enhances the user experience by providing smooth transitions between components, maintaining the app’s state across routes, and supporting nested routes for more complex interfaces .

CSS Grid Layout provides a two-dimensional grid-based layout system which allows for more flexibility and responsiveness in web design compared to table-based layouts. Advantages of CSS Grid Layout include simplified code and ease of creating responsive designs without the need for complex calculations. It allows for direct placement of items on the grid using grid lines, offering more control over the layout dimensions and spacing. Disadvantages include a steeper learning curve for those accustomed to traditional layout models and less support in older browsers compared to table-based layouts .

You might also like