Home / Programming Questions / Page 1

Prgramming MCQs Feed | Page - 1

M

Manisha Agrawal • 9.32K Points
Tutor III

(A) Java vacuum machine
(B) Java void machine
(C) Java Virtual machine
(D) Java Virtual model

S

Sandeep • 6.47K Points
Tutor III

(A) Boolean
(B) Char
(C) Float
(D) Final

C

Chandani • 9.73K Points
Tutor III

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

C

Chandani • 9.73K 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.73K 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.73K 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.73K 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.73K 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