1. Question: What will render output for the following JavaScript code:
    var a=34;
    var b=0
    document.write(a/b)

    A
    NaN

    B
    Infinity

    C
    0

    D
    Undefined

    Note: Not available
    1. Report
  2. Question: What will produce output for the following JavaScript code:
    <script>
    var x="10">3
    document.write(x);
    </script>

    A
    null

    B
    true

    C
    false

    D
    syntax error

    Note: Not available
    1. Report
  3. Question: What will produce for the following JavaScript code
    var alpha="apples";
     var beta="Apples";
     var output=alpha>beta;
     document.write(output);

    A
    true

    B
    false

    C
    null

    D
    0

    Note: Not available
    1. Report
  4. Question: What will produce output for the following JavaScript code
    var alpha=(15<20) && ("pen">"Sword");
     var beta=("big">"tall") && (20<30); 
     document.write(alpha+","+beta);

    A
    true,false

    B
    false,true

    C
    true,true

    D
    false,false

    Note: Not available
    1. Report
  5. Question: What will be output of the following code?
    var a=30*5+7;
    document.write(a);

    A
    360

    B
    157

    C
    3057

    D
    1507

    Note: Not available
    1. Report
  6. Question: What is the output for the following code?
    let x=0/0;
    let y=0/4;
    let z=2/0;
    document.write(x+","+y+","+z);

    A
    infinity,0,infinity

    B
    NaN,infinity,infinity

    C
    NaN,0,infinity

    D
    0,0,0

    Note: Not available
    1. Report
  7. Question: What is the output of the following code?
    <script>
     var a=4;
     document.write(a++);
     document.write(++a);
     document.write(a--);
     document.write(--a);
    </script>

    A
    4654

    B
    4664

    C
    5664

    D
    4654

    Note: Not available
    1. Report
  8. Question: What is the output of the following code?
    let a=2;
       let b=3;
       document.write(a**b);
    New

    A
    3

    B
    5

    C
    6

    D
    8

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