386). What is the code snippet to go back to a history twice?

[A]history(2);
[B]history(-2);
[C]history.go(-2);
[D]history.go(2);

Show Answer

387). If the window has child windows, how will the browsing histories be affected?

[A]Numerically interleaved
[B]Chronologically interleaved
[C]Both Numerically and Chronologically interleaved
[D]Numerically or Chronologically interleaved

Show Answer

388). The length property belongs to which of the following objects?

[A]Window
[B]Element
[C]History
[D]Document

Show Answer

389). What is the datatype of the go() method’s parameter?

[A]String
[B]Integer
[C]Double
[D]Float

Show Answer

390). What is the special feature of modern web applications?

[A]Can alter contents without loading document
[B]Must load the document to manipulate
[C] Remains static
[D]Can’t be altered at all

Show Answer

391). The navigator property belongs to which of the following object?

[A]Document
[B]Window
[C]Navigator
[D]Location

Show Answer

392). What is the vendor-neutral synonym for navigator?

[A]staticData
[B]purposeInformation
[C]dataInformation
[D]clientInformation

Show Answer

393). Which is the preferred testing nowadays for scripting?

[A]Software testing
[B]Feature testing
[C]Blackbox testing
[D]Whitebox testing

Show Answer

394). Which of the below properties can be used for browser sniffing?

[A]platform
[B]appVersion
[C]both platform and appVersion
[D]appName

Show Answer

395). Where is the information of the userAgent property located?

[A]appId
[B]appName
[C]platform
[D]appVersion

Show Answer

396). What will be the output of the following JavaScript code?
function myFunction() 
{
    document.getElementById("demo").innerHTML = Boolean(10 > 9);
}

[A]true
[B]false
[C]error
[D]0

Show Answer

397). What will be the output of the following JavaScript code?
var b5 = Boolean('false');
document.getElementById("demo").innerHTML =b5;

[A]False
[B]True
[C]Error
[D]Undefined

Show Answer

398). What will be the output of the following JavaScript code?
function myFunction() 
{
  var x = "";
  document.getElementById("demo").innerHTML = Boolean(x);
}

[A]true
[B]false
[C]0
[D]1

Show Answer

399). What will be the output of the following JavaScript code?
function myFunction() 
{
   var x = 10 / "H";
   document.getElementById("demo").innerHTML = Boolean(x);
}

[A]True
[B]False
[C]Error
[D]Undefined

Show Answer

400). What will be the output of the following JavaScript code?
function myFunction() 
{
   var x = null;
   document.getElementById("demo").innerHTML = Boolean(x);
}

[A]True
[B]False
[C]Error
[D]Undefined

Show Answer