1. Question: Which is the following is not reserved word in JavaScript?

    A
    synchronized

    B
    implements

    C
    const

    D
    integer

    Note: Not available
    1. Report
  2. Question: What will be output of the following JavaScript code:
    <script>
    var apples=2.0;
    var oranges=2.34;
    var pears=3.3;
    var tax=.04;
    var shipping=3.43;
    var subtotal=apples+oranges+pears;
    var total=subtotal+(subtotal*tax)+shipping;
    var message="Your total is $";
    var deliver=message+total+".";
    document.write(deliver);
    </script>

    A
    Your total is $11.37

    B
    No output

    C
    Your total is $11.3

    D
    deliver

    Note: Not available
    1. Report
  3. Question: What will be output for the following javascript code:
    <script>
    var alpha=0xdead;
    var beta=0xbeef;
    var gamma=(alpha+beta).toString(10);
    document.write(gamma);
    </script>

    A
    105884

    B
    Syntax error

    C
    0xdead0xbeef

    D
    gamma

    Note: Not available
    1. Report
  4. Question: If a boolean variable is like var alive=”0”; Then what is the appropriate answer

    A
    alive is false

    B
    alive is true

    C
    alive is overflow

    D
    the statement is not valid

    Note: Not available
    1. Report
  5. Question: What will be the output of the following code?
    var a=20;
    if(a>5 || <5)
     document.write("true");
    else
     document.write("false");

    A
    True

    B
    False

    C
    No output

    Note: Not available
    1. Report
  6. Question: Which of the following variable names is/are valid? Choose multiple correct options if has.

    A
    test_1

    B
    test 1

    C
    $test1

    D
    test/1

    E
    5test

    Note: Not available
    1. Report
  7. Question: 1) Which one of the scientific literal?

    A
    a) 9.0021006295925e+21

    B
    b) 0xa8

    C
    c) 0xe3

    D
    d) “54321”

    Note: Not available
    1. Report
  8. Question: 2) If we put ‘My dog is named “Fred”’ as string literal than it’s return to-

    A
    “My dog is named fred”

    B
    My dog is named “Fred”

    C
    ‘My dog is named’ Fred

    D
    ‘My dog is named Fred’

    Note: Not available
    1. Report
  9. Question: \n it’s indicate new line but it’s does not work in which javascript object?

    A
    Document.write()

    B
    Alert()

    C
    Prompt()

    D
    parseInt()

    E
    All of the above

    Note: Not available
    1. Report
  10. Question: The word Boolean is come out which professor name?

    A
    Arther Boole

    B
    Michel Boole

    C
    George Boole

    D
    Cork Boole

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