1. Question: What will be the output for the following javascript code fragment:
    <script>
    var currentWord="75";
    var currentNumber=75;
    var outcome=(currentWord==currentNumber);
    document.write(outcome);
    </script>

    A
    true

    B
    false

    C
    75

    D
    150

    Note: Not available
    1. Report
  2. Question: What will produce the following javascript code fragments:
    <script>
    var posNum=30;
    var negNum=-posNum
    var outcome=Math.abs(negNum);
    document.write(outcome);
    </script>

    A
    30

    B
    -30

    C
    true

    D
    syntax error

    Note: Not available
    1. Report
  3. Question: What will produce for the following javascript code:
    <script>
    var posVal=41;
    var negVal=-posVal;
    var diffVal=(posVal-negVal);
    document.write(diffVal);
    </script>

    A
    82

    B
    -82

    C
    41

    D
    Syntax error

    Note: Not available
    1. Report
  4. Question: What will produce for the following javascript code:
    <script>
    var stringNum="4";
    var stringNum2="20";
    var mulEm=stringNum*stringNum2;
    document.write(mulEm);
    </script>

    A
    80

    B
    420

    C
    Syntax Error

    D
    no output

    Note: Not available
    1. Report
  5. Question: What will produce for the following JavaScript code:
    <script>
    var stringNum="4";
    var stringNum2="20";
    var mulEm=stringNum+stringNum2;
    document.write(mulEm);
    </script>

    A
    24

    B
    420

    C
    Syntax Error

    D
    None

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

    A
    NaN

    B
    Infinity

    C
    0

    D
    Undefined

    Note: Not available
    1. Report
  7. 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
  8. Question: Which of the following javascript method is used to check if a expression is infinite or not?

    A
    checkInfinite()

    B
    isFinite()

    C
    isInfinite()

    D
    checkFinite()

    Note: Not available
    1. Report
  9. Question: Which of the following javascript method is used to check if a expression or a variable is NaN or not?

    A
    isNaN()

    B
    NaN()

    C
    checkNaN()

    D
    notNaN()

    Note: Not available
    1. Report
  10. Question: What will produce output for the following JavaScript code fragment:
    <script>
    var leftOperand=77;
    var rightOperand=30;
    var divEm=leftOperand/rightOperand;
    var nada=0/0;
    
    if(!isFinite(divEm)){
     document.write("Whoa Dude that's a big number!");
    }
    
    if(isNaN(nada)){
     document.write("You are dividing nothing by nothing");
    }
    </script>

    A
    You are dividing nothing by nothing

    B
    Whoa Dude that's a big number!

    C
    No output

    D
    syntax error

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