Choose easy, medium or hard questions from our skill libraries to assess candidates of different experience levels.
Add multiple skills in a single test to create an effective assessment. Assess multiple skills together.
Add, edit or bulk upload your own coding questions, MCQ, whiteboarding questions & more...
Get a tailored assessment created with the help of our subject matter experts to ensure effective screening.
Choose from our 100,000+ question library and add your own to quickly make powerful custom tests
Q 1.
You are running Node on a remote machine, rem.myex.com. You want to setup a ssh tunnel on your local machine as follows:
Start a ssh tunnel session so that a connection to port 8331 on your local machine can be forwarded to port 8339 on rem.myex.com.
A debugger needs to be attached that would be able to debug. How will you setup this ssh tunnel to allow remote debugging connections?
Q 2.
In Node.js, you are using the .pipe() function to transfer data from one process to another. The write queue is currently busy and so .write() returns a false value.
Which of the following event will be emitted once the data buffer is emptied to resume the incoming data flow in this situation?
Q 3.
The given HTTP module has used createServer() method to create an HTTP server.
var http = require('http');
http.createServer(function(req, res)
{
res.write("My Module!');
res.end();
})
.listen(8080);
When will the function passed into the http.createServer() method execute?