276). Rhino is originated by _______

[A]Microsoft
[B]Mozilla
[C]Apple
[D]Chrome

Show Answer

277). Which of the following are global functions that are not part of core JavaScript?

[A]spawn(f);
[B]trim();
[C]exult();
[D] eval()

Show Answer

278). Which of the following reads the textual contents of a URL and returns as a string?

[A] spawn(f);
[B] load(filename,…);
[C] readFile(file);
[D]readUrl(url);

Show Answer

280). Which is a useful way to try out small and simple Rhino programs and one-liners?

[A]Starting an interactive shell
[B]Starting a one to one shell
[C]Creating a thread to do simple programs
[D]Starting a multiple shell

Show Answer

281). Which is a more formal way of importing packages and classes as JavaScript objects?

[A] import(java.util.*);
[B]importClass(java.util.*);
[C]import.Class(java.util.*);
[D]Class.import(java.util.*);

Show Answer

282). What will be the output of the following JavaScript code?
var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader

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

Show Answer

283). What does Rhino do when the getter and setter methods exist?
var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader

[A]It becomes JavaScript properties
[B]Java classes are used to avoid them
[C]Java classes & JavaScript properties
[D]It act as javascript function

Show Answer

284). The JavaScript classes can be instantiated using _____ operator.
var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader

[A]create
[B]new
[C]instantiate
[D]create.new

Show Answer

285). The new Java arrays can be created into JavaScript programs using which of the following classes?
var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader

[A]java.Array
[B] java.lang.*
[C] java.lang.Array
[D]java.lang.reflect.Array

Show Answer

286). What will be the output of the following JavaScript code?

[A]1
[B]0
[C]1.6
[D]0.5

Show Answer

287). What will be the output of the following JavaScript code?

[A] -4.5
[B]4.5
[C]0
[D]Error

Show Answer

288). What will be the output of the following JavaScript code?

[A]0
[B]-8
[C]-200
[D]20

Show Answer

289). What will be the output of the following JavaScript code?

[A]4.5
[B]4
[C]4.7
[D]5

Show Answer

290). What will be the output of the following JavaScript code?

[A]6
[B]7
[C]49
[D]Error

Show Answer