1. Question: What is the correct syntax to read the value of a form element?

    A
    document.window.formName.elementName.value

    B
    window.document.formName.elementName.value

    C
    formName.elementName.value

    D
    window.formName.elementName.value

    Note: Not available
    1. Report
  2. Question: When a variable is declared without assigning a value then the variable contains

    A
    null value

    B
    undefined value

    C
    void

    D
    zero

    Note: Not available
    1. Report
  3. Question: How do you create a JavaScript general object with a built-in class?

    A
    var obj=Object()

    B
    var obj={}

    C
    var obj=new Object()

    D
    var obj=[]

    Note: Not available
    1. Report
  4. Question: Which of the following is best describe the action of setInterval() function?

    A
    It execute the script action only once

    B
    It does not repeat the script action

    C
    It repeats a script action after a certain time

    D
    It is not a function anyway

    Note: Not available
    1. Report
  5. Question: What will be the output for the following code:
    var x = 1;
       if (true) {
            var x = 2;
            document.write(x);
       }
        document.write(x);

    A
    11

    B
    12

    C
    22

    D
    21

    Note: Not available
    1. Report
  6. Question: What will be the output for the following code:
    let y = 1;
         if (true) {
             let y = 2;
             document.write(y);
         }
        document.write(y);

    A
    11

    B
    12

    C
    22

    D
    21

    Note: Not available
    1. Report
  7. Question: What will be the output for the following code
    const PI=3.14;
            PI=3.145;
            document.write(PI);

    A
    3.14

    B
    3.145

    C
    Compile Error

    D
    PI

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