1. Question: While coding a loop, you come across a condition where you have to ignore the rest of the statements and continue with the beginning of the loop. Which statement would you use?

    A
    exit

    B
    return

    C
    continue

    D
    while

    Note: Not available
    1. Report
  2. Question: You want to display an alert to the user which contains a ' character. Which character would you use to escape the ' character?

    A
    *

    B
    \

    C
    -

    D
    @

    Note: Not available
    1. Report
  3. Question: Which best describes void?

    A
    A method

    B
    A function

    C
    A statement

    D
    An operator

    Note: Not available
    1. Report
  4. Question: Which of the following is not a valid JavaScript operator?

    A
    |

    B
    ===

    C
    <<<

    D
    ^

    Note: Not available
    1. Report
  5. Question: Which of the following is not a valid HTML event?

    A
    onunload

    B
    onchange

    C
    onupdate

    D
    onkeydown

    Note: Not available
    1. Report
  6. Question: The following code snippet is used in form validation, the validate function returns a true if all validations are correct and returns false if the validation fails. The data is always submitted even if the validation fails, what could be the cause for this? <form name=frmadd method=post action=add.asp onsubmit=" validate() ">

    A
    There is no error, the code is fine

    B
    b. There should be a return statement before the call to the validate function

    C
    c. onsubmit=" validate() " should be replaced with " JavaScript:validate() "

    Note: Not available
    1. Report
  7. Question: Consider the following code: var seter=new Object() seter.color= " blue " How would you delete the color property of the variable seter?

    A
    seter.color delete;

    B
    delete seter.color

    C
    delete(seter.color)

    D
    seter.color.delete

    Note: Not available
    1. Report
  8. Question: An HTML form contains 10 checkboxes all named " chkItems ". Which JavaScript function can be used for checking all the checkboxes together?

    A
    function CheckAll()
       {
               for (z = 0; z < document.forms.chkItems.length; z++)
               {
               document.forms.chkItems[z].checked=true
               }
       }

    B
    function CheckAll()
       {
               for (z = 0; z < document.forms[0].chkItems.length; z++)
               {
               document.forms[0].chkItems[z].checked=true
               }
       }

    C
    function CheckAll()
       {
               for (z = 0; z < document.forms[0].chkItems.length; z++)
               {
               document.forms[0].chkItems.list[z].checked=true
               }
       }

    D
    function CheckAll()
       {
               for (z = 0; z < document.forms[0].chkItems.length; z++)
               {
               document.forms[0].chkItems.list[z].checked=false
               }
       }

    Note: Not available
    1. Report
  9. Question: Which JavaScript feature uses JAR files?

    A
    Object signing

    B
    Style sheets

    C
    Netcaster channels

    D
    Image rollovers

    E
    Form validation

    Note: Not available
    1. Report
  10. Question: Using JavaScript, how can you determine whether the browser is Netscape or some other?

    A
    if(appName=="Netscape"){}

    B
    if(document.appName=="Netscape"){}

    C
    if(navigator=="Netscape"){}

    D
    if(browser=="Netscape"){}

    E
    None of the above

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