Professional Documents
Culture Documents
FrameWorks
1)JavaScript Basics
Permit server-side
a) RMI
b) Triggering Event
c) Preprocessor
d) Function/Method
8. Which of the following Attribute is used to include External JS code inside 0 points
a) src
b) ext
c) script
d) link
9. A proper scripting language is a 0 points
a) Volatile variable
b) Mutable variable
c) Immutable variable
d) Dynamic variable
a) 00
b) 0x
c) 0X
d) Both 0x and 0X
12.The escape sequence ‘\f’ stands 0 points
for
a) Floating numbers
d) Form feed
14.Assume that we have to convert “false” that is a non-string to string. The 0 points
a) false.toString()
b) String(false)
c) String newvariable=”false”
a) Function prototype
b) Function literal
c) Function calling
d) Function declaration
a) stand-alone expressions
called
a) Primary expression
b) Functional expression
c) Invocation expression
a) in
b) exist
c) within
d) exists
19.“An expression that can legally appear on the left side of an assignment 0 points
a) Properties
b) Prototypes
c) Lvalue
d) Definition
20.JavaScript is a language. 0 points
a) Object-Oriented
b) High-level
c) Assembly-language
d) Object-Based
a) Alternative to if-else
b) Immediate if
c) If-then-else statement
d) Switch statement
a) conditional block
c) Throws an error
d) Shows a warning
a) Keywords
b) Declaration statements
c) Data types
d) Prototypes
25.. The enumeration order becomes implementation dependent and non- 0 points
interoperable if
b) The object does not have the properties present in the integer array indices
loop variable?
b) Initialization,Testing, Updation
d) Initialization,Testing, Incrementation
27.One of the special features of an interpreter in reference with the for loop is 0 points
that
a) Before each iteration, the interpreter evaluates the variable expression and assigns the
name of the property
a) debugger
b) with
c) if
d) use strict
30.The unordered collection of properties, each of which has a name and a 0 points
value is called
a) String
b) Object
c) Serialized Object
d) Array
a) prototype stack
b) prototype chain
c) prototype class
d) prototypes
33.book[datatype]=assignment_value; 0 points
a) An integer
b) A String
c) An object
d) Floating point
34.What is the prototype represents in the following JavaScript code snippet? 0 points
a) Function f
b) A custom constructor
c) Prototype of a function
d) Not valid
c) “lock down” objects into a known state and prevent outside tampering
37.The pop() method of the array does which of the following task? 0 points
38.What will happen if reverse() and join() methods are used simultaneously? 0 points
c) Reverses
b) passes each element of the array and returns the necessary mapped elements
c)passes each element of the array on which it is invoked to the function you specify, and
returns an array containing the values returned by that function
40.The reduce and reduceRight methods follow a common operation called 0 points
d) fold
a) isarrayType()
b) ==
c) ===
d) typeof
42.The function definitions in JavaScript begins with 0 points
43. When does the function name become optional in JavaScript? 0 points
a) Returns the value and continues executing rest of the statements, if any
expression?
a) Procedures
b) Method
c) Static function
d) Dynamic function
a) continue statement
b) break statement
c) goto statement
d) return statement
48.Which keyword is used to define the function in javascript? 0 points
a) void
b) int
c) function
d) main
a) It is mandatory
b) Not necessary
a) Literal
b) Lexical
c) Segmental
d) Sequential
51.What must be done in order to implement Lexical Scoping? 0 points
a) Function objects
c) Both Function objects and Scope where function’s variables are resolved
a) Objects
b) Variables
c) Functions
d) Graphics
54.What is the fundamental rule of lexical scoping? 0 points
a) Literal scoping
b) Static scoping
c) Dynamic scoping
d) Generic scoping
main
array
function
none of
the
above
57.what is the features of javascript? 0 points
It is cross-platform language.
perl
ruby
nodejs
mocha
59.ECMA stands for 0 points
Option 5
V3 engine
V7 engine V8
engine V5
engine
61.which are the ways to included in javascript src file? 0 points
Inline
external
Internal
All of
the
above
Homegeneous array
Heterogeneous array
multidimensional array
jagged array
pattern validation
email validation
form validation
None of above
documents.
xml
nodejs
javascript
DOM
pending
fulfilled
rejected
All of
the
above
function
premises
callback
main
69.The behaviour of the instances present of a class inside a method is defined 0 points
by
a) Method
b) Classes
c) Interfaces
70. The keyword or the property that you use to refer to an object 0 points
a) from
b) to
c) this
d) object
71.The basic difference bet ween JavaScript and Java 0 points
is
a) There is no difference
d) Functions are values, and there is no hard distinction between methods and fields
73. If A is the superclass and B is the subclass, then subclass inheriting 0 points
a) B=inherit(A);
b) B=A.inherit();
c) B.prototype=inherit(A);
d) B.prototype=inherit(A.prototype);
74.The method that can be used to create new properties and also to modify 0 points
a) Object.defineProperty()
b) Object.defineProperties()
d) Object.inherit()
75.What are the events generated by the Node objects called? 0 points
a) generators
b) emitters
c) dispatchers
d) highevents
a) deleteAllListeners(name)
b) deleteListener(name,f)
c) removeListener(name,f)
d) removeAllListeners(name)
77.What is the function used to remove all handlers for name events? 0 points
a) deleteAllListeners(name)
b) deleteListener(name,f)
c) removeListener(name,f)
d) removeAllListeners(name)
a) addListener()
b) listeners()
c) once()
d) add()
a) once
b) process
c) listeners
d) on
80.When do uncaught exceptions generate events? 0 points
a) Microsoft
b) Mozilla
c) Apple
d) Chrome
82.Which of the following are global functions that are not part of core 0 points
JavaScript?
a) spawn(f);
b) trim();
c) exult();
d) eval()
83. Which is a more formal way of importing packages and classes 0 points
as JavaScript objects?
a) import(java.util.*);
b) importClass(java.util.*);
c) import.Class(java.util.*);
d) Class.import(java.util.*);
a) create
b) new
c) instantiate
d) create.new
85.The new Java arrays can be created into JavaScript programs using which 0 points
a) java.Array
b) java.lang.*
c) java.lang.Array
d) java.lang.reflect.Array
a) Web Databases
b) FileSystem API
associated resources?
a) Web Databases
b) FileSystem API
d) Cookies
a) Element
b) File
c) Window
d) DOM
a) Window object
b) Element object
c) Hash object
d) DOM object
90.What is the main difference between localStorage and sessionStorage? 0 points
a) Lifetime
b) Scope
d) Storage Location
a) get()
b) retrieve()
c) getItem()
d) retrieveItem()
a) It becomes self-cached
a) text/css
b) text/javascript
c) html
d) xml
c) No longer in use
95. What will be done if more than one page requires a file of JavaScript code? 0 points
c) Must be re executed
a) !
b) >
c) &
d) .
97.When does JavaScript code appear inline within an HTML file? 0 points
a) From javascript:encoding
a) Library
b) Framework
c) APIs
d) Script
a) jQuery
b) .NET
c) JavaScript
d) Cocoa
101.Which of the following frameworks focuses on DOM and Ajax utilities? 0 points
a) jQuery
b) Prototype
c) Dojo
a) Dojo
b) YUI
c) Prototype
d) Closure
103.Which of the following framework was used by Google for Gmail? 0 points
a) Dojo
b) GWT
c) Closure
d) YUI
invoked once?
a) setTimeout()
b) setTotaltime()
c) setInterval()
d) settime()
105.Which property is used to obtain browser vendor and version information? 0 points
a) modal
b) version
c) browser
d) navigator
a) Element
b) Window
c) Location
d) Event
107.Which method receives the return value of setTimeout() to cancel future 0 points
invocations?
a) clearTimeout()
b) clearInterval()
c) clearSchedule()
d) cancelInvocation()
108.1. Node.js is 0 points
Language.
Server Side
Client Side
Both
Javascript
C++
All
of
the
Abo
ve
yes
No
111. Which extension is used to save NodeJs 0 points
files?
.js
.node
.java
.txt
A. Global Object
B. Local Object
A. Asynchronous
B. Synchronous
114.Which function is used to include modules in Node Js. 0 points
A. include();
B. require();
C. attach();
A. zlib
B. https
C. dgram
D. fsread
A. module.exports
B. module.spread
C. module.expose
D. None of Above
117.What does the fs module stand 0 points
for?
A. File Service
B. File System
C. File Store
A. Local
B. Public
C. Private
D. Global
119.Which of the following are not Node.js web application frameworks for? 0 points
A. Express.js
B. Geddy
C. Aurelia
D. Locomotive
120.Which of the following template engines can be used with Node.js? 0 points
A. Jade
B. Vash
C. Handlebars
121.. Which method returns the current working directory of the process. 0 points
A. process.cwd();
B. cwd();
C. pwd();
A. $ node start
B. $ node
C. $ node repl
D. $ node console
A. $ npm --version
B. $ node --version
C. $ npm getVersion
D. $ node getVersion
A. $ npm ls -g
B. $ npm ls
C. $ node ls -g
D. $ node ls
system.?
A. True
B. False
A. True
B. False
131.Which of the following module is required for path specific operations ? 0 points
A. Os module
B. Path module
C. Fs module
A. Writable
B. Duplex
C. Readable
A. Ctrl + C
B. Ctrl + B
C. Ctrl + K
135.Node uses engine in core.* 0 points
A. Chorme V8
B. Microsoft Chakra
C. SpiderMonkey
D. Node En
136.Something that happened in our application that we can respond too. 0 points
A. events
B. actions
C. procedures
D. callback
A. sample.js
B. node sample.js
C. nodejs sample.js
D. None of above
138.What is the default port for HTTP and 0 points
HTTPS?
none of above
139.which is a software that allows to access to web pages of web application. 0 points
client-side server
web server
A. isEqualNode()
correct
B. equal()wrong
C. ==
142.In Node.js from the following which is true about writable stream? 0 points
A. Module
B. Library
C. Package
D. Function
144.Which of the following core module is used to create a web server in 0 points
Node.js?
A. fs
B. url
C. connect
D. http
145. Which of the following code can create a web 0 points
server ?
A. http.createServer(callback)
B. http.createWebServer(callback)
C. http.createHTTPServer(callback)
146. Node.js application can access which of the following databases? 0 points
A. NoSQL databases
B. Relational databases
B. Console
C. REPLwrong
D. Node Inspector
148.Which of the following is true about fs module of Node? 0 points
149. Which of the following module is required to create a web server? 0 points
A. url module
B. net module
C. http module
D. web module
engine that compiles the JavaScript directly into the native machine code.
NodeJs
JavaScript
Java
C
151.which is a lightweight framework used for creating server-side web 0 points
NodeJs
Java
JavaScript
152.which is a virtual machine that uses JavaScript as its scripting language 0 points
NodeJs
Java
JavaScript
standalone
platform independent
robust
V8 engine
154.How many types of API functions are there in 0 points
Node.js ?
all of above
stream
event-driven
eventEmitter
none of above
157.Which database is more popularly used with Node.js ? 0 points
Sql
mysql
mongodb
postgres
158.What are some of the most commonly used libraries in Node.js ? 0 points
expressjs
mongoose
all of above
Transform : A type of duplex stream where the output is computed based on input
all of above
160.which class stores raw data similar to an array of integers, but corresponds 0 points
array
buffer
util
http
161.which mechanism used to connect the output of one stream to another 0 points
stream.
stream
piping
eventEmitter
162.which JS framework used to manage the flow of information between the 0 points
NodeJs
ExpressJs
JQuery
Javascript
163.which module in Node.js allows us to create and handle custom events. 0 points
event-driven
eventEmitter
functionalities.
emitter
crypto
http
zlib
165.which method use for dns lookup for web addresses? 0 points
ipv6
ipv4
all of above
166.Which method appends specified content to a file. 0 points
A. fs.appendFile()
B. fs.open()
C. fs.writeFile()
A. TRUE
B. FALSE
A. import
B. module
C. exports
D. require
170.Node.js 0 points
runs?
A. single-threaded
B. non-blocking
C. asynchronously programming
module.
A. function()
B. require()
C. exports()
D. module()
A. https
B. http
C. server
D. module
A. createServer()
B. getServer()
C. putServer()
D. setServer()
174.which is one of the object data modelling tools for mongodb to work in an 0 points
enviroment.
Mongoose ODM
mongodb
Nosql
none of
the above
Nosql
Sql
mysql
mong
oose
GET
post
delete
Post
all of
above
stateless
client-server
code on demand
all of above
181.what are the features of mongodb? 0 points
Replication.
indexing.
schemaless
sharding.
all of above
var mysql=require('mysql');
var emitter=require('events').EventEmitter;
var emitter=require('events').EventEmitter;
185. How to use inherit() function of the util module? 0 points
unlink()
rmdir()
fs.ftruncate()
streams are basically data handling methods which are used to read or write input and
output.
190.what are the advantage of streams? 0 points
Time efficiency
Memory efficiency
191.which module allows users to perform read and write data using streams. 0 points
fs module
event module
http module
192.which gives the privileges to the users to create their own web servers to 0 points
Mysql
NodeJs
postgres
193.how to installing express js module globally? 0 points
core module
local module
195.buffer is an 0 points
space of memory
area of memory
none
196.which is a functional programming language,functions are complete typed 0 points
objects.
Javascript
Nodejs
java
ryan dalh
dennis ritch
lightweight framework
asynchronous
function
array
main
mongoose
mysql
nosql
Forms