1. Question: What is the value of gamma according to following expression?
    var alpha=20, beta=30;
    alpha==beta?gamma=56:gamma=57;

    A
    0

    B
    56

    C
    57

    D
    113

    Note: Not available
    1. Report
  2. Question: Which of the following is the key assignment operator?

    A
    =

    B
    >

    C
    <

    D
    ||

    Note: Not available
    1. Report
  3. Question: In Javascript a variable or function name can begins with ASCII letters, what do mean by ASCII ?

    A
    American Standard Code for Information Interchange.

    B
    American Standard Code In Information.

    C
    American Standard Code for Interchange Information.

    D
    American Standards Code for Information Interchange.

    Note: Not available
    1. Report
  4. Question: What value will the following expression return? 100/0=?

    A
    100

    B
    0

    C
    Infinity

    D
    NaN

    Note: Not available
    1. Report
  5. Question: What is the output of the following in JavaScript?
    var input="12.51km";
    length=parseFloat(input);
    document.write(length);

    A
    12.51km

    B
    12km

    C
    12.51

    D
    12

    Note: Not available
    1. Report
  6. Question: What is the output of the following in JavaScript?
    var Lit=["yes","no","maybe"];
    document.write(Lit[2]);

    A
    no

    B
    maybe

    C
    NaN

    D
    undefined

    Note: Not available
    1. Report
  7. Question: What is the output of the following in JavaScript?
    var a=7;
    a+=12;
    a-=4;
    a*=5;
    a/=3;
    a%=2;
    document.write(a);

    A
    75

    B
    12.5

    C
    0

    D
    1

    Note: Not available
    1. Report
  8. Question: What is the output of the following JavaScript code?
    var name="My name is Emran!";
    document.write(name.length);

    A
    14

    B
    13

    C
    17

    D
    19

    Note: Not available
    1. Report
  9. Question: What will be the output for the following codes in JavaScript?
    var a=5;
    var b=6;
    var c=(a<b);
    var d="Print "+(c*25)+" dollars";
    alert(d);

    A
    Print 25 dollars

    B
    Print 125 dollars

    C
    Print 0 dollars

    D
    Print 150 dollars

    Note: Evaluate c=(a<b) as c=5<6 or c=true or c=1 Therefore, c*25 = 1*25 = 25
    1. Report
  10. Question: The 'function' keyword is optional in JavaScript.

    A
    True

    B
    False

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd