0% found this document useful (0 votes)
7 views1 page

Node Ass1

Uploaded by

Habimana Daniel
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)
7 views1 page

Node Ass1

Uploaded by

Habimana Daniel
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/ 1

FORMATIVE ASSESSMENT

Module Detail Trainee’s Detail

Sector ICT and Multimedia Name ……………………………

Reg no

Trade Software Development Level 4

Module(Code&Name): SWDBD 401 BACKEND Marks ( ) Decision


APPLICATION DEVELOPMENT ☐ Competent ☐ NYC

Learning outcome Develop RESTFUL APIs with Node JS

Date: …………. Duration: Trainer’s name: HABIMANA Daniel

Q1. What is Node.js and why is it used?


Q2. How do you set up a Node.js environment on your local machine?

Q3. What is NPM and its purpose?

Q4. Describe the difference between a class and an object in JavaScript?

Q5. What is Nodemon and its usage?

Q6. What are client libraries and why are they important?

Q7. How can you test a server connection using Postman?

Q8. Define RESTful APIs. List and explain the four primary HTTP methods used in RESTful services.
Q9. Write a code snippet to create a RESTful API endpoint in Express.js that retrieves all items from a
MySQL database.

Q10. What are middleware services in Express.js?


Q11. Give an example of error handling middleware
Q12. What is input validation, and how can it be implemented in an Express.js application?
Q13. How do you perform a CREATE operation using MySQL in Node.js?
Q14. What is the purpose of HTTP status codes?
Q15. What status code indicates a successful request?
Q16. What is the purpose of the req and res objects in Express?
Q17. Write a RESTful API endpoint in Express.js to create a new item in a MySQL database. Include error
handling in your code.

THE HARDER WE WORK, THE SMARTER WE GET

You might also like