1. Question: Based on below function the output is-
    var a=5
    var b=6
    var c=(a<b)
    var d=("Your stock is worth"+(c*25)+"thousand dollar");
    document.write(d);

    A
    Your stock is worth 25 thousand dollar

    B
    Your stock is worth 125 thousand dollar

    C
    Your stock is worth 130 thousand dollar

    D
    Your stock is worth 100 thousand dollar

    Note: Not available
    1. Report
  2. Question: If we convert decimal value into hexadecimal string we need which function?

    A
    Reg.test()

    B
    El.String()

    C
    toString()

    D
    reg.string()

    Note: Not available
    1. Report
  3. Question: If we declared 14.95 as variable which function is needed?

    A
    parseFloat()

    B
    parseInt()

    C
    prompt()

    D
    alert()

    Note: Not available
    1. Report
  4. Question: What will be the output of the following code snippet?
    var elStringo="15.95";
    var laStringa="32 on sale"
    var newval=parseFloat(elStringo);
    var hotval=parseInt(laStringa);
    document.write("Your total is:$"+( newval+ hotval));

    A
    Your total is : $47.95

    B
    Your total is : $32.95

    C
    $46.95

    D
    $32.95

    Note: Not available
    1. Report
  5. Question: JavaScript code block is defined by which symbol?

    A
    Curly braces

    B
    Coma

    C
    Colon

    D
    Semicolon

    Note: Not available
    1. Report
  6. Question: Each property can defined by which symble?

    A
    Curly braces

    B
    Coma

    C
    Colon

    D
    Semicolon

    Note: Not available
    1. Report
  7. Question: Object literal one of the – type in javascript.

    A
    Function

    B
    Operator

    C
    Data

    D
    Array

    Note: Not available
    1. Report
  8. Question: Which one is Regular expression?

    A
    /Hello/

    B
    /[a-z]/

    C
    /[^A-Z]/

    D
    /^0-9]/

    E
    All

    Note: Not available
    1. Report
  9. Question: In Regular Expression which one of the expression is expressed to anything that you don’t want.

    A
    /^[0-9]/

    B
    ^/[0-9]/

    C
    /^0-9/

    D
    /^/

    Note: Not available
    1. Report
  10. Question: In Regular Expression which one of the expression is expressed to range of characters or digits?

    A
    /[0-9A-Z]/

    B
    [0-9A-Z]

    C
    /(0-9A-Z)

    D
    /[09AZ]/

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