1) What is Node.js? a) A. A front-end framework b) A runtime environment for executing JavaScript code outside the browser c) A database management system d) A CSS preprocessor 2) Which module is used in Node.js to handle HTTP requests and responses? a) http b) url c) fs d) events 3) How do you install a Node.js module? a) node install <module_name> b) npm install <module_name> c) npm add <module_name> d) module install <module_name> 4) What command is used to initialize a new Node.js project? a) npm init b) node start c) npm start d) node init 5) What type of database is MongoDB? a) Relational b) NoSQL c) File-based d) Key-Value Store 6) Which package is commonly used to define models in Node.js for MongoDB? a) Sequelize b) Mongoose c) Express d) Lodash 7) What does the Schema in Mongoose define? a) The database connection string b) The structure and constraints of documents in a collection c) The default port for the database d) The middleware to use in an application 8) What method is used to define a GET route in Express.js? a) app.get() b) app.route() c) app.fetch() d) app.create() 9) What does res.send() do in Express.js? a) Ends the request and sends data back to the client b) Starts a new server c) Parses the request body d) Redirects the client to another route 10) What is the purpose of mongoose.connect()? a) To define a schema b) To start the Node.js server c) To establish a connection to the MongoDB database d) To create a new model
0%
Final assessment - Nodejs
共用
共用
共用
由
Kdyahya
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
測驗
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?