APEBU NYAMATA TSS 8.
Which of the following is NOT a property of an
OPTION/TRADE: Software Development object?
SUBJECT: Develop a Backend Application using Node Js a) name
LEVEL: 4 b) getAge()
Brainstorm The following [Link] Key Concepts c) length
d) [Link]
1. What is [Link]? 9. Which tool is commonly used for testing APIs in
a) A JavaScript library [Link]?
b) A runtime environment a) Nodemon
c) A web server b) Postman
d) A database c) Axios
2. What makes [Link] suitable for backend d) Request
applications? 10. Which module is used to watch file changes in a
a) Its ability to run JavaScript on the server [Link] application?
b) Its built-in browser support a) Nodemon
c) Its graphical user interface b) Express
d) Its client-side rendering capability c) HTTP
3. What is the purpose of routes in [Link]? d) Postman
a) To render static files Installation of [Link] Modules and Packages
b) To define the server's response to specific HTTP requests 11. What is the command to initialize a new [Link]
c) To manage database connections project?
d) To process images a) npm install
4. What is NPM? b) node init
a) A package manager for [Link] c) npm init
b) A module library for Python d) node start
c) A command-line interface for databases 12. How do you install [Link]?
d) A tool for debugging JavaScript a) npm install express
5. Which of the following is a feature of [Link]? b) npm add express
a) Built-in templating engine c) node install express
b) Middleware support d) npm start express
c) CSS management 13. Which command installs Nodemon?
d) Graphical interface tools a) npm install nodemon
6. Which of the following represents an object in b) npm add nodemon
JavaScript? c) node install nodemon
a) { name: "John", age: 30 } d) npm start nodemon
b) function() {} 14. How can you globally install a [Link] package?
c) true a) npm install -g package-name
d) "string" b) npm add global package-name
7. What is a method in JavaScript? c) npm global package-name
a) A type of variable d) node install global package-name
b) A function associated with an object 15. What is the file where dependencies are listed in a
c) A string manipulation tool [Link] project?
d) A data type a) [Link]
b) [Link]
c) node_modules c) [Link]()
d) [Link] d) [Link]()
23. Which client library supports HTTPS requests in
16. Which [Link] module is commonly used to connect [Link]?
to MySQL? a) HTTPs
a) mysql b) Request
b) dbms c) Axios
c) sequelize d) All of the above
d) sql-connector 24. What is the purpose of the Axios library?
17. What command is used to install the MySQL a) To create APIs
package? b) To make HTTP requests
a) npm install mysql c) To manage files
b) npm install sequelize d) To host servers
c) npm init mysql Server Connection and Testing
d) npm start mysql 25. What is the first step in setting up a database
18. What is required to establish a connection to a connection?
MySQL database? a) Define connection parameters
a) Host, user, password, and database name b) Write queries
b) Server name and schema c) Handle response
c) Table name and password d) Test the schema
d) Primary key and schema 26. What tool can be used to test server requests?
Creation of Basic Server with [Link] a) Postman
19. What is the command to require Express in a b) Nodemon
[Link] file? c) DBMS
a) import express d) Axios
b) const express = require('express') 27. How do you configure a database schema?
c) node express a) Using SQL commands
d) require express b) Using HTTP requests
20. What method is used to create an Express c) Using Nodemon
application? d) Using Postman
a) express() 28. What is the primary purpose of middleware in
b) new Express() [Link]?
c) createApp() a) To serve static files
d) startExpress() b) To handle request and response objects before they
21. Which port is commonly used to host a [Link] reach the final route handler
server? c) To connect to a database
a) 3306 d) To define HTTP headers
b) 3000 Installation of [Link] Modules and Packages
c) 80 29. What is the command to update all [Link]
d) 8080 packages listed in [Link]?
22. Which method is used to handle GET requests in a) npm update
Express? b) npm install
a) [Link]() c) npm upgrade
b) [Link]() d) npm add
Establishment of Server Connection
30. Which method in Axios is used to handle errors in an
HTTP request?
a) .then()
b) .catch()
c) .request()
d) .errorHandler()