1) What is node.js?
Node.js is a Server-side scripting which is utilized to fabricate versatile projects. Its different focal points over other server-side dialects, the conspicuous being non-blocking I/O.
2)What is the upside of utilizing node.js?
a) It gives a simple method to manufacture versatile system programs
b) Generally quick
c) Great simultaneousness
d) Asynchronous everything
e) Almost never squares
3) What are the two kinds of API works in Node.js?
The two kinds of API works in Node.js are
an) Asynchronous, non-blocking capacities
b) Synchronous, blocking capacities
4) What is control stream work?
A nonspecific bit of code which keeps running in the middle of a few offbeat capacity calls is known as control stream work.
5) Explain the means how "Control Flow" controls the capacities calls?
a) Control the request for execution
b) Collect information
c) Limit simultaneousness
d) Call the following stage in the program
6) Why Node.js is a single string?
For async handling, Node.js was made unequivocally as a trial. It is trusted that more execution and versatility can be accomplished by doing async preparing on a solitary string under run of the mill web loads than the run of the mill string based usage.
7) Does hub keep running on windows?
Truly – it does. Download the MSI installer from http://nodejs.org/download/
8) Can you get to DOM in the hub?
No, you can't get to DOM in the hub.
9) Using the occasion circle what are the errands that ought to be done concurrently?
an) I/O activities
b) Heavy calculation
c) Anything requiring blocking
10) Why node.js is rapidly picking up consideration from JAVA software engineers?
Node.js is rapidly picking up consideration as it is a circle based server for JavaScript. Node.js enables the client to compose the JavaScript on the server, which approaches things like HTTP stack, the document I/O, TCP and databases.
11) What are the two contentions that async? queue takes?
The two contentions that async.queue takes
a) Task work
b) Concurrency esteem
12) What is an occasion circle in Node.js?
To process and handle outer occasions and to change over them into callback summons an occasion circle is utilized. In this way, at I/O calls, node.js can change starting with one demand then onto the next.
13) Mention the means by which you can async in Node.js?
By following advances you can async Node.js
a) First class works
b) Function structure
c) Callback Counters
d) Event circles
14) What are the pros and cons of Node.js?
pros:
a) If your application does not have any CPU concentrated calculation, you can fabricate it in Javascript start to finish, even down to the database level in the event that you utilize JSON stockpiling object DB like MongoDB.
b) Crawlers get a full-rendered HTML reaction, which is significantly more SEO agreeable as opposed to a solitary page application or a websockets application keep running over Node.js.
Cons:
a) Any serious CPU calculation will piece node.js responsiveness, so a strung stage is a superior approach.
b) Using the social database with Node.js is viewed as less great
15) How Node.js beats the issue of obstructing of I/O tasks?
Node.js takes care of this issue by putting the occasion based model at its center, utilizing an occasion circle rather than strings.
16) What is the difference between Node.js vs Ajax?
The contrast amongst Node.js and Ajax is that Ajax (short for Asynchronous Javascript and XML) is a customer side innovation, regularly utilized for refreshing the substance of the page without invigorating it. While,Node.js is Server Side Javascript, utilized for creating server programming. Node.js does not execute in the program but rather by the server.
17) What are the Challenges with Node.js?
Underscoring on the specialized side, it's a touch of the test in Node.js to have one process with one string to scale up on the multi center server.
18) What does it signify "non-hindering" in node.js?
In node.js "non-blocking" implies that its IO is non-blocking. Hub utilizes "libuv" to deal with its IO in a stage skeptic way. On windows, it utilizes fruition ports for Unix it utilizes epoll or queue and so on. In this way, it makes a non-blocking demand and upon a demand, it lines it inside the occasion circle which calls the JavaScript 'callback' on the fundamental JavaScript string.
19) What is the summon that is utilized as a part of node.js to import outside libraries?
Summon "require" is utilized for bringing in outside libraries, for instance, "var http=require ("HTTP")". This will stack the HTTP library and the single traded question through the HTTP variable.
20) Mention the structure most ordinarily utilized as a part of node.js?
"Express" is the most widely recognized structure utilized as a part of node.js
21) What is 'Callback' in node.js?
Callback work is utilized as a part of node.js to manage various solicitations made to the server. Like in the event that you have an expansive document which will set aside quite a while for a server to peruse and on the off chance that you don't need a server to get participate in perusing that vast record while managing different solicitations, get back to work is utilized. Get back to work enables the server to manage pending solicitation first and call a capacity when it is done.
22) What is node.js?
Node.js is a Server-side scripting which is utilized to fabricate versatile projects. Its different focal points over other server-side dialects, the conspicuous being non-blocking I/O.
23) How node.js works?
Node.js deals with a v8 situation, it is a virtual machine that uses JavaScript as its scripting dialect and accomplishes high yield through non-blocking I/O and single strung occasion circle.
24) What does occasion driven programming mean?
In PC programming, occasion driven writing computer programs is a programming worldview in which the stream of the program is dictated by occasions like messages from different projects or strings. It is an application engineering method isolated into two areas 1) Event Selection 2) Event Handling
25) Where would we be able to utilize node.js?
Node.js can be utilized for the accompanying purposes
a) Web applications ( particularly continuous web applications )
b) Network applications
c) Distributed frameworks
d) General reason applications