81. Explain Web Server?
It is a software app which will handle the HTTP requests by client (eg: browser) and will return web pages to client as a response. Most of web server supports – server side scripts using scripting languages. Example of web server is Apache, which is mostly used webserver.
82. List out the properties of process?
Below are the useful properties of process –
- Platform
- Stdin
- Stdout
- Stderr
- execPath
- mainModule
- execArgv
- config
- arch
- title
- version
- argv
- env
- exitCode
83.What is the property of OS module?
os.EOL – Constant for defining appropriate end of line marker for OS.
84. Explain “Buffer class” in Node.JS?
It is a global class which can be accessed in an application without importing buffer modules.
85. NodeJS is client side server side language?
NodeJS is a runtime system, which is used for creating server-side applications.
NODE JS & CERTIFICATION
Weekend / Weekday Batch
86. What is a control flow function?
Control flow function is a generic piece of code that runs in between several asynchronous function calls.
87. What is an asynchronous API?
All the API’s of Node.js library are asynchronous means non-blocking. A Node.js based server never waits for an API to return data. The Node.js server moves to the next API after calling it, and a notification mechanism of Events of Node.js responds to the server for the previous API call
88. What Is The Purpose Of Settimeout Function?
The setTimeout(cb, ms) global function is used to run callback cb after at least ms milliseconds. The actual delay depends on external factors like OS timer granularity and system load. A timer cannot span more than 24.8 days.
This function returns an opaque value that represents the timer which can be used to clear the timer.
89. What Is The Purpose Of Console Object?
Console object is used to Used to print information on stdout and stderr.
90. How Will You Delete A File Using Node?
Following is the syntax of the method to delete a file:
fs.unlink(path, callback)
Parameters
Here is the description of the parameters used:
path – This is the file name including path.
callback – This is the callback function which gets no arguments other than a possible exception are given to the completion callback.