1. Question: What will be the output of following JavaScript code?  
    <script type="text/javascript">  
        var text = "This is a text";   
        var pattern = /is/;  
        var output= text.search(pattern);
        document.write("Position: " + output); 
    </script>

    A
    Position:2

    B
    Position:6

    C
    Position:

    D
    error

    Note: Not available
    1. Report
  2. Question: JavaScript is not server side language in web technology

    A
    True

    B
    False

    Note: Not available
    1. Report
  3. Question: It is ideal to use JavaScript inside the <head> and <body> tags in the web document.

    A
    True

    B
    False

    Note: Not available
    1. Report
  4. Question: prompt() is not an input function in JavaScript.

    A
    True

    B
    False

    Note: Not available
    1. Report
  5. Question: "bgColor" is not a document property.

    A
    True

    B
    False

    Note: Not available
    1. Report
  6. Question: JavaScript is an interpreted language.

    A
    True

    B
    False

    Note: Not available
    1. Report
  7. Question: While different browsers can require different scripting strategies, most JavaScript follows the ECMA-262 standard.

    A
    True

    B
    False

    Note: Not available
    1. Report
  8. Question: (?:)ternay operator is equivalent to if-else.

    A
    True

    B
    False

    Note: Not available
    1. Report
  9. Question: Compound data are made up of A)_____s and B)_____s in JavaScript.

    A
    array,object

    B
    object,array

    Note: Not available
    1. Report
  10. Question: ?: is called ______ operator

    A
    ternary

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