Bis601 Simp Paper B
Bis601 Simp Paper B
Module 1
o Variable declarations
o Assignment
o Expression
o Return
4. Describe the different types of loops in JavaScript with syntax and use cases.
(Include for, while, do...while, for...of, and for...in.)
5. Explain conditional statements (if, else if, switch) in JavaScript with examples.
o Function declaration
o Function expression
o Arrow function
o Default parameters
9. What are objects in JavaScript? Describe how to declare, access, update, and
delete properties. Also explain how to define methods within objects.
Module 3
1. What is the MERN stack? Describe each component (MongoDB, Express, React,
Node.js) and explain how they work together to build full-stack applications.
3. What is a React Class Component? Describe its structure, use of render() method,
state management, and lifecycle methods like componentDidMount().
5. What is component composition in React? How can large UIs be broken into fine-
grained, reusable components? Explain with an example.
6. How is data passed using props in React? Explain how to pass and access different
data types, including style objects and component-specific properties.
7. What is the difference between passing data using props and using children in
React? Explain their implementation with example.
9. Explain how to structure a component to render a table with multiple issue rows
dynamically..
Module 4
2. Describe the concept of “Lifting State Up” in React.Why is it necessary, and how
is it implemented using parent and child components
3. Differentiate between State and Props? When should each be used? Explain with
examples and use cases from the component hierarchy.
4. What are Stateless Components in React? Compare them with class components.
What are the benefits and when should they be used?
7. Explain the REST API architecture.How are CRUD operations mapped to HTTP
methods? What are the limitations of REST in modern web applications?
8. Compare REST and GraphQL. What problems in REST does GraphQL solve?
Explain with examples.
9. How do you define and use a custom scalar type in GraphQL? Explain how
GraphQLDate was implemented and used for handling date fields in the Issue
Tracker app.
Module 5
3. How is data read and written from MongoDB using Node.js? Explain
MongoClient connection, async/await patterns, and how insertOne() and find()
are used.
4. What is schema initialization in MongoDB?Describe steps like clearing
collections, inserting sample data, and creating indexes for performance.
5. How are unique IDs generated in MongoDB for issues? Explain the use of a
counters collection and methods to maintain auto-increment behavior.
6. How does MongoDB handle aggregation? Describe different pipeline stages with
examples
8. How does Webpack enable Hot Module Replacement (HMR)? Describe the need
for HMR, steps to configure it in webpack.config.js, and benefits over manual
refresh.
Module 2
1. What is the Document Object Model (DOM)? Explain the DOM tree structure and
how JavaScript can interact with it. Include a diagram with the answer
2. Describe the different ways to select DOM elements using JavaScript and jQuery?
Explain getElementById, querySelector, querySelectorAll, $() etc.
o Changing styles
4. What are DOM nodes? Describe different node types and how to access, create,
insert, and remove them.
5. What is an event in JavaScript? Describe how to bind and unbind events using
JavaScript
o Mouse events
o Keyboard events
o Form events
9. How can you bind multiple events to the same or multiple elements?Explain with
examples in both JavaScript and jQuery, and compare inline handlers vs
addEventListener.