Searching for "i"

Q:

In the 'Index of Eight core Industries'

which one of the following is given the highest weight?

A) Coal Produciton B) Electricity Generation
C) Fertilizer Production D) Steel Production
 
Answer & Explanation Answer: B) Electricity Generation

Explanation:

The Eight Core Industries comprise nearly 38 % of the weight of items included in the Index of Industrial Production (IIP).  Electricity generation (weight: 10.32%)

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

Q:

What is the purpose of Buffer class in Node.js?

Answer

Buffer class could be a global class and may be accessed in application without importing buffer module. A Buffercould be a quite an array of integers and corresponds to a raw memory allocation outside the V8 heap. A Buffer can not be resized.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

Q:

How does Node.js prevents blocking code?

Answer

By providing callback function. Callback function gets called whenever corresponding event triggered.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

Q:

What is a REPL in context of Node.js?

Answer

Read - Reads users input, parse the input into JavaScript data-structure and stores in memory


Eval - Evaluates the data structure


Print - Prints the result


Loop - Loops the above command until user press ctrl-c twice

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

Q:

Is Node.js is a single threaded application?

Answer

Node.js uses a single threaded model with event looping.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

Q:

What is a Node.js?

Answer

Node.js is a framework for web applications built on Google Chrome's JavaScript Engine(V8 Engine).


Node.js is comes with runtime environment on which a cript based on javascript can be interpreted and executed (It is analogus to JVM to JAVA byte code). This runtime environment allows to execute a JavaScript code on any machine outside a browser. Because of this runtime of Node.js, JavaScript is now can be executed on server also.


Node.js is provides a rich library of various javascript modules which eases the developement of web application using Node.js to greater extents.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

Q:

What is the difference between mysql_connect and mysql_pconnect?

Answer

There is a decent page in the php manual on the subject, in short mysql_pconnect() makes a persevering association with the database which implies a SQL join that don't close when the execution of your script closes. mysql_connect()provides just for the database new association while utilizing mysql_pconnect , the capacity would first attempt to locate a (relentless) connection that is as of now open with the same host, username and password. On the off chance that one is found, an identifier for it will be returned as opposed to opening another connection... the connection with the SQL server won't be terminated when the execution of the script ends. Rather, the link will stay open for future use.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Database Administration

Q:

How to create a basic text file in php?

Answer

$filename = "/home/user/guest/newfile.txt";
$file = fopen( $filename, "w" );
if( $file == false )
{
echo ( "Error in opening new file" );
exit();


}
fwrite( $file, "This is a simple test\n" );
fclose( $file );

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: IT Trainer