0% found this document useful (0 votes)
1 views4 pages

21CS902 WDF Interview QP

The document contains a list of interview questions and answers related to web development frameworks, covering topics such as MVC architecture, full-stack frameworks, Node.js, MongoDB, and Angular. It provides concise definitions and explanations for key concepts and technologies used in web development. The content is aimed at students in the MTech Computer Science and Engineering program at Erode Sengunthar Engineering College.

Uploaded by

karpagamrathan
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)
1 views4 pages

21CS902 WDF Interview QP

The document contains a list of interview questions and answers related to web development frameworks, covering topics such as MVC architecture, full-stack frameworks, Node.js, MongoDB, and Angular. It provides concise definitions and explanations for key concepts and technologies used in web development. The content is aimed at students in the MTech Computer Science and Engineering program at Erode Sengunthar Engineering College.

Uploaded by

karpagamrathan
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/ 4

ERODE SENGUNTHAR

ENGINEERING COLLEGE
(An Autonomous Institution)
Approved by AICTE, New Delhi, Permanently Affiliated to Anna University- Chennai,
Accredited by National Board of Accreditation (NBA), New Delhi &
National Assessment and Accreditation Council (NAAC), Bangalore with ‘A’ Grade
PERUNDURAI -638 057, TAMILNADU, INDIA.

DEPARTMENT OF MTECH COMPUTER SCIENCE AND ENGINEERING

V YEAR / IX SEM 21CS902 WEB DEVELOPMENT FRAMEWORK

INTERVIEW QUESTIONS
1. What is a web development framework?
It's a collection of libraries and tools that help in building web applications quickly by providing
structure and pre-written code for common tasks.

2. What is the role of the browser in web development?


It renders and interprets HTML, CSS, and JavaScript to present web content to users.

3. What is MVC architecture?


MVC stands for Model-View-Controller. It separates application logic (Model), user interface
(View), and user input control (Controller) for better modularity.

4. What is a full-stack web development framework?


It provides both front-end and back-end capabilities, like the MERN stack (MongoDB, Express,
React, Node.js).

5. How does Express fit in a web development stack?


Express is a back-end framework for Node.js used to build APIs and handle HTTP
requests/responses.

6. What is the role of Angular?


Angular is a front-end framework for building dynamic single-page applications using
TypeScript.

7. Define MERN stack.


MERN = MongoDB + Express + React + Node.js. It's a JavaScript-based full-stack framework.

8. Difference between frontend and backend development?


Frontend involves user interface (HTML/CSS/JS), while backend handles server logic and
databases.

9. What is meant by Backend Services?


These are services like APIs, databases, authentication, etc., that support the frontend.
10. Why use frameworks instead of plain HTML/JS/CSS?
Frameworks enhance productivity, enforce structure, and provide built-in tools and libraries.

11. What is Node.js?


It's a JavaScript runtime built on Chrome's V8 engine, used for building scalable server-side
applications.

12. Why is Node.js considered event-driven?


Because it uses an event loop to handle asynchronous I/O operations.

13. What is NPM?


Node Package Manager, used to install, manage, and publish Node.js packages.

14. How do you install a package using NPM?


Use npm install <package-name>.

15. What is a callback in Node.js?


A function passed as an argument to another function, executed after an asynchronous task is
complete.

16. How does Node handle file I/O?


Through non-blocking, asynchronous methods like fs.readFile() and fs.writeFile().

17. What are Event Emitters in Node.js?


Objects that emit named events and handle them using registered listeners.

18. What is a simple example of a Node.js HTTP server?


Using http.createServer() method to handle client requests and return responses.

19. What is a timer in Node.js?


A way to schedule functions using setTimeout() or setInterval().

20. Mention one key advantage of Node.js.


High scalability due to non-blocking I/O and single-threaded event loop.

21. What is MongoDB?


A NoSQL database that stores data in BSON (Binary JSON) format.

22. Difference between SQL and NoSQL?


SQL is relational, schema-based; NoSQL is non-relational, document-based.

23. How do you create a MongoDB database?


Use the command use <dbname> in the Mongo shell.

24. What is a collection in MongoDB?


Equivalent to a table in relational databases; it holds multiple documents.
25. What is a document in MongoDB?
A JSON-like object containing data in key-value pairs.

26. How do you perform CRUD in MongoDB?


Using methods like insertOne(), find(), updateOne(), deleteOne().

27. How do you connect MongoDB to Node.js?


Using the mongodb or mongoose package in Node.js.

28. What is Mongoose?


An ODM (Object Data Modeling) library for MongoDB and Node.js.

29. What is access control in MongoDB?


A security mechanism to grant/deny access using user roles and permissions.

30. How can you list all databases in MongoDB?


Use show dbs in the Mongo shell.

31. What is Express.js?


A minimal and flexible Node.js framework used to build web applications and APIs.

32. How do you define routes in Express?


Using app.get(), app.post(), app.put(), app.delete() methods.

33. What is middleware in Express?


Functions that execute during the request-response cycle, e.g., logging, parsing, authentication.

34. What is Angular?


A TypeScript-based front-end web framework for building SPA (Single Page Applications).

35. What is data binding in Angular?


Synchronization of data between model and view (one-way or two-way).

36. What are Angular components?


Core building blocks of Angular apps – contain HTML, CSS, and TS logic.

37. What is TypeScript?


A typed superset of JavaScript used in Angular development.

38. What are built-in directives in Angular?


Directives like *ngIf, *ngFor, ngClass that modify DOM behavior.

39. What is a route guard in Angular?


A mechanism to control navigation access to certain routes.
40. How are routes configured in Express?
Using app.use() or router.get() with path and handler functions.

41. What is React?


A JavaScript library for building user interfaces using components.

42. What is JSX in React?


JavaScript XML – a syntax extension that allows writing HTML-like code in JavaScript.

43. What is a React component?


A function or class that returns a JSX element to be rendered on screen.

44. Difference between state and props in React?


State is internal and mutable; props are passed from parent and are read-only.

45. What is React Router?


A library used for navigation and routing in React applications.

46. What is modularization in React?


Breaking the app into reusable components/files.

47. What is Webpack?


A module bundler that compiles JavaScript modules and assets into optimized bundles.

48. What are REST APIs?


Web services that follow REST principles and allow CRUD operations via HTTP methods.

49. What is server-side rendering in React?


Rendering React components on the server before sending HTML to the browser.

50. Why use the MERN stack for web apps?


MERN allows full-stack development using a single language – JavaScript – across all layers.

You might also like