The interpreter stops its work
The interpreter throws another exception
The interpreter jumps to the nearest enclosing exception handler
The interpreter throws an error
C. The interpreter jumps to the nearest enclosing exception handler
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
if (!a[i]) continue;
Skips the defined elements
Skips the existent elements
Skips the null elements
Skips the defined & existent elements
continue statement
break statement
goto statement
return statement
Controlled loop constructs
Case checking constructs
Validation constructs
All of the mentioned
<script>
var x = 10;
x *= 5;
document.getElementById("demo").innerHTML = x;
</script>
5
10
50
Error
Int a=1;
if(a>10)
{
document.write(10);
}
else
{
document.write(a);
}
10
0
1
Undefined
var count = [1,,3];
The omitted value takes undefined
This results in an error
This results in an exception
The omitted value takes an integer value
+
:
^
?:
Primary Expression
Object Creation Expression
Invocation Expression
Constructor Calling Expression
int a=1;
if(a!=null)
return 1;
else
return 0;
1
0
runtime error
compiler error
The property will be stored in a cache
The loop will not run
That property will not be enumerated
The property will be enumerated
function printArray(a)
{
var len = a.length, i = 0;
if (len == 0)
console.log(Empty Array);
else
{
do
{
console.log(a[i]);
} while (++i < len);
}
}
Prints the numbers in the array in order
Prints the numbers in the array in the reverse order
Prints 0 to the length of the array
Prints Empty Array
var string2Num=parseInt(123xyz);
123
123xyz
Exception
NaN
Object-Oriented
High-level
Assembly-language
Object-Based
function concatenate()
{
return String.prototype.concat('', arguments);
}
function concatenate()
{
return String.prototype.apply('', arguments);
}
function concatenate()
{
return String.concat.apply('', arguments);
}
function concatenate()
{
return String.prototype.concat.apply('', arguments);
}
var tensquared = (function(x) {return x*x;}(10));
Yes, perfectly
Error
Exception will be thrown
Memory leak
function tail(o)
{
for (; o.next; o = o.next) ;
return o;
}
No, this will throw an exception as only numerics can be used in a for loop
No, this will not iterate
Yes, this will work
No, this will result in a runtime error with the message Cannot use Linked List
Floating numbers
Representation of functions that returns a value
is not present in JavaScript
Form feed
isPrototypeOf() method
equals() method
=== operator
==opertor
Before each iteration, the interpreter evaluates the variable expression and assigns the name of the property
The iterations can be infinite when an interpreter is used
The body of the loop is executed only once
the iteration is finite when an interpreter is used
If the object inherits enumerable properties
The object does not have the properties present in the integer array indices
The delete keyword is never used
Object.defineProperty() is not used
for(var num=10;num>=1;num--)
{
document.writeln(num);
}
var num=10;
while(num>=1)
{
document.writeln(num);
num++;
}
Code 1
Code 2
Both Code 1 and Code 2
Cannot Compare
int a=4;
int b=1;
int c=0;
If(a==b)
document.write(a);
else if(a==c)
document.write(a);
else
document.write(c);
4
1
Error
0
Ignores the statement
Prompts to complete the statement
Throws an error
Shows a warning
var values=[1,2,3,4]
var ans=values.slice(1);
document.writeln(ans);
1, 2, 3, 4
2, 3, 4
1, 3, 4
error
The property will be stored in a cache
The loop will not run
That property will not be enumerated
The property will be enumerated
debugger
with
if
use strict
o(x,y);
o.m(x) && o.m(y);
m(x,y);
o.m(x,y);
125
25
5
Error
var a1 = [,,,];
var a2 = new Array(3);
0 in a1
0 in a2
true false
false true
true true
false true