You're testing C4 Blockchain: Basics and Applications >> Fundamentals of Node.js

As part of my master's program, I have created this quiz with a collection of multiple-choice questions that are designed to help me and my classmates review our knowledge of the "Fundamentals of Node.js" module from "Course 4 Blockchain: Basics and Applications".

Support the development of the website

This website was created to provide useful and free information to the community. To maintain and develop it, we need support from you.

If you find the website valuable, you can contribute any amount, whether it's $1 or $2, to help keep it running. Your contribution will help cover operating costs, maintenance, and content improvement. Every donation is greatly appreciated and will help us grow sustainably.

Thank you sincerely for your support!
Shown below are 9 randomly selected questions from the C4 Blockchain: Basics and Applications >> Fundamentals of Node.js knowledge test. As an unauthenticated user, you have access to a limited set of 9 questions out of 198, and you won't be able to view the correct answers for them.
1/198: What is the difference between __filename and __dirname?

  1. There is no difference between __filename and __dirname
  2. __filename returns the file name of the parent module, while __dirname returns the absolute path of the current module
  3. __filename returns the file name of the current module, while __dirname returns the absolute path of the directory containing the current module
2/198: How does the execution/call stack work?

  1. It stores data in a first-in-first-out (FIFO) order
  2. It stores function calls and returns, and keeps track of where the program is in its execution
  3. It allows for parallel processing of multiple tasks at once
  4. It executes code one instruction at a time
3/198: What are third-party modules in Node.js?

  1. Modules that are available to all modules in Node by default
  2. Modules that are created by someone else, need to be installed via NPM
4/198: What should you do if you see the error message "'node' is not recognized as an internal or external command, operable program or batch file"?

  1. Check the version of Node.js installed on the computer.
  2. Restart the computer and try again.
  3. Install Node.js on the computer.
  4. Ignore the error message and proceed with the next step.
5/198: What is the final step performed by Node after executing the code in a module?

  1. The function wrapper is returned
  2. The exports object is returned
  3. The module object is returned
6/198: How is memory heap different from memory stack in programming?

  1. Memory heap and memory stack are different names for the same data structure
  2. Memory heap stores function calls and returns, while memory stack stores primitive data types and local variables
  3. Memory heap stores dynamic memory allocations, while memory stack stores static memory allocations
  4. Memory heap is accessed through pointers, while memory stack is accessed through direct memory addresses
7/198: How can you export a module in NodeJS?

  1. Using the import keyword
  2. Using the exports object
  3. Using the module.exports object
  4. Using the export keyword
8/198: What types of data are stored in memory heap?

  1. User input and output
  2. Variables and functions
  3. Conditional statements and loops
  4. Libraries and modules
9/198: What is exports in JavaScript?

  1. A function that exports code to other modules
  2. A variable that initially references the object module.exports
  3. A keyword used to define a variable for export