1. Question: Which of the following events are normally used in form element?

    A
    onClick()

    B
    onReset()

    C
    onSubmit()

    D
    onMouseMove()

    Note: Example
    <form onsubmit="return confirm('Are you sure to submit?')" onreset="return confirm('Are you sure to clear?')">
           City:<select onchange="alert(this.value)">
                <option>Dhaka</option>
                <option>Khulna</option>
                <option>Borishal</option>
            </select>
            Name:
            <input type="text" onfocus="this.style.boxShadow='0 0 4px 3px rgba(0,0,0,.3)'" onblur="this.style.boxShadow='none'" />
            <input type="submit" value="Submit">
            <input type="reset" value="Reset">
        </form>
    1. Report
  2. Question: Which of the following elements are normally uses onChange() event?

    A
    <select>

    B
    <input type="radio">

    C
    <input type="checkbox">

    D
    <input type="text" >

    Note: Not available
    1. Report
  3. Question: Which of the following are general event categories?

    A
    Keyboard and mouse events

    B
    Load events

    C
    Form-related events

    D
    Hardware events

    Note: Not available
    1. Report
  4. Question: Which of the following events are normally used in <input type="text"> element?

    A
    onBlur()

    B
    onReset()

    C
    onFocus()

    D
    onLoad()

    Note: Not available
    1. Report
  5. Question: What will be the output for the following code?
    let n=Math.round(-20.51)
      document.write(n);

    A
    20

    B
    -20

    C
    -21

    D
    21.5

    Note: Not available
    1. Report
  6. Question: Which of the following is not programming structure?

    A
    Sequences

    B
    Branches/Conditions

    C
    Loops/Iteration

    D
    Input/Output

    Note: Not available
    1. Report
  7. Question: Which is the correct way to create image object in JavaScript for the following <img> element? <img src="graphicsA.gif" />

    A
    document.image[0]

    B
    document.images[0]

    C
    window.image[0]

    D
    new Image()

    Note: Not available
    1. Report
  8. Question: 
    var w=open("","","scrollbars=0,width=200,height=100")
      var t=w.document;
    Which of the following statement is correct for the above code fragment?

    A
    w.write("Hello");

    B
    t.write("Hello");

    C
    window.write("Hello");

    D
    t.document.write("Hello");

    Note: Not available
    1. Report
  9. Question: What does the break statement do?

    A
    Go to the next iteration from current iteration

    B
    Escape the loop entirely

    C
    Restart the loop again

    D
    None

    Note: Not available
    1. Report
  10. Question: Which is the correct general function definition?

    A
    function myFunc(){}

    B
    myFunc function(){}

    C
    function myFunc{}

    D
    var myFunc=function myFunc(){}

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