CSS Diploma Wale Helpdesk
CSS Diploma Wale Helpdesk
Ans : D
Ans : A
Ans : A
1 CSS MCQ
-Siddhesh Shelar
Ans : B
Ans : B
2 CSS MCQ
-Siddhesh Shelar
Ans : D
Explanation: To display any text in the alert box, you need to write it as alert("Letsfindcourse");
Ans : A
Ans : C
Explanation: Cassandra is a distributed database from Apache.So the option C is not Javascript
frameworks or libraries.
3 CSS MCQ
-Siddhesh Shelar
Ans : B
Explanation: Because JavaScript's syntax is loosely based on Java's that's why JavaScript and
Java have similar name.
Ans : C
Explanation:The project was originally called Mocha, then renamed to LiveScript, and finally to
JavaScript when Netscape and Sun did a license agreement. The idea at the time was to make it a
scripting language complimentary to Java.
Ans : D
Explanation: JavaScript is designed for the following purpose: to style HTML pages b. to execute
Queries related to databases on a server c. to add interactivity to html pages d. to perform server
side scripting operations e. none of the above JavaScript statements are terminated by a a.
4 CSS MCQ
-Siddhesh Shelar
A. Letsfindcourse 30
B. 30
C. Letsfindcourse30
D. Exception
Ans : C
Explanation:In JavaScript the alert function does the type casting and converts the integer value
to string. After that it concatenates both the strings and shows the result as a concatenated string.
Thus Letsfindcourse30 would be correct.
Ans : D
Explanation: JavaScript supports one ternary operator, the conditional operator ?:, which
combines three expressions into a single expression. If else case can be replaced by the
conditional operator
5 CSS MCQ
-Siddhesh Shelar
14. What are the three important manipulations done in a for loop on a
loop variable in javascript?
A. the initialization, the Incrementation, and update
B. the initialization, the test, and the update
C. the initialization, the test, and Incrementation
D. All of the above
Ans : B
Explanation: In a for loop, the initialization, the test, and the update are the three crucial
manipulations of a loop variable. Firstly the loop initialiases the variable then test the condition
and then after executing the statement increments its value.
Ans : B
Explanation:The subset does not include the comma operator, the bitwise operators, or the ++ and
— operators. It also disallows == and != because of the type conversion they perform, requiring
use of === and !== instead.
Ans : B
6 CSS MCQ
-Siddhesh Shelar
Ans : D
Ans : C
Explanation: Javascript is single-threaded. To clarify better, this means that one single thread
handles the event loop. For older browsers, the whole browser shared one single thread between
all the tabs.
Ans : B
7 CSS MCQ
-Siddhesh Shelar
Ans : B
Ans : D
Ans : D
8 CSS MCQ
-Siddhesh Shelar
Ans : C
Ans : C
9 CSS MCQ
-Siddhesh Shelar
Ans : B
Ans : A
Ans : B
Explanation:Screen objects are used to read the information from the client's screen. The
properties of screen objects are -
1. AvailHeight
2. AvailWidth
3. ColorDepth
4. Width
5. Height
10 CSS MCQ
-Siddhesh Shelar
28. Javascript string using double quotes is exactly the same as a string
using single quotes?
A. True
B. False
Ans : A
A. Error in Script
B. '20'30
C. 2030
D. 50
Ans : D
Explanation: No explanation.
Ans : C
11 CSS MCQ
-Siddhesh Shelar
Ans : D
Ans : C
Ans : D
Explanation: document.write(a--); will print 1 and after than it will decrement the variable a value
to 0 , next line document.write(a); will print 0.
12 CSS MCQ
-Siddhesh Shelar
Ans : C
Ans : B
Ans : A
13 CSS MCQ
-Siddhesh Shelar
37. Which of the following method checks if its argument is not a number?
A. isNaN()
B. nonNaN()
C. NaN()
D. None of the above
Ans : A
Ans : C
Explanation: JavaScript's parseInt function is all about converting a string to an integer. The
function takes a string value as an argument and converts it to a numerical value with no decimal
places, or alternatively the value NaN.
A. Throws Error
B. object
C. Displays Nothing
D. Current Date
Ans : B
Explanation: The typeof is an operator keyword which is used to get a type at the compile-time.
Or in other words, this operator is used to get the System.Type object for a type.
14 CSS MCQ
-Siddhesh Shelar
< script>
var a = 10;
if(a == a++)
document.write(a);
A. Error
B. Nothing is printed
C. 10
D. 11
Ans : D
Ans : A
Explanation:No explanation.
Ans : C
15 CSS MCQ
-Siddhesh Shelar
43. If para1 is the DOM object for a paragraph, what is the correct syntax
to change the text within the paragraph?
A. para1="New Text"
B. para1.value="New Text";
C. para1.firstChild.nodeValue= "New Text";
D. para1.nodeValue="New Text";
Ans : B
Explanation: the correct syntax to change the text within the paragraph is "para1.value="New
Text";"
Ans : B
45. The _______ method of an Array object adds and/or removes elements
from an array.
A. Reverse
B. Shift
C. Slice
D. Splice
Ans : D
Explanation:The splice() method returns the removed item(s) in an array and slice() method
returns the selected element(s) in an array, as a new array object
16 CSS MCQ
-Siddhesh Shelar
Ans : A
Ans : A
Explanation: Const keyword fixes the value of the variable. Const keyword can not be redefined.
Therefore attempts to alter the value or re-declaration causes errors.
Ans : D
Explanation: The async attribute is a boolean attribute. When present, it specifies that the script
will be executed asynchronously as soon as it is available. The async attribute optionally accepts
a boolean value and by default holds the value true.
17 CSS MCQ
-Siddhesh Shelar
49. What is the purpose of the Attr object in the HTML DOM?
A. Used to focus on a particular part of the HTML page
B. HTML Attribute
C. Used to arrange elements
D. None of the mentioned
Ans : B
Explanation: In the HTML DOM, the Attr object represents an HTML attribute.
Ans : C
Explanation:The SIGINT is a POSIX signal that generates event. A simple code like below can
do a proper clean up and exit on CTRL-C or SIGINT passed from command line / other
application to the nodejs app’s ProcessID.
Ans : B
Ans : A
53. Which is the handler method used to invoke when uncaught JavaScript
exceptions occur?
A. Onhalt
B. Onerror
C. Both onhalt and onerror
D. Onsuspend
Ans : B
Explanation: The onerror handler method can be registered to be invoked when uncaught
JavaScript exceptions occur. The onerror event is triggered if an error occurs while loading an
external file .
Ans : A
Explanation:Array is defined with a null value when no value is mentioned. If you omit a value
from an array literal, the omitted element is given an undefined value.
Ans : C
Explanation:The SIGINT is a POSIX signal that generates event. A simple code like below can
do a proper clean up and exit on CTRL-C or SIGINT passed from command line / other
application to the nodejs app’s ProcessID.
19 CSS MCQ
-Siddhesh Shelar
56. What does the interpreter do when you reference variables in other
scopes?
A. Traverses the queue
B. Traverses the stack
C. Finds the bugs
D. Traverse the array
Ans : B
Explanation:The interpreter executes the javascript code. Normally when you reference variables
in other scopes at the global level, in other namespaces, and so on—the interpreter needs to
traverse the stack to get to the variable.
Ans : C
Explanation: In order to implement lexical scoping, the internal state of a JavaScript function
object must include not only the code of the function but also a reference to the current scope
chain.
Explanation: The canvas element is not supported by IE before IE9, but it can be reasonably well
emulated in IE6, 7, and 8. It is supported from version 4 in chrome and 2 in firefox.
20 CSS MCQ
-Siddhesh Shelar
Ans : C
Explanation: Plot() is a generic function, meaning, it has many methods which are called
according to the type of object passed to plot() . The method plot() accepts a total of 9
parameters.
Ans : C
Explanation:The script loading loads remote JavaScript files programmatically and allow us to
trick the rendering engine. The async attribute is a boolean attribute. When present, it specifies
that the script will be executed asynchronously as soon as it is available.
Ans : A
Explanation:Javascript files can be saved by .js extension and can be included in HTML files.
Script tags are used with the src attribute to include Js files. explanation.
21 CSS MCQ
-Siddhesh Shelar
Ans : A
Explanation:Superclass is the class from which subclasses are defined. Subclasses are also called
the extension of the superclass. In the above scenario, there will be a superclass and B is collas.
Ans : C
Explanation: Like setTimeout(), setInterval() returns a value that can be passed to clearInterval()
to cancel any future invocations of the scheduled function. The ID value returned by setInterval()
is used as the parameter for the clearInterval() method.
64. The pop() method of the array does which of the following task ?
A. decrements the total length by 1
B. increments the total length by 1
C. prints the first element but no effect on the length
D. updates the element
Ans : A
Explanation: pop() function pops out that is delete the last element from the array. Hence pop()
method (it works with push()) reduces the length of an array by 1.
22 CSS MCQ
-Siddhesh Shelar
65. What will be the return value of the write() method when the Node
cannot write the data immediately and has to buffer it internally?
A. 0
B. 1
C. True
D. False
Ans : D
Explanation:The write() method writes HTML expressions or JavaScript code to a document. The
write() method is mostly used for testing: If it is used after an HTML document is fully loaded, it
will delete all existing HTML. write() method never blocks. If Node cannot write the data
immediately and has to buffer it internally, the write() method returns false.
Ans : C
Explanation:window.location.href returns the href (URL) of the current page. If you reference
document.location from within an object, the interpreter will need to go from the function that
references the variable, up out of the namespace to the global window scope, down to the
document scope, and get the location value.
Ans : C
Explanation: A combination of a function object and a scope (a set of variable bindings) in which
the function’s variables are resolved is called a closure.
23 CSS MCQ
-Siddhesh Shelar
68. Which is the method invoked to connect the last vertex back to the
first?
A. closePath()
B. close()
C. connectlast(first)
D. connect()
Ans : A
Explanation: The closePath() method connects the last vertex back to the first, thereby creating a
path. It connects the last point to the first point thereby creating a closed figure.
Ans : B
Explanation:A bubble plot is a scatterplot where a third dimension is added: the value of an
additional variable is represented through the size of the dots. They are used to represent three-
dimensional data.
Ans : C
***BEST OF LUCK***
24 CSS MCQ