0 of 45 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 45 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Which of the following is not JavaScript Data Types?
Inside which HTML element do we put the JavaScript?
Which of the following is correct about the features of JavaScript?
Which of the following is the correct syntax to display ” AsianTechnologyHub ” in an alert box using JavaScript?
Choose the client-side JavaScript object:
What is mean by “this” keyword in javascript?
What is the correct syntax for referring to an external script called “ATH.js”?
Among the following, which one is a ternary operator in JavaScript?
What are the three important manipulations done in a for loop on a loop variable in javascript?
What does javascript use instead of == and !=?
The method or operator used to identify the array is
What is the correct way to write a JavaScript array?
Consider the following code snippet:
If ( ! a [i]) continue ; |
What is the observation made?
<script>
document.write(navigator.appCodeName);
</script>
The function definitions in javaScript begin with
<script language=”javascript”>
function x()
{
document.write(2+5+”8″);
}
</script>
The syntax of capture events method for document object is ______________
The syntax of close method for document object is ______________
The JavaScript exception is available to the Java code as an instance of __________
Which types of image maps can be used with JavaScript?
Which of the following navigator object properties is the same in both Netscape and IE?
The function with no return value is called
For the below-mentioned code snippet:
Var o = new Object(); |
The equivalent Statement is:
What is closure?
The type of a variable that is volatile is _______________
Which of the following are the errors in JavaScript?
How do we define the term Thread?
Find output of below code
var a = ’20’;
var b = a = 30;
document.write(a+b);
What is divide by 0 in Javascript?
var a = 10;
var b = 0;
document.write(a/b);
How — works in Javascript? Find output of below Javascript code.
var a = 1;
document.write(a–);
document.write(a);
Which of the following method checks if its argument is not a number?
Syntax for creating a RegExp object:
Which of the above mentioned syntax will correct?
The syntax of Eval is ________________
Consider the following code snippet
const pi=3.14;
var pi=4;
console.log(pi);
What will be the output for the above code snippet?
Consider the code snippet given below
var count = [1,,3];
What is the observation made?
Find the output of below Javascript
<script>
re=/s/;
target=”1 2 3 4 5″;
result = target.split(re);
document.write(result.length + ” & “);
var temp=0;
for(i=0;i<result.length;i++) {
temp+=parseInt(result[i]);
}
document.write(temp);
</script>
</script>
Find the output of below code
<script>
re=/[-]/;
target=”254-96-9163″;
result = target.split(re);
document.write(result[0] + result[1]);
</script>
What will be the output of the following JavaScript code?
const obj1 =
{
a: 10,
b: 15,
c: 18
};
const obj2 = Object.assign({c: 7, d: 1}, obj1);
console.log(obj2.c, obj2.d);
What will be the output of the following JavaScript code?
function person()
{
this.name = ‘rahul’;
}
function obj()
{
obj.call(this)
}
obj.prototype = Object.create(person.prototype);
const app = new obj();
console.log(app.name);
What will be the last statement return in the following JavaScript code?
function constfuncs()
{
var funcs = [];
for(var i = 0; i < 10; i++)
funcs[i] = function() { return i; };
return funcs;
}
var funcs = constfuncs();
funcs[5]()
What will be the output of the following JavaScript code?
<p id=”demo”></p>
<script>
function myFunction()
{
var res = “”;
res = res + Number.isFinite(0 / 0);
document.getElementById(“demo”).innerHTML = res;
}
</script>
What will be the output of the following JavaScript code(javascript subsets)?
var set = new Set();
set.add(“one”);
set.add(“two”);
for (let elements of set)
{
document.writeln(elements+” “);
}
Predict the output of the following JavaScript code.
<script type=”text/javascript” language=”javascript”>
var x=5;
var y=6;
var res=eval(“x*y”);
document.write(res);
</script>
Which method receives the return value of setInterval() to cancel future invocations?
What does the interpreter do when you reference variables in other scopes?