We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
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 Node.js Key Concepts c) length d) console.log 1. What is Node.js? 9. Which tool is commonly used for testing APIs in a) A JavaScript library Node.js? b) A runtime environment a) Nodemon c) A web server b) Postman d) A database c) Axios 2. What makes Node.js 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 Node.js 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 Node.js? d) Postman a) To render static files Installation of Node.js Modules and Packages b) To define the server's response to specific HTTP requests 11. What is the command to initialize a new Node.js 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 Node.js c) npm init b) A module library for Python d) node start c) A command-line interface for databases 12. How do you install Express.js? d) A tool for debugging JavaScript a) npm install express 5. Which of the following is a feature of Express.js? 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 Node.js 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 Node.js project? d) A data type a) package.json b) dependencies.json c) node_modules c) app.route() d) npm.json d) app.listen() 23. Which client library supports HTTPS requests in 16. Which Node.js module is commonly used to connect Node.js? 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 Express.js a) Postman 19. What is the command to require Express in a b) Nodemon Node.js 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() Express.js? 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 Node.js reach the final route handler server? c) To connect to a database a) 3306 d) To define HTTP headers b) 3000 Installation of Node.js Modules and Packages c) 80 29. What is the command to update all Node.js d) 8080 packages listed in package.json? 22. Which method is used to handle GET requests in a) npm update Express? b) npm install a) app.get() c) npm upgrade b) app.post() 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()