Answer these 300+ Node.js MCQs and assess your grip on the subject of Node.js.
Scroll below and get started!
A. vbscript
B. C#
C. javascript
D. perl
A. object
B. peer
C. packet
D. cat cable
A. os.log
B. app.log
C. console.log
D. system.log
A. launch example.js
B. start example.js
C. node example.js
D. exec example.js
A. Read-Eval-Print-Loop, a way to interactively run code
B. Replicates an existing Buffer, optionally resetting the size
C. A string replacement method
D. REnder PLaceholders - a templating function
A. integer
B. float
C. var
D. string
A. doesn't stand for anything
B. Junior Seau
C. The creator of the language Jack Snyder
D. javascript
A. //comment
B. Comment
C. ?Comment
D. >>Comment
A. #import mymodule
B. <script src='mymodule' />
C. #include mymodule
D. var module = require('mymodule')
A. Module
B. Package manager
C. Web Server
D. Sweet Acronym
A. util.log or console.log
B. trace or log
C. sys.puts or util.puts
A. Object
B. integer
C. variable
D. an event
A. Unix's Websocket layer
B. Cocoa's Unix backend
C. Chrome's JavaScript runtime
A. Similar to setTimeout in the browser
B. Raw memory allocated outside the v8 heap
C. A String
A. Send messages from one client to another.
B. All of these.
C. Send messages from the client to the server.
D. Send messages from the server to the client.
A. All of these
B. Chatrooms
C. Webservers
D. Spambots
E. Data Compilers
A. hard drive
B. power supply
C. serial bus
D. motherboard
A. False
B. True
A. Javascript and Java
B. Java
C. Javascript
D. C++
E. any language if you have the compiler for those installed on your machine
A. Chrome comes bundled with Node.js and everyong needs Chrome
B. Javascript is powerless without the aid of Node.js
C. It allows asynchronous processing in the background without interupting the user
D. Browsers are weak, adding Node.js to your browser beefs it up
A. spring
B. maven
C. express
D. tab
A. a part of the OS
B. a part of the registry
C. download the install
D. a part of the browser
A. --global
B. --save
C. --link
A. Chakra
B. V8
C. Rhino
D. SpiderMonkey
E. JägerMonkey
A. Node Packaged Modules
B. Node Package Manager
C. None of these
D. Node Process Manager
A. database
B. client
C. SAN
D. server
A. Listener
B. Process
C. Link
D. Log
E. Buffer
A. General Purpose Applications
B. I/O Bound Applications
C. CPU Bound Applications
A. manual
B. URL string
C. ruler
D. breakpoints
A. require('dns');
B. request(dns);
C. npm_module('dns');
D. req('dns');
In this code:
function myLog(err, data) {
console.log(err, data);
} fs.readFile('/tmp/sample', myLog);
The function 'myLog' is used as a(an):
A. Object method
B. Prototype
C. Filter
D. Callback
A. file
B. fs
C. fso
D. drive
A. process.write
B. system.inform
C. util.log
D. console.log
A. Node.js is non-blocking and scalable.
B. Node.js allows you use the same language on the server and client.
C. Node.js is powered by a high-performance V8 engine.
D. All of these.
A. npm start
B. npm load
C. npm install
D. npm run
A. JRE optimization
B. fibonacci benchmarks
C. I/O-bound tasks
Running the following code, what will the console output?
var http = require('http');
http.createServer( function (request, response) { response.writeHead(200,
{'Content-Type': 'text/plain'});
response.end('Hello World\n'); } ).listen(8000);
console.log('Server running at http://localhost:8000/');
A. Hello World
B. undefined
C. Hello World\n
D. Server running at http://localhost:8000/
A. none of the above
B. module.exports object
C. string object
A. routes.post
B. routes.id
C. routes.item
D. routes.index
A. wait(1000)
B. setTimeout(fn, 1000)
C. process.wait(1000)
D. process.wait(fn, 1000)
E. process.delay(1000, fn)
A. in the registry
B. as an application
C. in your browser
D. in your TIF file
A. Read-Eval-Print-Loop
B. Repeat Languages
C. Read-Edit-Place-Leverage
A. JSON.parseJSON()
B. JSON.toJSON()
C. None of the above
D. JSON.parse();
A. server
B. url
C. http
D. web
A. A program written in C
B. Hardware
C. A program written in Lisp
D. jQuery module
E. An Apache Module
A. require('iModule').mObject();
B. request('iModule').mObject();
C. require('iModule').prototype.mObject();
D. import('iModule').mObject();
A. False
B. True
A. It also offers a set of wrappers for OpenSSL's hash, hmac, cipher, decipher, sign and verify methods.
B. Realtime application framework for Node.JS, with HTML5 WebSockets and cross-browser fallbacks support.
C. Bindings to application logging classes
D. Bindings to Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes
A. Test
B. Error
C. Assert
D. Fail
A. true
B. false