Bạn đang kiểm tra C4 Blockchain: Basics and Applications >> Fundamentals of Node.js

Là một phần trong chương trình thạc sĩ của mình, tôi đã tạo bài kiểm tra này với một tập hợp các câu hỏi trắc nghiệm được thiết kế để giúp tôi và các bạn cùng lớp ôn lại kiến thức về module "Fundamentals of Node.js" từ "Course 4 Blockchain: Basics and Applications".
Dưới đây là 9 câu hỏi được chọn ngẫu nhiên từ bài kiểm tra kiến thức C4 Blockchain: Basics and Applications >> Fundamentals of Node.js. Là người dùng chưa được xác thực, bạn có quyền truy cập vào một nhóm giới hạn gồm 9 trong số 198 câu hỏi và bạn sẽ không thể xem câu trả lời chính xác cho những câu hỏi đó.
1/198: Which object is used to assign an imported module to a variable in NodeJS?

  1. exports
  2. require
  3. module.exports
  4. import
2/198: How is memory heap different from memory stack in programming?

  1. Memory heap stores function calls and returns, while memory stack stores primitive data types and local variables
  2. Memory heap stores dynamic memory allocations, while memory stack stores static memory allocations
  3. Memory heap and memory stack are different names for the same data structure
  4. Memory heap is accessed through pointers, while memory stack is accessed through direct memory addresses
3/198: What is the purpose of the "fs" module in Node.js?

  1. To provide server-side JavaScript capability
  2. To provide local file system management capability
  3. To provide client-side JavaScript capability
4/198: What does the following statement do in Node.js? console.log(require('module').builtinModules);

  1. Installs all core modules via NPM
  2. Imports all core modules into the current module
  3. Logs a list of all core modules in the console
5/198: What is the command to install a package from NPM using the CLI?

  1. npm search <package-name>
  2. npm install <package-name>
  3. npm import <package-name>
6/198: What is the syntax for exporting a function from a module in NodeJS?

  1. module.exports['calculateArea'] = calculateArea;
  2. module.exports.calculateArea = calculateArea;
  3. All of them
7/198: What does the error message "'node' is not recognized as an internal or external command, operable program or batch file" mean?

  1. Node.js is installed on the computer.
  2. The operating system is not compatible with Node.js.
  3. Node.js is not installed on the computer.
  4. The command prompt is not working properly.
8/198: Why would you use namespaces in your Node.js application?

  1. To avoid naming collisions between variables and functions
  2. To simplify your code and make it easier to read and understand
  3. To improve the performance of your application
9/198: What is a function wrapper in Node.js?

  1. A wrapper function that is used to protect sensitive data in a module
  2. A wrapper function that is automatically generated by Node to enclose the code in a module
  3. A wrapper function that is used to improve performance of the code in a module
TP Bank | Vũ Lê Huân
Chúng tôi rất vui được chia sẻ rằng trang web của chúng tôi hoàn toàn miễn phí sử dụng và chúng tôi tận tâm cung cấp các tài nguyên hữu ích cho người dùng của mình.

Nếu bạn thấy trang web của chúng tôi hữu ích và muốn hỗ trợ chúng tôi, bây giờ bạn có thể chuyển khoản ủng hộ. Các khoản đóng góp được chuyển trực tiếp vào tài khoản ngân hàng của chúng tôi và giúp chúng tôi tiếp tục cung cấp nội dung chất lượng.

Cảm ơn sự hỗ trợ của bạn!