1. Question: Which element allows to write JavaScript?

    A
    <scripting>

    B
    <javascript>

    C
    <script>

    D
    <js>

    E
    <js language='javascript'>

    Note: Not available
    1. Report
  2. Question: What is the correct JavaScript syntax to write "Hello World"?

    A
    response.write("Hello World")

    B
    document.write("Hello World")

    C
    print("Hello World")

    D
    echo("Hello World")

    Note: Not available
    1. Report
  3. Question: How do you write a conditional statement for executing some statements only if "i" is equal to 5?

    A
    if i==5 then

    B
    if i=5 then

    C
    if (i==5)

    D
    if i=5

    Note: Not available
    1. Report
  4. Question: How many different kind of loops are there in JavaScript?

    A
    Two. The "for" loop and the "while" loop

    B
    Three. The "for" and "for-in" loop, the "while" loop, and the "do-while" loop.

    C
    Four. The "for" loop, the "while" loop, the "do-while" loop, and the "loop-until" loop

    D
    One. The "for" loop

    Note: Not available
    1. Report
  5. Question: How do you find the largest number of 6 and 8?

    A
    Math.max(6,8)

    B
    top(6,8)

    C
    ceil(6,8)

    D
    Math.ceil(6,8)

    Note: Not available
    1. Report
  6. Question: How do you put a message in the browser's status bar?

    A
    window.status = "put your message here"

    B
    statusbar = "put your message here"

    C
    status("put your message here")

    D
    window.status("put your message here")

    Note: Not available
    1. Report
  7. Question: How do you find the client's browser name?

    A
    browser.name

    B
    navigator.appName

    C
    client.navName

    D
    none

    Note: Not available
    1. Report
  8. Question: Which is the numerical literal?

    A
    "1507"

    B
    1507

    C
    true

    D
    "Integer"

    Note: Not available
    1. Report
  9. Question: You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation?

    A
    Conservation of client CPU resources

    B
    Increased validity of form submission

    C
    Conservation of bandwidth

    D
    Increase end-user satisfaction

    Note: Not available
    1. Report
  10. Question: You want to design a form validation mechanism. Using string methods, which of the following are the steps involved ?

    A
    Check for the presence of certain characters

    B
    Check the position of substrings

    C
    Test the length of data

    D
    Check the variable type of the strings

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