Correct Answer : Brendan Eich
Correct Answer : December 4, 1995
Correct Answer : <script>
Correct Answer : All of The above
Correct Answer : <script src="xxx.js"></script>
Correct Answer : //This is a comment
Correct Answer : /* This comment has more than one line */
alert("Hello World");
msg("Hello World");
msgBox("Hello World");
alertBox("Hello World");
Correct Answer : alert("Hello World");
Correct Answer : JavaScript
Correct Answer : ECMAScript
Correct Answer : Navigator
Correct Answer : program
Correct Answer : File
Correct Answer : FileUpload
Correct Answer : new Date(1991, 0, 7);
#demo.innerHTML = "Hello World!";
document.getElementByName("p").innerHTML = "Hello World!";
document.getElement("p").innerHTML = "Hello World!";
document.getElementById("demo").innerHTML = "Hello World!";
Correct Answer : document.getElementById("demo").innerHTML = "Hello World!";
System.out.println(“Hello World”)
print(“Hello World”)
document.write(“Hello World”)
response.write(“Hello World”)
Correct Answer : document.write(“Hello World”)
Correct Answer : =
Correct Answer : function myFunction()
Correct Answer : var carName;
Correct Answer : if (i == 5)
Correct Answer : if (i != 5)
Correct Answer : while (i <= 10)
Correct Answer : for (i = 0; i <= 5; i++)
Correct Answer : var myArray = [];
Correct Answer : arr[arr.length] = value
Correct Answer : myArr[0];
var txt = new Array(1:"abc",2:"efg",3:"xyz")
var txt = new Array:1=(" abc ")2=("efg")3=("xyz")
var txt = new Array("abc","efg","xyz")
var txt = new Array=" abc ","efg","xyz"
Correct Answer : var txt = new Array("abc","efg","xyz")
Correct Answer : onclick
Correct Answer : Defaultstatus
Correct Answer : visibilty
Correct Answer : character
Correct Answer : onblur
Correct Answer : new Date(seconds)
ftl = window.open("http://www.freetimelearning.com");
ftl = window.new("http://www.freetimelearning.com");
ftl = window.targer("http://www.freetimelearning.com");
ftl = new.window("http://www.freetimelearning.com");
Correct Answer : ftl = window.open("http://www.freetimelearning.com");
window.captureEvents(Event.CLICK);
window.routeEvents(Event.CLICK );
window.handleEvents (Event.CLICK)
window.raiseEvents(Event.CLICK );
Correct Answer : window.captureEvents(Event.CLICK);
Correct Answer : Math.round(7.25)
Correct Answer : Any of these
Correct Answer : The syntax of JavaScript is loosely based on Java syntax
Correct Answer : Math.max(x, y)
Correct Answer : number in JavaScript, derived by dividing negative number by zero
Correct Answer : To terminate a switch statement, loop, or labeled block.
Correct Answer : “123”
Correct Answer : if (x ==== 1) { }
Correct Answer : type(x);
function first() { window.a = 3; } function second() { alert(a); }​
Correct Answer : 3
Correct Answer : JavaScript's syntax is loosely based on Java's
Correct Answer : All of these work
Correct Answer : The User's machine running a Web browser
Correct Answer : “string”
Correct Answer : Value
Correct Answer : LiveWire
Correct Answer : Storing numbers, dates, or other values
Correct Answer : boolean
Correct Answer : &
Correct Answer : Client-side
Correct Answer : Storing the form's contents to a database file on the server
<LANGUAGE="JavaScriptVersion">
<SCRIPT LANGUAGE="JavaScriptVersion">
<SCRIPT LANGUAGE="JavaScriptVersion"> JavaScript statements…</SCRIPT>
Correct Answer : <SCRIPT LANGUAGE="JavaScriptVersion"> JavaScript statements…</SCRIPT>
Correct Answer : “B”
<script href=" abc.js">
<script name=" abc.js">
<script src=" abc.js">
Correct Answer : <script src=" abc.js">
Correct Answer : double
Correct Answer : Client-side image maps
Correct Answer : if (x === 5) { … }
Correct Answer : navigator.appCodeName
<noscript>
Correct Answer : Enclose text to be displayed by non-JavaScript browsers.
Correct Answer : Ampersand, semicolon
Correct Answer : an object-oriented scripting language.
Correct Answer : var x = new myConstructor();
Correct Answer : FileUpLoad
Correct Answer : myObj.foo
Correct Answer : ===
Correct Answer : this
Correct Answer : A !== B && B !== C && A !== C
Correct Answer : Deal with logic that should execute only when a condition is true
Correct Answer : [objectName.]eval(string)
Correct Answer : if (conditional expression is true) {then execute this code>->}
Correct Answer : function fName() { }
Correct Answer : user_pref("javascript.classic.error_alerts", true);
Correct Answer : for (var i=0; i < myArray.length; i++)
What is output ?
<script language="javascript"> function x() { document.write(2+5+"8"); } </script>
Correct Answer : 78
Correct Answer : [2,3,4,5]
Correct Answer : The == operator converts both operands to the same type, whereas === returns false for different types.
Correct Answer : var x = [“blank”,”blank”,”blank”];
Correct Answer : function_expression ( arguments_if_any )
Correct Answer : obj[“age”] = 25 OR obj.age = 25
Correct Answer : var anon = function() { };
Correct Answer : [“X”, “A”, “B”, “C”, “D”, “Y”]
Correct Answer : var x = y === true ? “true” : “false”;
Correct Answer : “x”.concat(“foo”)
Correct Answer : Block declarations and object literals
Correct Answer : JSON.fromString
Explanation : while (i <= 10) is the correct statement of WHILE loop start.
<p id="demo"></p> <script> var x = 123e5; document.getElementById("demo").innerHTML = x ; </script>
Correct Answer : 12300
<p id="demo"></p> <script> function myFunction() { var res = ""; res = res + Number.isInteger('123'); document.getElementById("demo").innerHTML = res; } </script>
Correct Answer : False
<p id="demo"></p> <script> function myFunction() { var res = ""; res = res + Number.isInteger(0.5) + ": 0.5<br>"; document.getElementById("demo").innerHTML = res; } </script>
function oddsums(n) { let total = 0, result=[]; for(let x = 1; x <= n; x++) { let odd = 2*x-1; total += odd; result.push(total); } return result; }
Correct Answer : Returns [1,4,9,16,25]
console.log(p)
Correct Answer : Reference Error
let x=x+1; console.log(x);
Correct Answer : NaN
Correct Answer : _iterator_()
<p id="demo"></p> <script> function myFunction() { var res = ""; res=res + Number.isSafeInteger(Math.pow(2, 53)-1)+": 2<sup>53</sup>-1<br>"; document.getElementById("demo").innerHTML = res; } </script>
Correct Answer : True
<p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = Number.MAX_VALUE; } </script>
Correct Answer : 1.7976931348623157e+308
<p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = Number.NEGATIVE_INFINITY; } </script>
Correct Answer : -infinity
<p id="demo"></p> <script> function myFunction() { var num = 5.56789; var n = num.toExponential(); document.getElementById("demo").innerHTML = n; } </script>
Correct Answer : 5.56789e+0
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); } }
Correct Answer : Prints the numbers in the array in order
while (a != 0){ if (a == 1) continue; else a++; }
Correct Answer : The continue keyword skips the rest of the statements in that iteration
function range(int length){ int a=5; for(int i=0;i<length;i++) { console.log(a); } } range(3);
Correct Answer : 555
var a = 10; do { a += 1; console.log(a); } while (a < 5);
Correct Answer : 11
var grand_Total=eval("10*10+5");
Correct Answer : 105 as an integer value
var tensquared = (function(x) {return x*x;}(10));
Correct Answer : Yes, perfectly
function tail(o) { for (; o.next; o = o.next) ; return o; }
Correct Answer : Yes, this will work
Correct Answer : That property will not be enumerated
var o = new Object();​
Correct Answer : var o= new Object;
function constfuncs() { var funcs = []; for(var i = 0; i < 10; i++) funcs[i] = function() { return i; }; return funcs; } var funcs = constfuncs(); funcs[5]()
Correct Answer : 10
var arr = [7, 5, 9, 1]; var min = Math.min.apply(null, arr); document.writeln(min);
Correct Answer : 1
var a= 0; var b = 0; while (a < 3) { a++; b += a; console.log(b); }
Correct Answer : 135
var a=3.7; var b=2; a=ciel(a) document.writeIn(a*b);
Correct Answer : 8
Correct Answer : Complex.prototype.conj = function() { return new Complex(this.r, -this.i); };
let succ = function(x) x+1, yes = function() true, no = function() false;
Correct Answer : Functional behaviour
var text = "testing: 1, 2, 3"; var pattern = /\d+/g;
Correct Answer : pattern.test(text)
Correct Answer : Match zero or more characters that are not open parenthesis
var pattern = /Java/g; var text = "JavaScript is more fun than Java!"; var result; while ((result = pattern.exec(text)) != null) { alert("Matched '" + result[0] + "'" +" at position " + result.index +"; next search begins at " + pattern.lastIndex); }
Correct Answer : Returns the same kind of array whether or not the regular expression has the global g flag
System.out.println(Pattern.matches("\\d", "1"));
Correct Answer : let trimmed = (l.trim() for (l in lines));
Correct Answer : 1020
<p id="demo"></p> <script> var x = 9.656; document.getElementById("demo").innerHTML = x.toFixed(0) </script>
<p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = Math.trunc(8.76); } </script>
Correct Answer : 8.00
<p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = Math.LN10; } </script>
Correct Answer : 2.30
<p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = Math.acosh(2); } </script>
Correct Answer : 1.31
function emp(name,salary){ this.name=name; this.salary=salary; this.changeSalary=changeSalary; function changeSalary(otherSalary) { this.salary=otherSalary; } } e=new emp("FTL",30000); e.changeSalary(45000); document.write("e.name+" "+e.salary);
Correct Answer : FTL 45000
const obj = { 10: 'arry', 21: 'barry', 23: 'carry' }; console.log(Object.entries(obj)[2]);
Correct Answer : [“23”,”carry”]
document.writeln("<br/>navigator.appCodeName: "+navigator.appCodeName);
Correct Answer : Browser name
document.writeln("<br/>navigator.language: "+navigator.language);
Correct Answer : Browser version
Correct Answer : s.on(“end”,f);
Correct Answer : addListener()
<p id="demo">Free Time Learning</p> <script> function myFunction() { var text = document.getElementById("demo").innerHTML; document.getElementById("demo").innerHTML = text.toUpperCase(); } </script>
Correct Answer : FREE TIME LEARNING
<p id="demo"></p> <script> Var arr = ["one", "two", "three",]; arr.shift(); document.getElementById("demo").innerHTML = arr; </script>
Correct Answer : two three
Correct Answer : Framework
Correct Answer : Both jQuery and Prototype
Correct Answer : setTimeout()
Correct Answer : clearInterval()
function getcube(){ var number=document.getElementById("number").value; alert(number*number*number); } <form> Enter No:<input type="text" id="number" value="3" name="number"/><br/> <input type="button" value="ok" onclick="getcube()"/> </form>
Correct Answer : 27
Correct Answer : They are all browsing contexts
Correct Answer : Window.open()
Correct Answer : focusin and focusout
Correct Answer : dataTransfer
Correct Answer : Ajax
Correct Answer : Comet
Correct Answer : request.open(“GET”,”data.csv”);
Correct Answer : Unobtrusive JavaScript
Correct Answer : Graphics APIs
Correct Answer : Fetching data
<script> if (window.attachEvent) window.attachEvent('onload', fetch); else window.addEventListener('load', fetch, false); </script>
Correct Answer : Event and EventListener is created according to the if-else
Correct Answer : img
Correct Answer : After window.onload event
Correct Answer : Document begins to load
Correct Answer : location.reload
Correct Answer : no predefined function for data validation