Home / Programming Questions / Page 1

Prgramming MCQs Feed | Page - 1

C

Chandani • 9.65K Points
Tutor III

(A) Null type
(B) Undefined type
(C) Number type
(D) All of the mentioned

C

Chandani • 9.65K Points
Tutor III

Code:
var js = (function(x) {return x*x;}(10));
(A) Exception will be thrown
(B) Memory leak
(C) Error
(D) Yes, perfectly

C

Chandani • 9.65K Points
Tutor III

Code:
// JavaScript Equalto Operators
function equalto()
{
    let num=10;
    if(num==="10")
        return true;
    else
        return false;
}
(A) false
(B) true
(C) compilation error
(D) runtime error

C

Chandani • 9.65K Points
Tutor III

Code:
// JavaScript Comparison Operators
function compare()
{
    let a=2;
    let b=2.0;
    if(a==b)
        return true;
    else
        return false;
}
(A) false
(B) true
(C) compilation error
(D) runtime error

C

Chandani • 9.65K Points
Tutor III

(A) It is an ordered list of values
(B) It is an ordered list of objects
(C) It is an ordered list of string
(D) It is an ordered list of functions

C

Chandani • 9.65K Points
Tutor III

Code:
<p id="demo"></p>
<script>
var js = 10;
js *= 5;
document.getElementById("demo").innerHTML = js;
</script>
(A) 10
(B) 50
(C) 5
(D) Error

C

Chandani • 9.65K Points
Tutor III

Code:
<p id="demo"></p>
var txt1 = "mcqbuddy_";
var txt2 = "Javascriptmcq";
document.getElementById("demo").innerHTML = txt1 + txt2;
(A) error
(B) mcqbuddy_ Javascriptmcq
(C) undefined
(D) mcqbuddy_Javascriptmcq

C

Chandani • 9.65K Points
Tutor III

(A) JavaScript is a function that is enclosed with references to its inner function scope
(B) JavaScript is a function that is enclosed with references to its lexical environment
(C) JavaScript is a function that is enclosed with the object to its inner function scope
(D) None of the mentioned